From 16807bd57fcc7235c0b7e65896de17a2b1d90df3 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Mon, 23 Dec 2024 10:04:24 +0100 Subject: [PATCH] fix(split): wrong output paths when converting to PDF/A & PDF/UA --- pkg/modules/chromium/routes.go | 2 ++ pkg/modules/libreoffice/routes.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkg/modules/chromium/routes.go b/pkg/modules/chromium/routes.go index ee330a26..2c579171 100644 --- a/pkg/modules/chromium/routes.go +++ b/pkg/modules/chromium/routes.go @@ -661,6 +661,8 @@ func convertUrl(ctx *api.Context, chromium Api, engine gotenberg.PdfEngine, url return fmt.Errorf("rename output path: %w", err) } } + } else { + outputPaths = convertOutputPaths } err = ctx.AddOutputPaths(outputPaths...) diff --git a/pkg/modules/libreoffice/routes.go b/pkg/modules/libreoffice/routes.go index 86165833..b6786189 100644 --- a/pkg/modules/libreoffice/routes.go +++ b/pkg/modules/libreoffice/routes.go @@ -251,6 +251,8 @@ func convertRoute(libreOffice libreofficeapi.Uno, engine gotenberg.PdfEngine) ap return fmt.Errorf("rename output path: %w", err) } } + } else { + outputPaths = convertOutputPaths } }