Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi friends,

I'm trying to convert the web page url into PDF document in my web application but I still could not achieve that.

Let me know is there any coding technique to solve that problem?

Thanks in advance


A.Arockiasamy
Posted
Updated 4-Apr-11 12:44pm
v5
Comments
Henry Minute 4-Apr-11 11:48am    
If you search through this forum you will find 100s of questions asking for the same thing.

The answer for you is the same as the answer they were given.
Dalek Dave 4-Apr-11 18:44pm    
Edited for Grammar.

Hi
Seems that there is no freeware way to convert URL to PDF. I have found some free opensources, like:
http://www.htmldoc.org
http://www.pdfsharp.net/

I have tried to implement simple convertor and realize that the main problem is to collect all images, css and JS from URL. Did you met the same problem?
The simplest but ugly way is to create .Net WebBrowser, navigate to specified URL and save it :) Also, u can try to use regex to extract images, css, scripts, etc.

Sorry, but I have not finished solution to answer your question...
 
Share this answer
 
Comments
Raj Bose 4-Apr-11 12:04pm    
Very helpful link
Dalek Dave 4-Apr-11 18:44pm    
Good Call.
Hi, first sorry about my english.

I have to do somthing similar a few moths ago. But in Winforms app.

May be you can turn it into web app.

Step 1:

With WebBrowser object. Use the hidden method (DrawToBitmap).
Save the url as a Image

Step 2:
With iTesxtSharp, pdfsharp.net or some similar tool. I make a blank pdf with 1 image tag. Put the image inside.

Step 3
Save the pdf.

Done.

Let me know if you want my App for testing

cheers
 
Share this answer
 
Comments
Dalek Dave 4-Apr-11 18:45pm    
Good Answer.
samyamc 4-Apr-11 23:52pm    
hi thanks for your reply...i think it ll be very use ful if i have the chance to test your application...please help me

thanks


A.Arockiasamy
LittleBlackLui 5-Apr-11 13:46pm    
Here you got:
https://docs.google.com/leaf?id=0B3uw_3wRy_3yYjRjMDM0NjItZTNlMi00YWIyLWJlMzMtYmIxN2I5ZmE2YWE0&hl=es

It's a test app. debug it to see how its work.

I hope help you. Let me know if you need something and tell me if you can solve the issue

Bye
Hello. At the moment I am using an online converter like http://kitpdf.com/[^] ... I like it because it works pretty fast and saves me o lot of time. Let me know what you think. :)
 
Share this answer
 

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