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 } }