Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 01-04-2021, 06:57 PM   #1
Shohreh
Connoisseur
Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.
 
Posts: 78
Karma: 85308
Join Date: Jan 2016
Device: none
Question [SOLVED] Download list of web pages → convert to PDF → merge?

Hello,

I occasionally have to download a bunch of web pages, turn them into PDF, and merge them all into a single PDF file.

Do you know of a way to automate that?

1. From list, download web pages including pictures: wget ?

2. Convert each into PDF: cpdf/mutool/qpdf?

3. Merge all into single PDF:
Code:
@echo off
setlocal enabledelayedexpansion
set f=
for %%f in (*.pdf) do set f=!f! "%%f"
echo %f%
mutool merge -o full.pdf -O compress %f%
Thank you.

Last edited by Shohreh; 01-09-2021 at 11:12 PM.
Shohreh is offline   Reply With Quote
Old 01-05-2021, 03:05 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,150
Karma: 18509109
Join Date: Dec 2010
Device: Kindle PW2
Have you considered generating an .epub book with dotepub and converting it to a .pdf file with Calibre?
Doitsu is offline   Reply With Quote
Old 01-05-2021, 02:29 PM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 2,821
Karma: 22166592
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
Or just having the epub!
Quoth is offline   Reply With Quote
Old 01-09-2021, 02:02 AM   #4
NiMa
Addict
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 336
Karma: 2264885
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra H2O, Kobo Glo HD, Kobo Mini, Kobo Aura (2013), Kindle PW3
Quote:
Originally Posted by Shohreh View Post
Hello,

I occasionally have to download a bunch of web pages, turn them into PDF, and merge them all into a single PDF file.

Do you know of a way to automate that?

1. From list, download web pages including pictures: wget ?

2. Convert each into PDF: cpdf/mutool/qpdf?

3. Merge all into single PDF:
Code:
@echo off
setlocal enabledelayedexpansion
set f=
for %%f in (*.pdf) do set f=!f! "%%f"
echo %f%
mutool merge -o full.pdf -O compress %f%
Thank you.
You can feed a list to wget by appending the "--input-file=" option to the command line. E.g. I have a file (wget-list):
Code:
x.y/a.pdf
x.y/b.pdf
I'd do:
Code:
wget --input-file=wget-list
Very useful, especially when downloading multiple files.
NiMa is offline   Reply With Quote
Old 01-09-2021, 11:09 PM   #5
Shohreh
Connoisseur
Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.Shohreh understands the Henderson-Hasselbalch Equation.
 
Posts: 78
Karma: 85308
Join Date: Jan 2016
Device: none
Thanks for the infos. I forgot to say I'd rather a desktop solution than web-based.

After feeding wget a list of URLs, HTML pages can then be turned into individual PDFs with wkhtmltopdf, and merged into a single PDF with cpdf/qpdf/mutool.
Shohreh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool to OCR an "image" PDF → add text as extra layer? Shohreh PDF 5 12-19-2020 01:47 PM
[PDF → ePUB] Alternative to Calibre? Shohreh Conversion 19 05-08-2020 05:06 PM
epub → pdf conversion: remove a section dma_k Conversion 8 08-31-2016 06:40 PM
Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) SJC-Caron ePub 18 04-21-2016 12:10 PM


All times are GMT -4. The time now is 03:27 PM.


MobileRead.com is a privately owned, operated and funded community.