LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to print selected pages of a website (https://www.linuxquestions.org/questions/linux-general-1/how-to-print-selected-pages-of-a-website-4175483833/)

satimis 11-08-2013 01:09 AM

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

unSpawn 11-09-2013 10:32 AM

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.

satimis 11-10-2013 04:14 AM

Quote:

Originally Posted by unSpawn (Post 5061362)
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

unSpawn 11-10-2013 06:14 AM

No idea if this would work but have a look at website2pdf.net?

satimis 11-10-2013 07:06 AM

Quote:

Originally Posted by unSpawn (Post 5061814)
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

JJJCR 11-10-2013 07:40 AM

Quote:

Originally Posted by satimis (Post 5060537)
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


All times are GMT -5. The time now is 11:53 AM.