a stream is NOT one thing (image OR text … it could be any number or combination of things]
here is a “simple” example
that happens to be 6 or 8 styleruns from an Xojo TextArea translated to PDF using my gPDF class… this one doesn’t happen to have any “drawing” commands, but it just as well could.
So having the “stream” in human readable format as this is, may not get you anywhere unless you further know how to decypher the contents… (and don’t get me started on an image stream)
Well, if you use DynaPDF Lite and you import that page, you can just query the images on a page and DynaPDF provides them decoded. Either if JPEG pass through to a JPEG file or in any other format convert them to TIFF, PNG or JPEG.
Jens did and build DynaPDF using those specs.
And it may be easier for the OP and others to just use what’s there instead of spending hours to reinvent the wheel.
(others may read the thread later and prefer the plugin)
well the answer I was seeking is “zlib” !
thank you, Bernardo.
will have to try it on my apps, but it seems it.
Christian and Dave, no offense, but I have been stuck with plugins not updated years ago, and I dont want to use them anymore.
Dynapdf is a huge work, and I cannot afford it (and it’s a plugin see line above…)
and yes may be people reading this thread may want to use dynapdf.
I read (quickly) the pdf reference, but did not find any example for the stream decompression.
Jean-Yves… by no means am I attempting to encourgage you to use plug-ins (Christians or anyone elses). All I am attempting to do is educate you on the fact that decoding the guts of a PDF file in by no means a trivial matter.
If you want an easy way to CREATE a PDF… and don’t want an expensive plug-in… Look at my gPDF class (its is source code in Xojo itself)… rdS.com/gpdf
and no, the PDF spec does not speak of decompression, as a matter of fact for as verbose as the spec is, it leaves out about 90% of the importatant information.