Hi,
I am trying to create a PDF file from HTML that includes a style with A4 page separation SDK+ NODE code, the result in the print preview of the PDF the division looks different from the view in HTML.
i use this code:
const setCustomOptions = (htmlToPDFOperation) => {
// Define the page layout, in this case an 8 x 11.5 inch page (effectively portrait orientation).
const pageLayout = new PDFServicesSdk.CreatePDF.options.html.PageLayout();
pageLayout.setPageSize(8, 11.5);
// Set the desired HTML-to-PDF conversion options.
const htmlToPdfOptions = new PDFServicesSdk.CreatePDF.options.html.CreatePDFFromHtmlOptions.Builder()
.includesHeaderFooter(true)
.withPageLayout(pageLayout)
.build();
htmlToPDFOperation.setOptions(htmlToPdfOptions);
};
.