Welcome Guest.   Make a donation to an author on the site October 22, 2014, 04:40:53 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA - Save / Convert any given URL to a PDF File  (Read 3193 times)
Deep-Silence
Supporting Member
**
Posts: 5


View Profile Give some DonationCredits to this forum member
« on: March 14, 2010, 09:19:53 AM »


Hi Guys,

I am coding little around with Autohotkey myself.  cheesy
Recently i have been working on a program that filters the "Print-Version" of certain
articles off a website.

Some URLs containing an extension like htm, html etc. some don't. "pid=123" etc.

What i want to do is to convert these URLS to a PDF for example using the following Syntax.

[copy or print]

URL2pdf.exe "www.google.de" "C:\google.pdf"


to do this in background, too.

There are lots of solutions out there, that a private person is unable to pay for.
Thanks for any Comments... embarassed

Logged
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: March 14, 2010, 09:28:46 AM »

have you tried these online converters? the 1st website allows syntax like this: http://www.htm2pdf.co.uk/?url=<url>

http://www.htm2pdf.co.uk/
http://www.pdfmyurl.com/
http://www.pdfonfly.com/
http://www.url2pdf.de/
http://html-pdf-converter.com/en
« Last Edit: March 14, 2010, 09:43:57 AM by lanux128 » Logged

Deep-Silence
Supporting Member
**
Posts: 5


View Profile Give some DonationCredits to this forum member
« Reply #2 on: March 14, 2010, 09:36:49 AM »


Yes, i do know about this page, but i did not got it to work
to Send the URL and get back the PDF File.  embarassed
Logged
Deep-Silence
Supporting Member
**
Posts: 5


View Profile Give some DonationCredits to this forum member
« Reply #3 on: March 14, 2010, 09:52:31 AM »


The thing is, i do not want to depend on
the service of a website, that might go done "in the near future", Sad
so one cannot count on it to be available at any time you need it.

Thanks,

Logged
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: March 14, 2010, 09:56:07 AM »

if you use Firefox as your browser, you can set a pdf printer like CutePDF as the default printer and use this addon to print the url - Command Line Print.

[copy or print]
firefox -print http://www.example.com/index.html

http://sites.google.com/s...isugari/commandlineprint2
Logged

Deep-Silence
Supporting Member
**
Posts: 5


View Profile Give some DonationCredits to this forum member
« Reply #5 on: March 14, 2010, 10:18:54 AM »

Hi lanux128,

Thanks for your suggestions,
i really appreciate them.  Thmbsup

i am using Opera as my browser, but perhaps i can setup a portable version,
to get it to work. Hope it can be done in the background.  undecided

Thanks

I mentioned earlier, that there are a couple of solutions on the market you need to pay for.
I would like to point to verypdf html to pdf converter commandline
to give you an impression what i am thinking about. (URL to PDF only  Wink)
« Last Edit: March 14, 2010, 10:26:27 AM by Deep-Silence » Logged
daddydave
Supporting Member
**
Posts: 818



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: April 27, 2010, 11:48:58 AM »

 I like  lanux128's idea, here's another thought


PDF Creator has a command line option to convert a file to PDF
Quote
/IF<input-filename> /OF<output-filename>
Convert a postscript file to a PDF or bitmap. The /OF parameter must be used in conjunction with the /IF parameter. To set the output file format, include the file extension in the output file name. There is NO space between the parameters and the file names.
Examples:
pdfcreator.exe /IF"C:\description.ps" /OF"C:\description.pdf"
pdfcreator.exe /IF"C:\description.ps" /OF"C:\description.tif"

It doesn't accept a URL, though. I did see a command line url to mht converter out there if you want to be a guinea pig. (I haven't tried it). Then you might be able to do that in two lines of a batch file, the first line converting the url to mht, the second one converting the mht to pdf. There may be a better intermediary than MHT, I was just thinking of it because it preserves images.

Logged
daddydave
Supporting Member
**
Posts: 818



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #7 on: April 27, 2010, 02:56:52 PM »

Wondering if there is a command line equivalent of right clicking on a URL shortcut and hitting print and having it figure out what to do based on the what Print verb for the URL filetype says in the registry.
« Last Edit: April 27, 2010, 03:08:58 PM by daddydave » Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.034s | Server load: 0.02 ]