• 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
CoreGraphics PDF Output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreGraphics PDF Output?


  • Subject: CoreGraphics PDF Output?
  • From: Byron Ellis <email@hidden>
  • Date: Mon, 7 Apr 2003 16:34:14 -0400

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.

  • Follow-Ups:
    • Re: CoreGraphics PDF Output?
      • From: Byron Ellis <email@hidden>
  • Prev by Date: TableView layout questions
  • Next by Date: Re: Sound Level
  • Previous by thread: TableView layout questions
  • Next by thread: Re: CoreGraphics PDF Output?
  • Index(es):
    • Date
    • Thread