• 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
Appkit vs CGPDF, and a remedial C question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Appkit vs CGPDF, and a remedial C question


  • Subject: Appkit vs CGPDF, and a remedial C question
  • From: Jonathan Hendry <email@hidden>
  • Date: Tue, 15 Oct 2002 17:05:53 -0400

I want to access the additional PDF information provided by CoreGraphics,
such as the additional *Box rects. Currently, I have a subclass of NSPDFImageRep
which also allocates and holds onto a CGPDF dealie to get the information. Not
very efficient.

Is there any way to use the CoreGraphics PDF functions on the NSPDFImageRep's
data?

Also, a remedial C question:

I'm using methods like CGRect CGPDFDocumentGetMediaBox(CGPDFDocumentRef document, int page);

I tried casting CGRect to an NSRect, without success. I'm just copying the values
in the CGRect into a new NSRect. Is there a way to directly convert a CGRect into
an NSRect that I'm overlooking?

Thanks
--
Jonathan W. Hendry NeXTSTEP/OpenStep/Cocoa
email@hidden programmer in Connecticut
_______________________________________________
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: Appkit vs CGPDF, and a remedial C question
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Searching archives: need password?
  • Next by Date: Re: Keyboard shortcuts for views in toolbar items
  • Previous by thread: Re: searching archives: need password?
  • Next by thread: Re: Appkit vs CGPDF, and a remedial C question
  • Index(es):
    • Date
    • Thread