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: Thu, 15 Feb 2007 13:28:38 -0800
On Feb 15, 2007, at 12:07 AM, Antonio Nunes wrote:
On Feb 15, 2007, at 1:39 AM, John Calhoun wrote:
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 ...
So, the Highlight annotation draws by stroking a line between pairs of
the quad points. (If you number them 0 to 3 in a sort of Z pattern,
then a line running from the midpoint between 0 and 3 and the midpoint
between 1 and 3 is stroked.) The stroke line width is relative to the
distance between these pairs of points. So, to highlight as you
describe an entire page, would likely end up with a stroke of some 700
or so points. This could be the problem — I've never pushed CG to
stroke a line that thick. Or the code to determine the line may be
failing for such extreme cases....
Try making the highlight smaller for a start and see if you can get a
small highlight. That would eliminate color and a few other
possibilities. If it is indeed size that is the issue - you could
grow it until it fails. That might illuminating. But generally, you
probably would be better to have multiple highlights (one per line of
text) anyway. I would pursue this approach anyway. Figure out how to
break up a page into individual lines and then either create
individual Highlight annotations for each line of text or create a
single Highlight annotation with multiple groups of quad points.
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