View Single Post
Old 02-04-2023, 08:24 PM   #6
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
k2pdfopt at this time won't concatenate multiple image files into a single PDF (no reason why it couldn't...I'll have to add that option). I use ImageMagick to do that, as has been discussed. After that, k2pdfopt can add OCR. Again, unfortunately, it will re-render each bitmapped page and re-compress.

If you want to recreate the bitmaps as faithfully as possible:

k2pdfopt -dpi 300 -mode copy -ocr t -g 1 -s- -cmax -1 -bpc 8 sourcefile.pdf

You'll want to choose the dpi to match your existing dpi. Default compression is flate (.png). If you want jpeg compression, add -jpg <quality>
willus is offline   Reply With Quote