Pdf link to screen

Hi Everyone,


Need to link a pdf to screen along with help to store the pdf in the datbase. Sampleattached below-



Hi Saif,

Using iFrame to preview pdf is a good idea, but it might not be that straight-forward to show the pdf content on the screen.

I suggest you check this Forge component out: https://www.outsystems.com/forge/component-overview/7092/reactive-web-previewer

 You can also check its code to see how it's done. E.g. I see that they used the following way to show the pdf in an iFrame:

"<iframe src='https://docs.google.com/gview?embedded=true&url=" + Location + "' width='" + Width + "' height='" + Height + "'></iframe>"


need to do it without forge component. using if statement mnentioned above . could you please help

Hi Saif,

Please find attached working example of upload Pdf, save pdf and display pdf 

For display use embed html tag no forge component is required 

You can store PDF in binary and while display use method BinarytoBase64 to display in embed

Please check upload page

Best Regards

Devendra



TestJob.oml

need to store the pdf in database and display since in the application, we plan to use s3 bucket .
No option needed to upload or edit . used the pdf binary option earlier but was denied. asked to use the if statements mentioned in the scren above to display the pdf in iframe.


Attaching .oml file for reference

TestModuleV2_.oml

https://www.outsystems.com/forums/discussion/77962/help-with-an-if-statement-to-display-pdf/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.