PDA

View Full Version : Secure Page to PDF


mandeep.laha
05-28-2010, 07:46 AM
I am developing a web application in which the clients wants to generate a pdf of the current page.
I google a lot about this but didn't find any suitable solution to the problem.

Many dlls and classes are available but no one is working.

The main problem is that the page for which I want to generate PDF is secure and when I give the URL of the page, it will generate the PDF of Login page. Please sort out my problem.

With Regards,
Mandeep Singh

accwebworks
06-05-2010, 06:26 AM
What you can do is override render method of aspx page, retrieve generated html and convert this to pdf using some html to pdf component like abcpdf.

protected override void Render(HtmlTextWriter writer)
{
base.Render(writer); <--- writer will contain generated html
}