168
Views
11
Comments
How to display pdf file in mobile screen?

Hello All,

How to display pdf file when user uploaded on mobile with binary data?

If we use upload widget then we are able to display uploaded picture in mobile. I want same functionality for pdf file how to achieve it?


Thanks 

Prajakta Roshankhede

Champion
Rank: #40

Prajakta Roshankhede wrote:

Hello All,

How to display pdf file when user uploaded on mobile with binary data?

If we use upload widget then we are able to display uploaded picture in mobile. I want same functionality for pdf file how to achieve it?


Thanks 

Prajakta Roshankhede

Please use the below component it will resolve your issue.I used the same in my mobile app.Hope this helps.

https://www.outsystems.com/forge/component-overview/1606/file-viewer-plugin


Champion
Rank: #40

Hi Prajakta,

Please check the attached oml if that will work for you.Tested in Android.

PDFViewerSampleinMobile.oml

Hi,

please, check this post: [File Viewer Plugin] How to open PDF File inside the app

Cheers,
Miguel

Rank: #89

Hi Prajakta Roshankhede,


1. First Use "iframe" after that bind property like below image (SS-1).

2. Convert Binary Data to Base64 and provide it iframe src (SS-2).

3. Then you will be able to open pdf (SS-3).

4.find attached oml also.





Hope this will help you.

Regards

Rahul Sahu

BinaryToPdf.oml

Hello All,

thank you for your quick response and sorry for replying late. I want this functionality in offline mode 

as well as main idea is once user upload pdf he should be able to see it on screen before storing into database 


Thanks