diff --git a/pkg/modules/libreoffice/unoconv/unoconv.go b/pkg/modules/libreoffice/unoconv/unoconv.go index 899b4ad2..8bb4a24c 100644 --- a/pkg/modules/libreoffice/unoconv/unoconv.go +++ b/pkg/modules/libreoffice/unoconv/unoconv.go @@ -159,6 +159,11 @@ func (mod Unoconv) PDF(ctx context.Context, logger *zap.Logger, inputPath, outpu "pdf", } + checkedEntry := logger.Check(zap.DebugLevel, "check for debug level before setting high verbosity") + if checkedEntry != nil { + args = append(args, "-vvv") + } + if options.Landscape { args = append(args, "--printer", "PaperOrientation=landscape") }