Nour
08/21/2025, 1:23 PMCeligo AI
08/21/2025, 1:23 PMAI generated answer (using internal Slack threads):To render a PDF in A5 size using SuiteScript's
render.xmlToPdf
method, you need to specify the page size in the XML template that you are using to generate the PDF.
In your XML template, you can specify the page size as A5 using the fo:layout-master-set
property. Here is an example:
xml
<fo:layout-master-set>
<fo:simple-page-master master-name="simpleA5" page-height="210mm" page-width="148mm" margin-top="5mm" margin-bottom="5mm" margin-left="5mm" margin-right="5mm">
<fo:region-body margin-top="20mm"/>
<fo:region-before extent="20mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
Then, in your SuiteScript, you can use the render.xmlToPdf
method to generate the PDF:
javascript
var xmlStr = '...'; // your XML string
var pdfFile = render.xmlToPdf({xmlString: xmlStr});
Please note that the render.xmlToPdf
method takes an XML string as input and returns a file object representing the generated PDF. The XML string should represent an XSL-FO document.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/21/2025, 1:23 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831982672
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831012607
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826407611
Celigo AI
08/21/2025, 1:23 PM