Squiggly Underline Annotation Tool

19 views
Skip to first unread message

Matt Parizeau

unread,
Sep 16, 2014, 7:54:20 PM9/16/14
to pdfnet-w...@googlegroups.com
Q:

Are there any plans for WebViewer to support the squiggly underline annotation?

A:

In WebViewer 1.8 the squiggly underline annotation actually exists but just doesn't have a tool created for it. You can create a tool for it using code like the following:

var SquigglyCreateTool = function(docViewer) {
   
Tools.TextAnnotationCreateTool.call(this, docViewer, Annotations.TextSquigglyAnnotation);
};
SquigglyCreateTool.prototype = new Tools.TextAnnotationCreateTool();

$
(document).on('documentLoaded', function() {
    $
("#toolModePicker").append('<li id="annot-button-custom-squiggly" class="glyphicons image-icon" data-toolmode="AnnotationCreateSquiggly" title="Squiggly Annotation"><img src="custom_squiggly_image.png"/></li>');
    readerControl
.toolModeMap['AnnotationCreateSquiggly'] = SquigglyCreateTool;
});
Reply all
Reply to author
Forward
0 new messages