Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

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

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: 1380
Joined: Thu Apr 04, 2013 1:30 am

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

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: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Mar 25, 2019 4:59 pm

Hello Team,
I would like to ask you about this feature, is still not supported yet ?.
Thanks in advance

abdoule
 
Posts: 1
Joined: Mon Mar 25, 2019 4:26 pm

Tue Mar 26, 2019 7:27 am

Hello Abdoule,

Thanks for your inquiry.
Yes, we have no good way to support this feature at present. If you have other questions, please feel free to write back.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF

cron