Last post May 24, 2010 12:57 AM by Pebble94464
May 17, 2010 05:25 PM|jjmonty|LINK
I am trying to implement a pdf export using the free ITextSharp library. I am using a request and response to get the content of an aspx page then produce the pdf with the response's html through a streamreader. The problem I am having is that there is security
on the page using session values, so when I call the page for the pdf generation, somehow the session values are lost and the ITextSharp object ends up trying to produce a pdf of the login page which is where a user would land if they have not entered their
HELP, please. I am lost. If I cannot do this with ITextSharp can someone suggest another PDF generator for HTML which will not be affected by my login/session security issues. Please, help.
May 18, 2010 12:31 AM|contactrajkumar|LINK
You are correct i was also faced the same problem.For that i'm using print option.
Check this link ,
Please remember to click “Mark as Answer”
on the post that helps you, it will help other(s) to get there answer.
May 24, 2010 12:57 AM|Pebble94464|LINK
I use ABCpdf for converting HTML and active server pages to PDF.
It handles authentication methods built into HTTP, but ASP.NET forms based authentication needs a different approach. Because it's under your programmatic control a component can't authenticate itself - you have to authenticate the component!
You'll need to allow the component to pass in a username and password to your page, possibly encoded in the URL, and then have that page call the FormsAuthentication.Authenticate code.