Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Pagination issue while merging multiple PDFs into PDFset
Hello Everyone,
I am facing an issue on pagination in PDFset.
I have merged multiple PDF files into single PDFset and now trying to add page number in main PDFset (not in individual PDF).
Code:
xml += "<pdfset>";
xml += "<pdf>\n"; //PDF 1
xml += "<head></head>";
xml += "</macro>";
xml += "</macrolist>";
xml += "</head>";
xml += "<body header=\"myheader\" header-height=\"22\%\" size=\"A4-LANDSCAPE\" style=\"font-family:sans-serif;\">"; //header=\"myheader\" font-size=\"10\"
xml += strName;
xml += "</body></pdf>";
xml += multiplePDFs;
xml += "</pdfset>";
//PDF 2
var multiplePDFs = "<pdf><head><macrolist><macro id=\"nlheader\">";
multiplePDFs+= "</macro></macrolist></head>";
multiplePDFs+= "<body header=\"nlheader\" header-height=\"20%\" size=\"A4-LANDSCAPE\">";
multiplePDFs+= "</body>";
multiplePDFs+= "</pdf>";
//PDF 3
multiplePDFs +