Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing API functionality in PDFKit?



(I sent this to the Cocoa-dev list, and realized that the Quartz list is probably a better choice, so sorry if you have received this before...)

I have been experimenting with the PDFKit, and have run into some roadblocks. Either there is some missing functionality, or I am missing something. So far, specifically:

1.) PDFAnnotationButtonWidget - You can find out what controlType a button widget is (kPDFWidgetUnknownControl, , kPDFWidgetPushButtonControl, kPDFWidgetRadioButtonControl, kPDFWidgetCheckBoxControl) using

- (int)controlType

but could not find a (public) way to set the controlType.


2.) You can get the parentID of the PDFAnnotationButtonWidget, but there is no way to set it. There is also no way to find out in the current document what the current maximum object id is, so you aren't stepping on a current object id. (From what I can see, if you make a couple of PDFAnnotationButtonWidgets of type kPDFWidgetRadioButtonControl, they need to have the same parentID for the radio buttons to function radially (i.e. exclusively selected).)



3.) For a PDFAnnotationFreeText, the setColor: (defined in PDFAnnotation) sets the background color. I could not find a method that sets the text color of this class.



4.) Is there any way (now or planned) to get the path objects on a pdf page? (i.e. to be able to detect the paths that draw a line or a box on an existing page).



Just a few questions / items I have run into. Will probably find more, but wanted to get feedback on these items.


Pat

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.