feat(libreoffice): add singlePageSheets option

This commit is contained in:
Martin
2024-03-25 14:46:15 +01:00
committed by Julien Neuhart
parent 8454d163eb
commit 43a13ff2c5
4 changed files with 40 additions and 0 deletions

View File

@@ -277,6 +277,10 @@ func (p *libreOfficeProcess) pdf(ctx context.Context, logger *zap.Logger, inputP
args = append(args, "--export", "ExportFormFields=false")
}
if options.SinglePageSheets {
args = append(args, "--export", "SinglePageSheets=true")
}
switch options.PdfFormats.PdfA {
case "":
case gotenberg.PdfA1b: