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 30 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   /Annots [
     22     8 0 R
     23     ]
     24   /AA << /C 36 0 R >>
     25 >>
     26 endobj
     27 % Forms
     28 {{object 4 0}} <<
     29   /XFA [
     30     (xdp:xdp) 43 0 R
     31     (form) 49 0 R
     32     (</xdp:xdp>) 50 0 R
     33   ]
     34   /Fields [
     35     8 0 R
     36     ]
     37 >>
     38 endobj
     39 % Fields
     40 {{object 8 0}} <<
     41   /FT /Tx
     42   /T (MyField)
     43   /Type /Annot
     44   /Subtype /Widget
     45   /Rect [100 300 500 400]
     46   /AA << /Bl 34 0 R >>
     47 >>
     48 endobj
     49 % JS Action
     50 {{object 30 0}} <<
     51   /Type /Action
     52   /S /JavaScript
     53   /JS 31 0 R
     54 >>
     55 endobj
     56 % JS program to exexute
     57 {{object 31 0}} <<
     58 >>
     59 stream
     60 this.getField("MyField").setFocus();
     61 app.alert("focused");
     62 endstream
     63 endobj
     64 % Lost Focus AAction MyField
     65 {{object 34 0}} <<
     66   /Type /Action
     67   /S /JavaScript
     68   /JS 35 0 R
     69 >>
     70 endobj
     71 % JS program to exexute
     72 {{object 35 0}} <<
     73 >>
     74 stream
     75 this.removeField("MyField");
     76 app.alert("removed");
     77 endstream
     78 endobj
     79 % Closing Page 0
     80 {{object 36 0}} <<
     81   /Type /Action
     82   /S /JavaScript
     83   /JS 37 0 R
     84 >>
     85 endobj
     86 % JS program to exexute
     87 {{object 37 0}} <<
     88 >>
     89 stream
     90 this.removeField("MyField");
     91 endstream
     92 endobj
     93 {{object 43 0}} <<
     94 >>stream
     95 <?xml version="1.0" encoding="UTF-8"?>
     96 <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
     97 endstream
     98 endobj
     99 {{object 49 0}} <<
    100 >>stream
    101 <config></config>
    102 <template></template>
    103 endstream
    104 endobj
    105 {{object 50 0}} <<
    106 >>stream
    107 </xdp:xdp>
    108 endstream
    109 endobj
    110 {{xref}}
    111 trailer <<
    112   /Root 1 0 R
    113 >>
    114 {{startxref}}
    115 %%EOF
    116