LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-08-2013, 01:09 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
How to print selected pages of a website


Hi all,

How to print selected pages of a website with wkhtmltopkf?

e.g.
I expect printing all pages under "Sous Vide" from Meats to Mixology on following site;
http://www.cuisinetechnology.com/blo...-vide-recipes/

Thanks

Rgds
satimis
 
Old 11-09-2013, 10:32 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What have you tried? Tried saving them or adding them on the command line? As in
Code:
wkhtmltopdf http://some.s.ite/page0.htm http://some.s.ite/page1.html http://some.s.ite/page2.php document.pdf
*Note the documentation states you can only print more then one local or remote HTML document into a PDF file with a version of QT patched with the wkhtmltopdf patches or with the static wkhtmltopdf version.
 
Old 11-10-2013, 04:14 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by unSpawn View Post
What have you tried? Tried saving them or adding them on the command line? As in
Code:
wkhtmltopdf http://some.s.ite/page0.htm http://some.s.ite/page1.html http://some.s.ite/page2.php document.pdf
*Note the documentation states you can only print more then one local or remote HTML document into a PDF file with a version of QT patched with the wkhtmltopdf patches or with the static wkhtmltopdf version.
Hi,

Thanks for your advice.

If NO "one click" solution can be found. I'll copy-n-paste each page on LibreOffice Writer and export the document as pdf file.

Then use either one of following commands to combine all of them;
Code:
pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf
pdftk file1.pdf file2.pdf cat output -
convert -density 300x300 -quality 100 file1.pdf file2.pdf file3.pdf merged.pdf
IIRC there is a solution to print a website as a big .pdf files.

satimis
 
Old 11-10-2013, 06:14 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
No idea if this would work but have a look at website2pdf.net?
 
Old 11-10-2013, 07:06 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by unSpawn View Post
No idea if this would work but have a look at website2pdf.net?
Hi,

Trid printing http://www.cuisinetechnology.com/
Warning:
Alert: 1001 is the maximum number of pages to be crawled. If you want all the content, please use subfolders or subdomains or try filterig and thus create multiple pdf files, not the recipes.

Total number of pages > 1001

Trid printing http://www.cuisinetechnology.com/blo...-vide-recipes/
only 3 pages resulted

satimis
 
Old 11-10-2013, 07:40 AM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,141

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Wink

Quote:
Originally Posted by satimis View Post
Hi all,

How to print selected pages of a website with wkhtmltopkf?

e.g.
I expect printing all pages under "Sous Vide" from Meats to Mixology on following site;
http://www.cuisinetechnology.com/blo...-vide-recipes/

Thanks

Rgds
satimis
check out this link, don't if you will get some idea on it:
http://support.mozilla.org/en-US/kb/how-print-websites
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid - permitting only selected pages tikit Linux - Software 1 08-09-2011 05:40 AM
Cannot print selected text - box is grayed out. mlangdn Slackware 2 02-16-2009 01:25 PM
Cannot print selected text dwhitney67 Linux - General 0 09-30-2007 12:42 AM
Where do pages for website go on server mulciber Linux - Networking 3 03-30-2006 08:47 AM
Openwriter : how to print 2 pages on the same A4 ? tulear Mandriva 2 08-13-2005 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:38 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