251
Views
5
Comments
Solved
How to display pdf file in mobile Screen?
Question

I have used iframe its working fine in browser not in app. and used file viewer plugin also   its opening in a wps office .is there any way to open pdf url in the mobile app.

2022-02-28 05-37-25
Ronny
Solution

Hi Harish,

In my case, We have ios and android app.

I use InAppBrowser Plugin and use the "open" method to show the pdf

https://www.outsystems.com/forge/component-overview/1558/inappbrowser-plugin


UserImage.jpg
karanam harish

Hi Ronny,

Thanks For replying, if we use the In app browser plugin the pdf will not be visible. its working only for websites. i am using this URL "https://www.africau.edu/images/default/sample.pdf" not working.

2022-02-28 05-37-25
Ronny

Hi Harish,

if you are okay, is there any error message?

my side is able to load the pdf from url. The pdf url is also set to hidden.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

Did you try also this forge component?

https://www.outsystems.com/forge/component-overview/6223/mobile-pdf-preview

Regards,

Daniel

2024-02-08 19-20-59
Mateus Leite Pedrosa

Hello everyone! 

I was facing the same struggle with PDF handling for iOS and Android. So after a few days of search and trying differents approachs I came to this simple solution:

Basically you need to implement two solutions for the differents OS:

1) In case of Android the "Save File" and "Open Document" works really well but not for iOS;
2) In case of iOS you need to use the specific action "Open System Browser" that only works for iOS from the "InAppBrowserPlugin";

*In my case I get a PDF "Binary Data" from a REST service so in iOS it opens the system's browser and for android downloads the PDF file and open the same.

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