Re: PDFAnnotationLine problem
Re: PDFAnnotationLine problem
- Subject: Re: PDFAnnotationLine problem
- From: Vince <email@hidden>
- Date: Tue, 5 Feb 2008 10:16:39 -0500
John,
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.
Thanks for your help.
Best wishes,
Vince
@interface PDFAnnotationLine : PDFAnnotation
{
@private
PDFAnnotationLinePrivateVars *_pdfPriv2;
}
// Points specifying start and end points for line annotation.
- (NSPoint) startPoint;
- (void) setStartPoint: (NSPoint) point;
- (NSPoint) endPoint;
- (void) setEndPoint: (NSPoint) point;
// Style used for ornaments at the lines start and end.
- (PDFLineStyle) startLineStyle;
- (void) setStartLineStyle: (PDFLineStyle) style;
- (PDFLineStyle) endLineStyle;
- (void) setEndLineStyle: (PDFLineStyle) style;
@end
On Feb 4, 2008, at 10:04 PM, John Calhoun wrote:
On Feb 4, 2008, at 6:59 PM, John Calhoun wrote:
The cleverness can be when PDFKit writes out the annotations to a
file ... if the PDFBorder has a width of 1 and is solid, we drop
border tag on output. This seems like a safe strategy.....
Well, in fact forget the speculation above. PDFKit on Leopard does
just that - if the line width is 1.0 and the style is solid, no
border tag is written to the PDF file. Good.
John Calhoun—
_______________________________________________
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