View Single Post
Old 02-15-2023, 12:24 PM   #11
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: 11,699
Karma: 87663461
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
For a given definition of easy

These are the important bits and don't need changed on Linux?
Code:
k2pdfopt -mode copy -dpi 300 -ocr t -ocrd p src.pdf -o temp1.pdf

k2pdfopt -mode copy -dpi 5 -bpc 1 -g 100 -cmax -100 -s- temp1.pdf -o temp2.pdf
del /q temp1.pdf
This needs changed
Code:
cpdf -draft temp2.pdf -o temp3.pdf
del /q temp2.pdf
cpdf -combine-pages src.pdf temp3.pdf -o src_searchable.pdf
del /q temp3.pdf
rm is used instead of del
The cpdf combines pdfs. It's not on my Linux.

But the Linux tools I know sequentially merge PDFs.
I think even qpdf does append merges rather than layer merges?
Quoth is offline   Reply With Quote