Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it possible to change a PDF document's background?



I am creating a CGPDFDocumentRef from an existing PDF file, then drawing a page to a CGContext. I noticed that some PDFs, such as those created with TextEdit (via print to PDF) draw with a white background rectangle. I'd ideally like to get rid of the background (i.e., alpha=0) so that the text and graphics can be displayed directly on top of other bits in the context, but there doesn't seem to be an API call in CoreGraphics that does this.

I was just going to assume that I couldn't get there from here, figuring that the background was simply a filled rectangle, one of many drawing instructions in the PDF. Then I found that if I display the same PDF in Adobe's Acrobat Reader, I can change the background color that the it uses when displaying a document.

I realize that Adobe owns the format so they can pretty much do what they want in their viewer, but was wondering if I'd missed an Apple API call somewhere that lets me do the same thing. If not, looks like enhancement request time. Well?

steve

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.