Hi, On Sep 17, 2014, at 21:41, Marcel Martin <[email protected]> wrote:
> On 2014-09-17 18:31, ExactCODE wrote: >> thank you for your email. I went thru old emails and quickly added >> --compress and --quality to the hocr2pdf fronted. I hope --compress >> flate with your file produces reasonable results. If not let me know >> with an example images and I take a look. > > I managed to compile exact-image on Ubuntu after installing the packages > 'libagg-dev' and 'freeglut3-dev'. There doesn't seem to be a configure > check for libglut, by the way: 'make' just stopped with the message > "/usr/bin/ld: cannot find -lglut" when linking objdir/frontends/bardecode. > > Anyway, --compress flate works quite well! It doesn't give me the same > compression as the original PNG input file, but at least it is not lossy > anymore, which was the most important thing to me. > > Here are the numbers. The input was a 2480 x 3508 pixel PNG file (A4 > document with mostly B/W text). > > Original PNG: 471 kB > PDF created by hocr2pdf 0.8.9: 760 kB > PDF created by hocr2pdf from trunk, without --compress: 696 kB > PDF created by hocr2pdf from trunk, with --compress flate: 565 kB > > Oh, and by the way: The help message says the supported methods are G3, > G4 and Zip, but none of those work. Looking at pdf.cc, it seems that > this list should actually be ascii85, hex, flate, jpeg, jpeg2000. > > Thanks a lot for getting this implemented! Great that it already works better for you! The command line option was copied from econvert, I will tweak the text for hocr2pdf, … -- ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin http://exactcode.com | http://exactscan.com | http://ocrkit.com | http://t2-project.org | http://rene.rebe.de
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [email protected] with a subject of: unsubscribe exact-image
