From 1e26fdd35b32f5d7866504e65ce209279a481df1 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Wed, 18 Mar 2026 13:45:01 +0100 Subject: [PATCH] fix(libreoffice): set EmbedStandardFonts to true when applying PDF/A or PDF/UA compliance --- pkg/modules/libreoffice/api/libreoffice.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/modules/libreoffice/api/libreoffice.go b/pkg/modules/libreoffice/api/libreoffice.go index a7cac2d7..d185b664 100644 --- a/pkg/modules/libreoffice/api/libreoffice.go +++ b/pkg/modules/libreoffice/api/libreoffice.go @@ -329,11 +329,11 @@ func (p *libreOfficeProcess) pdf(ctx context.Context, logger *zap.Logger, inputP switch options.PdfFormats.PdfA { case "": case gotenberg.PdfA1b: - args = append(args, "--export", "SelectPdfVersion=1") + args = append(args, "--export", "SelectPdfVersion=1", "--export", "EmbedStandardFonts=true") case gotenberg.PdfA2b: - args = append(args, "--export", "SelectPdfVersion=2") + args = append(args, "--export", "SelectPdfVersion=2", "--export", "EmbedStandardFonts=true") case gotenberg.PdfA3b: - args = append(args, "--export", "SelectPdfVersion=3") + args = append(args, "--export", "SelectPdfVersion=3", "--export", "EmbedStandardFonts=true") default: return ErrInvalidPdfFormats } @@ -344,6 +344,7 @@ func (p *libreOfficeProcess) pdf(ctx context.Context, logger *zap.Logger, inputP "--export", "PDFUACompliance=true", "--export", "UseTaggedPDF=true", "--export", "EnableTextAccessForAccessibilityTools=true", + "--export", "EmbedStandardFonts=true", ) } else { args = append(