Home | History | Annotate | Download | only in javascript
      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 >>
      8 endobj
      9 {{object 2 0}} <<
     10   /Type /Pages
     11   /Count 1
     12   /Kids [
     13     3 0 R
     14   ]
     15 >>
     16 endobj
     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 >>
     27 % Forms
     28 {{object 4 0}} <<
     29   /Fields [5 0 R]
     30 >>
     31 % Field
     32 {{object 5 0}} <<
     33  /FT /Tx
     34  /T (MyField)
     35  /Type /Annot
     36  /Subtype /Widget
     37  /Rect [100 200 150 250]
     38 >>
     39 % OpenAction action
     40 {{object 10 0}} <<
     41   /Type /Action
     42   /S /JavaScript
     43   /JS 11 0 R
     44 >>
     45 endobj
     46 % JS program to exexute
     47 {{object 11 0}} <<
     48 >>
     49 stream
     50 app.alert(util.printf("Values = %0.1x .9999 %x", 1, 2));
     51 app.alert(util.printf("Values = %0.10x .9999 %x", 1, 2));
     52 app.alert(util.printf("Values = %0.100x .9999 %x", 1, 2));
     53 app.alert(util.printf("Values = %0.1000x .9999 %x", 1, 2));
     54 endstream
     55 endobj
     56 {{xref}}
     57 trailer <<
     58   /Root 1 0 R
     59 >>
     60 {{startxref}}
     61 %%EOF
     62