Export PDF and send through Axios?

Posted by: jarrod on 29 September 2020, 4:59 pm EST

    • Post Options:
    • Link

    Posted 29 September 2020, 4:59 pm EST

    Hello,

    I need to export a PDF and then send it to an endpoint through Axios. How would I retrieve the filestream of the PDF that Wijmo creates?

    Thanks!

  • Posted 30 September 2020, 6:43 am EST

    Hello,

    The PDF created using the Wijmo can be get in Blob format using the following code snippet:

     let doc = new wijmo.pdf.PdfDocument({
                ended: (sender, args) => console.log(args.blob)
            });
    

    This Blob can be used as you would like to use it.

    Regards,

    Manish Gupta

  • Posted 30 September 2020, 11:45 am EST

    Thank you, Manish. This works for us.

Need extra support?

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

Learn More

Forum Channels