Hello all,

I am including a PDF document inside a document like so:

        NSData                  *pdfData=[[NSData 
alloc]initWithContentsOfFile:actualPath];
        NSPDFImageRep   *imageRep=[[NSPDFImageRep alloc]initWithData:pdfData];
        
        [imageRep drawInRect:rect];

Works fine, but when the document is saved (eg print -> save as PDF), the colors of the included PDF are different than they were before. Changing settings in the print panel (Quartz on/off etc) makes no difference.

In one example the imported PDF consists of a Graphic that according to Acrobat uses DeviceCMYK, and exclusively consists of black component.

After including it like shown above and saving the resulting document as PDF, Adobe still reports it as DeviceCMYK, but now I have components in all 4 channels.

Other components (rectangles, lines, text etc using normal Cocoa and Appkit drawing functions) drawn to the document using Device CMYK colors come out as expected.

What do I need to do so that my print-ready PDFs are not modified when being included inside other documents?

Thanks

Gerd

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to