Appkit vs CGPDF, and a remedial C question
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.