feat(chromium): add generateTaggedPdf to form fields - closes #1210

This commit is contained in:
Julien Neuhart
2025-05-20 11:49:10 +02:00
parent 67ebe17fcb
commit ce155fb43e
6 changed files with 17 additions and 5 deletions

View File

@@ -49,7 +49,8 @@ func printToPdfActionFunc(logger *zap.Logger, outputPath string, options PdfOpti
WithPageRanges(pageRanges).
WithPreferCSSPageSize(options.PreferCssPageSize).
WithGenerateDocumentOutline(options.GenerateDocumentOutline).
WithGenerateTaggedPDF(false)
// See https://github.com/gotenberg/gotenberg/issues/1210.
WithGenerateTaggedPDF(options.GenerateTaggedPdf)
hasCustomHeaderFooter := options.HeaderTemplate != DefaultPdfOptions().HeaderTemplate ||
options.FooterTemplate != DefaultPdfOptions().FooterTemplate