Re: PDFAnnotationLine problem
Re: PDFAnnotationLine problem
- Subject: Re: PDFAnnotationLine problem
- From: Antonio Nunes <email@hidden>
- Date: Tue, 5 Feb 2008 19:01:56 +0100
On Feb 5, 2008, at 4:16 PM, Vince wrote:
I did a little more work on the PDFAnnotationLine routines:
(1) As mentioned last time, its working well; but the StartPoint and
EndPoint that "works" are those in the coordinate system of the
Annotation bounds. If I use Page Coordinates, it is displaced. I'll
look more into the code, but I believe this behavior is very
distinct from the PDFAnnotationSquare (and Line and Link) which uses
the Page Coordinates.
(2) The interior color does not seem to work for the line. The
documentation for the constants for the Line Style indicates that
the interior of the markers for the beginning and end of line (e.g.,
square, arrow or whatever) is filled by the interior color.
(3) I can't figure out to set the interior color for Line. Square /
Circle has a setInteriorColor method; but the Line does not as
indicated by the methods in the .h file copied below.
You haven't told us yet if you're on Tiger or on Leopard. But sounds
like it is Tiger then because the PDFAnnotationLine header for Leopard
lists:
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
// Fill color used for drawing ornaments at end and start of lines
(optional, PDF 1.4).
- (NSColor *) interiorColor;
- (void) setInteriorColor: (NSColor *) color;
#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
And everything works as advertised on my end, whether squares, lines
or other forms of annotations I have been using.
Cheers,
António
----------------------------------------------------
Disapprove of sin but not of the sinner
----------------------------------------------------
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden