HTML to PDF when the site requires login

Technical support for Spire.PDF

Moderator: iceblue support

HTML to PDF when the site requires login

Postby jorgea » Wed Jul 16, 2014 8:37 am

Hi,

I am trying to generate a report from a ASP.net page loaded. It should be straightforward as per the documentation:

Thread thread = new Thread(() => doc.LoadFromHTML("GOOGLEURL", false, true, true));

thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();

//Save pdf file.
doc.SaveToFile(@"sample.pdf");
doc.Close();

The example used in the documentation is quite simple and clear because it is using a static url with public content. However, trying to do the same with a site that requires authentication and getting my URL using "Request.Url.AbsoluteUri", results in a PDF which content is a login page .

Is there any way to convert an ASPX page that requires to be authenticated to a PDF?

Thanks
jorgea
 
Posts: 1
Joined: Wed Jul 16, 2014 8:20 am

Re: HTML to PDF when the site requires login

Postby Gary.zhang » Wed Jul 16, 2014 9:43 am

Hello,

Thanks for your inquiry.
Sorry that currently it is impossible to achieve the feature.
Sincerely,
Gary
E-iceblue support team
User avatar
Gary.zhang
 
Posts: 1362
Joined: Thu Apr 04, 2013 1:30 am

Re: HTML to PDF when the site requires login

Postby sidelsi » Wed Jul 26, 2017 4:19 pm

I'm having the same issue. Please help.

Thanks
sidelsi
 
Posts: 1
Joined: Mon Jul 24, 2017 4:05 pm

Re: HTML to PDF when the site requires login

Postby Betsy.jiang » Thu Jul 27, 2017 1:52 am

Dear sidelsi,

Thanks for your inquiry.
Sorry that there is still no update, and it is impossible to implement the feature at present.
If you have other questions, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1637
Joined: Tue Sep 06, 2016 8:30 am


Return to Spire.PDF

Who is online

Users browsing this forum: No registered users and 1 guest