@jimregan Dear Jim,
thanks for your explanantion, I also studied to two codes (one part is in Leptonica, the other, more important in Tesseract). I think, forcing to use "FLATE" just before the image is rendered into the PDF page is the best solution, I kindly ask you to try my (short and easy) patch and to inspect the generated files, which also were smaller in my test cases. Please let me know, if you want me to perform some test cases with B/W and also colored pages (text plus images and so), but if step can be skipped, I would be happy because I haven't that much time. On the other hand, I really want to have my patch pulled in, or an additional command line parameter like "--force-lossless-compression" for the "pdf" mode. -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/b782e544-4fab-4248-9790-d71978a59c4f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

