How to make a pdf into a URL

Posted by: truongvanhau911995 on 14 May 2020, 2:39 am EST

  • Posted 14 May 2020, 2:39 am EST

    Hi,
    Currently I'm using wijmo.pdf.PdfDocument and angularjs to export PDF,
    I want to preview the pdf before exporting.

    My solution is to save the pdf file to the URL and display it on the review screen
    Can you help me how to save the PDF file to the URL?

    Thanks in advance.
  • Replied 17 May 2020, 5:28 pm EST

    Hi,

    Sorry for the delayed response.

    In the ended event of PdfDocument, a pdf blob object is provided. You can use FileReader class to convert this blob in to base64 string and open this string in a new tab.

    Please refer to the sample attached.

    PS: Please post all the queries related to wijmo in the wijmo forum:

    https://www.grapecity.com/forums/wijmo

    Regards,
    Ashwin

    preview pdf.zip
  • Replied 17 May 2020, 5:44 pm EST

    I will try using that.

    Thank you!
Need extra support?

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

Learn More

Forum Channels