• 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: PDFMarkupAnnotations not showing when drawing PDFPage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDFMarkupAnnotations not showing when drawing PDFPage


  • Subject: Re: PDFMarkupAnnotations not showing when drawing PDFPage
  • From: John Calhoun <email@hidden>
  • Date: Wed, 14 Feb 2007 17:39:50 -0800


On Feb 14, 2007, at 4:24 PM, Antonio Nunes wrote:

Hi,

Last December this question came up on the list and John Calhoun answered, but we never knew if the OP was able to resolve his issue. Now I am up with the same issue. Trying to get markup annotations to draw and they won´t. I use the following test code:

PDFPage *page = [trackedObject pdfPage];
NSRect bounds = [page boundsForBox:kPDFDisplayBoxMediaBox];
PDFAnnotationMarkup *markup = [[[PDFAnnotationMarkup alloc] initWithBounds:bounds] autorelease];
[markup setMarkupType:kPDFMarkupTypeHighlight];
[page addAnnotation:markup];
[page setDisplaysAnnotations:YES];
[[currentDocument layoutView] setNeedsDisplay:YES];

It looks good. To narrow the problem, change the annotation to a Circle annotation and see if it still fails to draw.


john calhoun—_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: PDFMarkupAnnotations not showing when drawing PDFPage
      • From: Antonio Nunes <email@hidden>
References: 
 >PDFMarkupAnnotations not showing when drawing PDFPage (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Bindings: Multiple Selections & Custom Classes
  • Next by Date: Re: Bindings: Multiple Selections & Custom Classes
  • Previous by thread: PDFMarkupAnnotations not showing when drawing PDFPage
  • Next by thread: Re: PDFMarkupAnnotations not showing when drawing PDFPage
  • Index(es):
    • Date
    • Thread