PDF Export ReactJs

Posted by: ali.raza on 12 July 2023, 10:28 pm EST

    • Post Options:
    • Link

    Posted 12 July 2023, 10:28 pm EST

    I am exporting pdf using your PDFExport function.

    In the 3rd parameter, I can have a callback which I am writing like this.

    const result = await PdfExport.exportDocument(reportDocument, pdfSettings, (pageNumber) => updateProcessingState(pageNumber));

    I want to have the total number of pages as well so I can write like “Processing 2 of 4 results”

    Any way around?

    Thanks

  • Posted 17 July 2023, 4:28 am EST

    Hi Ali,

    Unfortunately, AFAIK there is no way to get the total number of pages in a PageReport through code.

    Apologies for the inconvenience.

    Regards,

    Anand

Need extra support?

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

Learn More

Forum Channels