LeoFCardoso / pdf2pdfocr

A free tool to OCR a PDF and add a text "layer" in the original file, making a searchable PDF. Use only open source tools. Please tip!
Apache License 2.0
273 stars 34 forks source link

merging multiple files into one pdf-file #32

Closed tfinke18119 closed 1 year ago

tfinke18119 commented 2 years ago

At the moment, a pdf file is created for each file if the option "-i" is used for a directory. There should be an option that packs all the files into one single pdf file. This would be a useful option if there were several "edited" image files (e.g. processed with scantailor) in that directory after a scan (e.g. one for each page). An option for the "correct" sorting these pages has to be kept in mind as well.

LeoFCardoso commented 2 years ago

Hello @tfinke18119 , thanks for the issue. Did you try "pdfunite" from poppler?

tfinke18119 commented 2 years ago

There are several tools to unite pdfs, like sejda, pdfsam, pdftk etc. I just thought that a corresponding option for pdf2pdfocr would give more sense to the "-i" option.

tfinke18119 commented 2 years ago

qpdf seems to be more sensible because it has more options.