xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/bug_740166.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /AcroForm 4 0 R
6  /OpenAction 10 0 R
7>>
8endobj
9{{object 2 0}} <<
10  /Type /Pages
11  /Count 1
12  /Kids [
13    3 0 R
14  ]
15>>
16endobj
17% Page number 0.
18{{object 3 0}} <<
19  /Type /Page
20  /Parent 2 0 R
21  /Resources <<
22    /Font <</F1 15 0 R>>
23  >>
24  /Contents [21 0 R]
25  /MediaBox [0 0 612 792]
26>>
27endobj
28% Forms
29{{object 4 0}} <<
30  /Fields [5 0 R]
31>>
32endobj
33% Field
34{{object 5 0}} <<
35 /FT /Tx
36 /T (MyField)
37 /Type /Annot
38 /Subtype /Widget
39 /Rect [100 200 150 250]
40>>
41endobj
42% OpenAction action
43{{object 10 0}} <<
44  /Type /Action
45  /S /JavaScript
46  /JS 11 0 R
47>>
48endobj
49% JS program to execute
50{{object 11 0}} <<
51  {{streamlen}}
52>>
53stream
54app.alert(util.printf("Values = %0.1x .9999 %x", 1, 2));
55app.alert(util.printf("Values = %0.10x .9999 %x", 1, 2));
56app.alert(util.printf("Values = %0.100x .9999 %x", 1, 2));
57app.alert(util.printf("Values = %0.1000x .9999 %x", 1, 2));
58endstream
59endobj
60{{xref}}
61{{trailer}}
62{{startxref}}
63%%EOF
64