On Wed Feb 18 23:34:09 PST 2015 thaush...@t-online.de said:
Assuming you are using 1.8.8, put the ccitt stream into a PDStream
object, then call the PDCcitt constructor with that PDStream.
PDStream pd =new PDStream(doc, new
ByteArrayInputStream(data), true);
Thanks, that worked!
Glad it works. Where did you get the raw G4 files from / is this
something that you think might be useful to many, or was it just
something unique for you? I'm just wondering if I should add such code
to the 2.0 or 2.1 version.
Tilman
Am 19.02.2015 um 19:09 schrieb John Lussmyer:
On Wed Feb
In this case I'm converting some proprietary image files from a program I wrote
18 years ago.
On Thu Feb 19 13:41:30 PST 2015 thaush...@t-online.de said:
Glad it works. Where did you get the raw G4 files from / is this
something that you think might be useful to many, or was it just
something
So, I have a block of data (byte[]) that represents a scanned image, compressed
using CCITTG4.
I'm new to PDFBox. (of course)
So far, I haven't been able to figure out how I can create a page that consists
of just that image.
All the examples want to read the image from a file, and decompress
Assuming you are using 1.8.8, put the ccitt stream into a PDStream
object, then call the PDCcitt constructor with that PDStream.
PDStream pd =new PDStream(doc, new
ByteArrayInputStream(data), true);
COSStream dic = pd.getCOSStream();
COSDictionary decodeParms =
5 matches
Mail list logo