How do draw a radio button in the pdf document

41 views
Skip to first unread message

Rene Olivo

unread,
Jun 17, 2016, 2:15:26 PM6/17/16
to PDFTron WebViewer


       I try this but not working 

      

    Widget.prototype = $.extend(new Annotations.RadioButtonWidgetAnnotation(), {
      

        elementName: 'button',
        
        
        draw: function(ctx) {
            

        }
    });

   this only work  with Annotations.MarkupAnnotation class, because (i think) the class .RadioButtonWidgetAnnotatio not extend MarkupAnnotation. Please help me to draw a RadioButton. Thank

Matt Parizeau

unread,
Jun 17, 2016, 6:29:54 PM6/17/16
to PDFTron WebViewer
Hi,

What are you trying to achieve? Are you trying to programmatically add a new radio button to a document? Or are you trying to change the default rendering of all radio buttons?

Matt Parizeau
Software Developer
PDFTron Systems Inc.
Reply all
Reply to author
Forward
0 new messages