LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2008, 08:00 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
How to wget a webpage, and save as PDF (like cups-pdf) ?


Hello

How to wget a webpage, and save as PDF (like cups-pdf) ?
Is there already a code for that, working ?

Happy Tux !
 
Old 11-17-2008, 12:25 AM   #2
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 55
html2pdf?
http://www.google.com.au/search?q=html2pdf
 
Old 11-18-2008, 07:04 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Difficulties to do wget && html2pdf or something else
connected to wget in one command :

Example : ' wget http://www.google.co.uk/ '
and it is impossible to know which filename is saved.
In this example the result will be saved in /home/"username"
as ' index.html ' ... And if you have several pages, more
than one can have the name "index.html"
(If you try "Save page as" , the filename is "Google" )

So if it should work, the file would have to be redirected
to an empty directory and renamed with "wildcard" and moved
to a third place.

But may be you can make a script doing that ??

Last edited by knudfl; 11-18-2008 at 07:10 AM.
 
Old 11-18-2008, 03:48 PM   #4
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 55
Code:
wget -O - www.google.com | html2text > google.txt
Welcome to the world of STD out, pipes and redirects!
I didn't have html2pdf, but I'm sure you get the idea.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS PDF Printer that prompts for save location? MasterC Linux - General 3 01-11-2008 02:59 PM
LXer: Linux PDF editor for manipulating PDF documents LXer Syndicated Linux News 0 12-19-2007 09:50 AM
wget fail to download pdf files powah Linux - Software 2 05-04-2006 03:38 PM
Generating Pdf/Tex and changing Pdf Permissions nx5000 Linux - Software 3 03-28-2006 04:37 PM
Type into a PDF and save the changes? toastermaker Linux - Software 7 01-16-2005 05:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration