I read your message (below) on the mail archive list. I ran into the same
problem. I originally flipped the bytes in my Java program, but that was too
slow. Instead, I added the line:
        dictionary.put(PdfName.DECODE, new PdfLiteral("[1 0 1 0 1 0 1 0]"));

(after the "dictionary.put(PdfName.COLORSPACE, PdfName.DEVICECMYK);" in the
"case Image.JPEG:" case block - about line 321) to the PdfImage.java file.
That tells the PSF interrupter to invert the CMYK values. I know that's kind
of a cheat, but it saves a lot of time.

I hope that helps!
David DeCesare


        Message: 8110484
            FROM: Rhys Lewis
            DATE: 03/15/2002 02:46:45
            SUBJECT: RE:  [iText-questions] embedding a cmyk jpeg or tiff
     
            The continuing saga of the CMYK Jpeg...

            I have inverted the image in Photoshop before adding it to the
pdf with
            iText, and everything is fine.  (except that it's a hassle to
invert them
            first).

            Rhys

David DeCesare

_____________________________________________________________________
David DeCesare          Email: mailto:[EMAIL PROTECTED]
Lifetouch                       Phone: (952) 826-5580
7800 Picture Drive      Fax: (952) 826-4551
Minneapolis, MN  55439  Web: http://www.lifetouch.com
 


_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to