fix: Documents with images exported as HTML have broken images
closes #4822
This commit is contained in:
@@ -458,7 +458,10 @@ router.post(
|
|||||||
|
|
||||||
if (accept?.includes("text/html")) {
|
if (accept?.includes("text/html")) {
|
||||||
contentType = "text/html";
|
contentType = "text/html";
|
||||||
content = await DocumentHelper.toHTML(document);
|
content = await DocumentHelper.toHTML(document, {
|
||||||
|
signedUrls: true,
|
||||||
|
centered: true,
|
||||||
|
});
|
||||||
} else if (accept?.includes("application/pdf")) {
|
} else if (accept?.includes("application/pdf")) {
|
||||||
throw IncorrectEditionError(
|
throw IncorrectEditionError(
|
||||||
"PDF export is not available in the community edition"
|
"PDF export is not available in the community edition"
|
||||||
|
|||||||
Reference in New Issue
Block a user