• 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: John Calhoun <email@hidden>
  • Date: Tue, 5 Feb 2008 15:30:24 -0800

On Feb 5, 2008, at 7:16 AM, Vince wrote:
(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.

I would have to check the code for Leopard vs. Tiger, but it sounds like the documentation is wrong (sort of). I think my train of thought on the annotations like this was to make the end points (for the Line) relative to the annotations bounds — call them offsets really. This makes it easier for an app that wants to allow a user to drag an annotation around on a page — you can simply offset the bounds of the annotation without having to touch the end points.


Ink is another annotation that has points relative to its annotation bounds.

I said "sort of" above though because the coordinates are sort of in page-space. They are still in "points" (as in 72 points per inch) and unaffected by say zooming or whatever in the PDFView.

I should update the headers/documentation to be more explicit here.

(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.

Antonio is right. Interior color was added in Leopard. Actually, PDFLine has in Tiger, internally (it was not in the public headers) a call for setInteriorColor but sadly this is not used when rendering the line end points.


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


References: 
 >PDFAnnotationLine problem (From: Vince <email@hidden>)
 >Re: PDFAnnotationLine problem (From: John Calhoun <email@hidden>)
 >Re: PDFAnnotationLine problem (From: John Calhoun <email@hidden>)
 >Re: PDFAnnotationLine problem (From: Vince <email@hidden>)

  • Prev by Date: Preventing NSTextView sending -setColor: to NSColorPanel?
  • Next by Date: Re: PDFAnnotationLine problem
  • Previous by thread: Re: PDFAnnotationLine problem
  • Next by thread: [Leopard] SUBQUERY predicate with CoreData
  • Index(es):
    • Date
    • Thread