• 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
Re: PDFAnnotationLine problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: PDFAnnotationLine problem
      • From: John Calhoun <email@hidden>
    • Re: PDFAnnotationLine problem
      • From: Antonio Nunes <email@hidden>
References: 
 >PDFAnnotationLine problem (From: Vince <email@hidden>)
 >Re: PDFAnnotationLine problem (From: John Calhoun <email@hidden>)
 >Re: PDFAnnotationLine problem (From: John Calhoun <email@hidden>)

  • Prev by Date: Re: receiving a file on app startup
  • Next by Date: Re: NSOutlineView and reload
  • Previous by thread: Re: PDFAnnotationLine problem
  • Next by thread: Re: PDFAnnotationLine problem
  • Index(es):
    • Date
    • Thread