765
Views
12
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

2021-09-10 14-03-53
Salman Ansari

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


2021-01-12 14-29-49
Prajakta Roshankhede

Salman Ansari wrote:

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


Hello Salman,

I have used this application but this component is used to open document outside application. I want to display pdf file in mobile screen itself. 

Thanks

Prajakta


2021-09-10 14-03-53
Salman Ansari

Prajakta Roshankhede wrote:

Salman Ansari wrote:

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


Hello Salman,

I have used this application but this component is used to open document outside application. I want to display pdf file in mobile screen itself. 

Thanks

Prajakta


ok.Did you try using iframe put src for the pdf path?


2021-09-10 14-03-53
Salman Ansari

Hi Prajakta,

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

PDFViewerSampleinMobile.oml
2021-01-12 14-29-49
Prajakta Roshankhede

Salman Ansari wrote:

Hi Prajakta,

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


Thanks for your effort!! 

But I want to display pdf with binary data and not by url.

Any pointer on that would help

2021-09-10 14-03-53
Salman Ansari

Prajakta Roshankhede wrote:

Salman Ansari wrote:

Hi Prajakta,

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


Thanks for your effort!! 

But I want to display pdf with binary data and not by url.

Any pointer on that would help

You can expose a REST service, that will return the binary file.

On the input of the Src/Path/Url, you set the URL to the REST endpoint service.



2021-01-14 07-17-21
mukhtadir shaikh

hi salman i tried your application but it work only in emulator but not in android device .!! it self  could you plz help me in that case?

2025-11-19 06-14-01
Miguel Verdasca
Champion

Hi,

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

Cheers,
Miguel

2026-02-26 06-29-24
Rahul
 
MVP

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
2020-04-23 11-14-57
Nhorwin John Villano

Rahul Sahu wrote:

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

 

Hi Rahul Sahu,

I have tried the .oml file you've attached. And this is what i've got

Any idea why? I hope you could help me on this. thanks

Regards,

Nhorwin

 

UserImage.jpg
Prijay dubey
2021-01-12 14-29-49
Prajakta Roshankhede

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 

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