• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreGraphics PDF Output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >CoreGraphics PDF Output? (From: Byron Ellis <email@hidden>)

  • Prev by Date: target/action in NSControl subclass
  • Next by Date: Transferring Projects to new Computer
  • Previous by thread: CoreGraphics PDF Output?
  • Next by thread: Long to C-String
  • Index(es):
    • Date
    • Thread