Re: PDFMarkupAnnotations not showing when drawing PDFPage
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