Importing print-ready PDFs into NSViews and saving as PDF changes colors
Importing print-ready PDFs into NSViews and saving as PDF changes colors
- Subject: Importing print-ready PDFs into NSViews and saving as PDF changes colors
- From: Gerd Knops <email@hidden>
- Date: Thu, 24 Apr 2008 19:11:30 -0500
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 (email@hidden)
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:
This email sent to email@hidden