feat(libreoffice): add high verbosity if debug log level

This commit is contained in:
Julien Neuhart
2021-11-23 16:01:48 +01:00
parent df98e7512b
commit 0ed6fb33c5

View File

@@ -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")
}