Add JSR margins to speed print.
This commit is contained in:
@@ -135,7 +135,21 @@ export async function RenderTemplates(
|
||||
name: rootTemplate.useShopSpecificTemplate
|
||||
? `/${bodyshop.imexshopid}/${rootTemplate.templateObject.name}`
|
||||
: `/${rootTemplate.templateObject.name}`,
|
||||
...(renderAsHtml ? {} : { recipe: "chrome-pdf" }),
|
||||
...(renderAsHtml
|
||||
? {}
|
||||
: {
|
||||
recipe: "chrome-pdf",
|
||||
chrome: {
|
||||
marginTop:
|
||||
(bodyshop.logo_img_path &&
|
||||
bodyshop.logo_img_path.headerMargin) ||
|
||||
"36px",
|
||||
marginBottom:
|
||||
(bodyshop.logo_img_path &&
|
||||
bodyshop.logo_img_path.footerMargin) ||
|
||||
"36px",
|
||||
},
|
||||
}),
|
||||
pdfOperations: templateAndData.map((template) => {
|
||||
return {
|
||||
template: {
|
||||
|
||||
Reference in New Issue
Block a user