Skip to content

Commit

Permalink
PDF creation: not disabling tessedit_create_txt
Browse files Browse the repository at this point in the history
Okay, everything is more of less under control except for this:

  tesseract phototest.tif - pdf > phototest.pdf

This is sending activating both the text renderer, and the pdf renderer.
They both get sent to stdout where they mix together and cause chaos.
Same thing happens with this command.

   tesseract phototest.tif stdout pdf > phototest.pdf

What's happening is tesseractmain.cpp is setting tessedit_create_pdf without
disabling tessedit_create_txt.

https://groups.google.com/d/msgid/tesseract-dev/32c065ee-aefa-441a-b37b-b6bdc234c8ab%40googlegroups.com
  • Loading branch information
jbreiden authored and jimregan committed Jul 18, 2015
1 parent 228317c commit fd429c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tessdata/configs/pdf
@@ -1,2 +1,3 @@
tessedit_create_txt 0
tessedit_create_pdf 1
tessedit_pageseg_mode 1

0 comments on commit fd429c3

Please sign in to comment.