45
Views
7
Comments
[PDF Generator Plugin] Blank PDF when using URL.
pdf-generator-plugin
Mobile icon
Forge asset by Experts
Application Type
Mobile

Hello,

I'm trying to generate a PDF on mobile from a URL in the same environment but in another application that is reactive.

The GenerateAndSharePdf function runs normally, but the PDF is blank. The page I'm trying to access is already marked as anonymous. When accessing the page directly through the computer's browser, the data loads normally.


When I use any other external URL like the OutSystems page itself, the PDF is generated correctly. I'm wrong where?

2021-05-18 02-27-17
Manish Gupta
Champion

Hey Gabriel 

The reason could be the action Generating Wrong URL! Can you try printing the URL you are generating in the Value Expression and check if it creates correct URL? 

Or if you can share the minimal OML to check, please attach in Post

2022-07-28 14-03-56
Gabriel Sales

Hello @Manish Gupta

I passed the same generated URL to the InAppBrowserPlugin and it opened the page without any problems, as shown in the image.


As soon as possible, I post an OML for better understanding.

2021-12-23 04-28-09
Navneet Sharma

Hello,

Could you please find or debug the GenreateAndSharePdf Url values ? 

or better understanding can you please share the OML file.

2022-07-28 14-03-56
Gabriel Sales

Hey @Navneet Sharma

In debug the GenreateAndSharePdf does not return something from the url created, but I tested the same URL generated in the  InAppBrowserPlugin, and it opened normally as shown in the image.


As soon as possible I will post the oml for better understanding.



2022-07-28 14-03-56
Gabriel Sales

@Navneet Sharma  and @Manish Gupta,

I created a testReactive application with a public page listing some sample countries. https://luisgabriel-sales.outsystemscloud.com/Testes/CountryStates and I replicated the code in the personal environment and the PDF was also generated blank. Follow the OML.

PDFTestMobile.oml
2021-05-18 02-27-17
Manish Gupta
Champion

Hello @Gabriel Sales 

I have tried the sane using the plugin you have mentioned but it looks there is something in OutSystems Web which is preventing to load the content. It is taking Service Studio URL correctly or any other URL but not taking any screen URL from OutSystems even from different environment. 

I'm not sure but could be something to discuss with OutSystems Support. I have checked these URLs in Sample Demo App too but not working. 


Meanwhile we can try it with another plugin.

I'm also trying it and let you know the results. 

2021-05-18 02-27-17
Manish Gupta
Champion

I saw same issue with another Plugin as well. Kindly check with support. It may be some kind of security that preventing this to load page of OutSystems App Screens URL. 

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