[Html2PdfConverter] Converting HTML to PDF converts the login page

[Html2PdfConverter] Converting HTML to PDF converts the login page

  
Forge Component
(52)
Published on 30 Oct by Guilherme Pereira
52 votes
Published on 30 Oct by Guilherme Pereira

Hello All,

I am trying to convert an HTML into PDF which fetches data from the database based on the login information. But every time I try to convert , it converts the login page . It seems that it is not able to transfer the information from the session and when it tries to convert it takes it as an unauthenticated user.

Also please note that  I do not have any query or session information in the URL.

Any assistance will be very helpful.


Thanks & Regards

Rana

Solution

Rana,

This component lays on an executable, not a web application.
It needs a full URL address. If the web page you are providing is not anonymous, you will not get it.
Probably this is the reason why you are getting the login page. You are being redirected.

So, the solution is to allow public access of this webpage setting the anonymous Role option in it.

Cheers,
Eduardo Jauch

Solution

Eduardo Jauch wrote:

Rana,

This component lays on an executable, not a web application.
It needs a full URL address. If the web page you are providing is not anonymous, you will not get it.
Probably this is the reason why you are getting the login page. You are being redirected.

So, the solution is to allow public access of this webpage setting the anonymous Role option in it.

Cheers,
Eduardo Jauch

Thank You very much ED for the explanation