Re: PDFMarkupAnnotations not showing when drawing PDFPage
Re: PDFMarkupAnnotations not showing when drawing PDFPage
- Subject: Re: PDFMarkupAnnotations not showing when drawing PDFPage
- From: Antonio Nunes <email@hidden>
- Date: Thu, 15 Feb 2007 08:07:08 +0000
On Feb 15, 2007, at 1:39 AM, John Calhoun wrote:
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.
Thanks, circle draws great. Now on to the markup :-) If Preview can
do it, I'd say so can we... eventually ...
António Nunes
----------------------------------------------------
There is a world of difference between
searching for happiness and choosing
to be happy.
----------------------------------------------------
_______________________________________________
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