Force page break in pdf export

Posted by: arthur on 5 January 2021, 9:10 pm EST

  • Posted 5 January 2021, 9:10 pm EST


    Is is possible to force a page break when exporting a flexgrid to pdf using the FlexGridPdfConverter.export function (pureJS)?

  • Replied 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:

    API reference:
    • PdfDocument class:

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels