01-04-2021, 06:57 PM | #1 |
Groupie
Posts: 181
Karma: 304158
Join Date: Jan 2016
Device: none
|
[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% Last edited by Shohreh; 01-09-2021 at 11:12 PM. |
01-05-2021, 02:29 PM | #3 |
the rook, bossing Never.
Posts: 12,381
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Or just having the epub!
|
01-09-2021, 02:02 AM | #4 | |
Evangelist
Posts: 479
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
Quote:
Code:
x.y/a.pdf x.y/b.pdf Code:
wget --input-file=wget-list |
|
01-09-2021, 11:09 PM | #5 |
Groupie
Posts: 181
Karma: 304158
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. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tool to OCR an "image" PDF → add text as extra layer? | Shohreh | 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 |