48
Views
5
Comments
Solved
[Ultimate PDF] Ultimate pdf creates a blank file
Question
Forge component by Leonardo Fernandes
15
Published on 14 Nov 2020

Hello

I am trying to use the ScreenToPDF option of ultimate pdf and I am getting a pdf file with two blank pages.

When I set Preview to true, I can see the page is ok.


When I set to download the file or preview in browser, I've got an empty file with 2 pages.

Help!! :-)





Hi

I think that is a problem with the my organization's template.

I create a screen with no components from the template and I've got the pdf file.

Thanks

mvp_badge
MVP
Rank: #148

Hi luiz silva ,

Do you have a user session active when downloading the PDF? 

Maybe you want to see the examples, available in the demo component :)

Regards 

Hi Marco Arede

What is a user session? I am using an Anonymous role

mvp_badge
MVP
Rank: #148

Hi luiz silva ,

I made a reference to the session, because certain data can only be retrieved when we have a certain user session. Imagine that if the data you want to extract is not allowing access to anonymous users, then no data will be displayed. 

Nevertheless:

1) open the demo component, which contains the essential code to use:

2) use the action print to pdf (perhaps the best option in your case).

3) validate that you are providing the correct page URL.

I hope this helps you to get closer of solution.

Regards!

Hi

I think that is a problem with the my organization's template.

I create a screen with no components from the template and I've got the pdf file.

Thanks

solved