PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
At 05:18 PM 7/11/2003 +0200, Stefano Maestri wrote:
I reached to put an jpg image into a PDF via plug-in calling PDEContentAddElem() and reading the image stream directly from the jpg file.
OK....Perfectly valid, though it does create larger files than necessary...
I'm trying to do the same by hand with a hex editor. So I copied the jpg stream inside the 8 0 obj defining the right length for the stream.
Did you also set all the other values of the XObject dictionary correct? BPC? ColorSpace? Height & Width? etc.
It seems the difference is in the "/Im1 --Data--"; the first has a valid decoded length while the second as 0.
That would be a problem if the image has data, but the length is 0...
Leonard --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-629-3700 (voice)
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
