feat(libreoffice): add exportNotesInMargin form field (#904)

* ExportNotesInMargin allows to export comments in margin

https://help.libreoffice.org/latest/en-US/text/shared/guide/pdf_params.html

* Resolve requested changes

Move ExportNotesInMargin above LosslessImageCompression
Remove overhead ExportNotes=true
This commit is contained in:
maniack
2024-06-17 09:31:42 +03:00
committed by GitHub
parent 697fa08d8b
commit d6fe895f6e
4 changed files with 40 additions and 0 deletions

View File

@@ -281,6 +281,10 @@ func (p *libreOfficeProcess) pdf(ctx context.Context, logger *zap.Logger, inputP
args = append(args, "--export", "SinglePageSheets=true")
}
if options.ExportNotesInMargin {
args = append(args, "--export", "ExportNotesInMargin=true")
}
if options.LosslessImageCompression {
args = append(args, "--export", "UseLosslessCompression=true")
}