Merge from OCR/Text PDF to one PDF File

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Philipp Abendroth
Posts: 3
Joined: 2015-09-18T03:27:22-07:00
Authentication code: 1151
Location: Germany

Merge from OCR/Text PDF to one PDF File

Post by Philipp Abendroth »

Hello,

i have several pdf files this files have an OCR Text, but if i merge these pdf´s to one pdf file, the ocr get lost and the quality is very poor.

Can ImageMagick combine/convert ocr pdf file to one pdf file??

Thanks
for Support!
example:
c:\Program Files (x86)\ImageMagick>convert "c:\uebergabe\12345\*.pdf" "c:\test\ocr2.pdf"
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Merge from OCR/Text PDF to one PDF File

Post by magick »

Try this command:
  • convert -density 400 "c:\uebergabe\12345\*.pdf" -resize 25% "c:\test\ocr2.pdf"
Philipp Abendroth
Posts: 3
Joined: 2015-09-18T03:27:22-07:00
Authentication code: 1151
Location: Germany

Re: Merge from OCR/Text PDF to one PDF File

Post by Philipp Abendroth »

hello,

thanks, quality is great, but the ocr (Searchable text) is still missing, is this normal?

the files that mus merge had befor merge the ocr text.

Thanks!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Merge from OCR/Text PDF to one PDF File

Post by snibgo »

What is "OCR text"? Please link to a sample file.
snibgo's IM pages: im.snibgo.com
Philipp Abendroth
Posts: 3
Joined: 2015-09-18T03:27:22-07:00
Authentication code: 1151
Location: Germany

Re: Merge from OCR/Text PDF to one PDF File

Post by Philipp Abendroth »

Hello,

you can load there pdf files with an ocr/Searchable text. with an ocr pdf you can search for textstring in the pdf file.

https://filetransfer.konicaminolta.eu/c ... 60e37299e9

thanks!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Merge from OCR/Text PDF to one PDF File

Post by snibgo »

Code: Select all

convert 12345_555_0815_01_01_05.pdf x.pdf
It converts with no problem for me. Nothing is missing.

Of course, the result is a raster (pixel) image. You cannot then search the result for text.
snibgo's IM pages: im.snibgo.com
Post Reply