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>
|