fix(split): wrong output paths when converting to PDF/A & PDF/UA

This commit is contained in:
Julien Neuhart
2024-12-23 10:04:24 +01:00
parent 8bc29ad92d
commit 16807bd57f
2 changed files with 4 additions and 0 deletions

View File

@@ -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...)

View File

@@ -251,6 +251,8 @@ func convertRoute(libreOffice libreofficeapi.Uno, engine gotenberg.PdfEngine) ap
return fmt.Errorf("rename output path: %w", err)
}
}
} else {
outputPaths = convertOutputPaths
}
}