Mailing Lists: Apple Mailing Lists

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

Re: Drawing to a PDF Context



On Mar 28, 2007, at 10:20 AM, Fabio Mancinelli wrote:


On Mar 28, 2007, at 8:17 AM, Antonio Nunes wrote:


Hi Fabio,

You do not create CFMutableDataRef from a CGPDFPageRef. The consumer will be the destination of the data from the Quartz drawing functions. You draw the CGPDFPageRef into the PDF context created with the consumer. Here is a minimal example:

So actually, when I want to modify an existing page I have to redraw its content to a newly created page and then do some other drawings. And I can only do "incremental" operations if I am not wrong.

Yes, as far as I know you cannot modify the original page data (at least not the objects on the page, you can change display boxes and stuff). So you create a new PDF document and draw the original to it, then you can add to the contents by drawing more.


-António

----------------------------------------------------
It isn't so important to do great things,
as to do what you do with great love.
----------------------------------------------------



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >Drawing to a PDF Context (From: Fabio Mancinelli <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.