Download pdf based on url

Download pdf based on url

  

Hello,


I have a REST API and one of the content contains a PDF URL. I need to insert all the REST response into the device's local DB for offline viewing.

How can I convert the PDF URL or download it and save into the DB?

All this will be in the server action.

Please help. Thank you.

Hello Khaled,

You can use forge extensions PDFGenerator and FileViewer.

Regards,

Marco Arede wrote:

Hello Khaled,

You can use forge extensions PDFGenerator and FileViewer.

Regards,

Thanks Marco for your reply,

These extensions you mentioned are on client actions, I'm not viewing the PDF on the device, I just need a way to store from a URL to the Database on the Server action.

Hi Khaled,

You can use the  forge component URL to PDF(https://www.outsystems.com/forge/component_overview.aspx?projectid=143&projectname=url-to-pdf&)

Regards,

Koushik.

koushik prathi wrote:

Hi Khaled,

You can use the  forge component URL to PDF(https://www.outsystems.com/forge/component_overview.aspx?projectid=143&projectname=url-to-pdf&)

Regards,

Koushik.


Hi Koushik,


Would this help if my url looks like this: "https://xyz.com/docs/docname.pdf"  ?


Thanks



Khaled Murshed wrote:

koushik prathi wrote:

Hi Khaled,

You can use the  forge component URL to PDF(https://www.outsystems.com/forge/component_overview.aspx?projectid=143&projectname=url-to-pdf&)

Regards,

Koushik.


Hi Koushik,


Would this help if my url looks like this: "https://xyz.com/docs/docname.pdf"  ?


Thanks


HelloKhaled,

I used this forge component long ago . I think it will work.

Regards,

Koushik