feat(chromium): add GenerateDocumentOutline option

This commit is contained in:
Tam Nguyen
2024-11-18 15:03:39 +11:00
committed by Julien Neuhart
parent 62ba4877ac
commit 79f396f6ff
3 changed files with 40 additions and 31 deletions

View File

@@ -48,6 +48,7 @@ func printToPdfActionFunc(logger *zap.Logger, outputPath string, options PdfOpti
WithMarginRight(options.MarginRight).
WithPageRanges(pageRanges).
WithPreferCSSPageSize(options.PreferCssPageSize).
WithGenerateDocumentOutline(options.GenerateDocumentOutline).
// Does not seem to work.
// See https://github.com/gotenberg/gotenberg/issues/831.
WithGenerateTaggedPDF(false)