Click here to Skip to main content
15,169,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I implemented a application to save webpage as Image file in VC++.
I don't know how to save current html webpage as .pdf format.

Please provide codedirection to save webpage as .pdf file in VC++.
Please its urgent.

Thanks for advance.
Updated 26-Apr-11 1:26am

One of the ways: Tutorial: how to create PDF document in VC++ (Visual C++) using PDFDoc Scout library[^]

Similar question discussed at length with other alternatives: here.[^]
System.Net.WebClient webClient = new System.Net.WebClient(); 
webClient.DownloadFile("http://samplesite/index.aspx", "C:\\temp.html"); 

And convert this html file to a pdf file using ITextSharp[^] has a useful pdf api if you'd rather do it that way. You can build it into your code. It's nice because you don't have to use any libraries, and it works in any language.
Take a look at the PDFCreator web page[^]... they create a pdf printer and as it is an open source project you could get all the info there...

Good luck!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900