Re: CoreGraphics PDF Output?
Re: CoreGraphics PDF Output?
- Subject: Re: CoreGraphics PDF Output?
- From: Byron Ellis <email@hidden>
- Date: Mon, 7 Apr 2003 17:19:33 -0400
Nevermind, it works now.... The only thing I changed was releasing the
DataConsumerRef BEFORE doing any drawing (as opposed to after all the
drawing). Why this should make a difference seems like Black Magic to
me, but the code is definitely working now.
On Monday, April 7, 2003, at 04:34 PM, Byron Ellis wrote:
Hi guys, I'm trying to render a PDF using CoreGraphics and for some
reason the image size is always 0,0
My init code looks like this:
mediaBox = CGMakeRect(0,0,6*72.0,6*72.0);
ctxRef = CGPDFContextCreate(dcRef,&mediaBox,NULL);
CGContextBeginPage(ctxRef,NULL);
...
...
CGContextEndPage(ctxRef);
CGContextFlush(ctxRef);
but no dice. I found one message with similar code and problems when
searching cocoa.mamasam.com, but there wasn't ever a reply. Any help
(like someone with example code that works ;-) ) would be appreciated
Byron Ellis (email@hidden)
"Oook" - The Librarian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Byron Ellis (email@hidden)
"Oook" - The Librarian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.