Posted 5 January 2021, 9:10 pm EST
Hi,
Is is possible to force a page break when exporting a flexgrid to pdf using the FlexGridPdfConverter.export function (pureJS)?
Regards,
Arthur
Forums Home / Wijmo / General Discussion
Posted by: arthur on 5 January 2021, 9:10 pm EST
Posted 5 January 2021, 9:10 pm EST
Hi,
Is is possible to force a page break when exporting a flexgrid to pdf using the FlexGridPdfConverter.export function (pureJS)?
Regards,
Arthur
Posted 6 January 2021, 3:59 pm EST
Hi Arthur,
To insert the page break, instead of using the export function we could use the FlexGridPdfConverter.draw or drawToPosition method and export the grid to an instance of PdfDocument and then use the addPage() method of the PdfDocument to insert page breaks or add additional info to the grid. You may refer to the following demo which demonstrates how we could export the grid to PdfDocument and then save the Pdfdocument as pdf:
https://www.grapecity.com/wijmo/demos/Grid/ImportExportPrint/PDF/ExportToPdfDocument/purejs
API reference:
• PdfDocument class: https://www.grapecity.com/wijmo/api/classes/wijmo_pdf.pdfdocument.html
Regards
Sharad