Text annotation "setQuads" method doesn't seem to work?

68 views
Skip to first unread message

Jeremy Warne

unread,
Feb 9, 2014, 10:44:54 PM2/9/14
to pdfnet-w...@googlegroups.com
According to the docs here: http://www.pdftron.com/webviewer/demo/lib/html5/doc/symbols/Annotations.TextHighlightAnnotation.html, it seems that text highlights should have a method called setQuads(quads) which, well, sets their quads. Only it doesn't seem to work for me. I can create a text highlight, then access it using am.GetAnnotationsList()[0] -- where am is my AnnotationManager. The resulting object is a text annotation, and has a property Quads, which is an array of Quads, but no method setQuads. I can edit the array of Quads directly, but the labels are all obfuscated so I can't just pass in an array of quads from, for instance, a search function or a call to Document.GetTextPosition().

Am I doing something wrong?

Cheers

Jeremy

Kevin Kuo

unread,
Feb 13, 2014, 10:00:33 PM2/13/14
to pdfnet-w...@googlegroups.com
Hi Jeremy,

Looks like the setQuads method on TextMarkupAnnotation is missing from the latest version.
We'll try to fix this in the next maintenance release, or in a custom build if you'd like.

In the mean time, you could try the following:

Use the "Quads" property as part of TextMarkupAnnotation, by setting it directly
e.g.
highlightAnnot.Quads = Document.GetTextPosition();
Reply all
Reply to author
Forward
0 new messages