pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: adding B&W images to PDF
Date Sun, 12 Apr 2015 17:10:29 GMT
Am 12.04.2015 um 17:53 schrieb Tilman Hausherr:
> If the scanner output is a buffered image, and these are of type 
> bitonal (very important!), then save them as TIF files. You can do 
> this with java ImageIO, or (better) with ImageIOUtil.writeImage().  
> You will need the jai_imageio jar. Then load them with PDCcitt.
>
> JBIG2 encoding isn't supported (only decoding). The format is somewhat 
> risky anyway. (google for Xerox jbig2)
>
> Here's an excerpt of our test code: 

I corrected some typos in the text above.

If it doesn't work, you may have to copy your BufferedImage into one of 
TYPE_BYTE_BINARY. Then save that one as tiff.

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message