xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/foreground_task.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /OpenAction 10 0 R
6>>
7endobj
8{{object 2 0}} <<
9  /Type /Pages
10  /Count 1
11  /Kids [
12    3 0 R
13  ]
14>>
15endobj
16{{object 3 0}} <<
17  /Type /Page
18  /Parent 2 0 R
19  /MediaBox [0 0 612 792]
20>>
21endobj
22{{object 10 0}} <<
23  /Type /Action
24  /S /JavaScript
25  /JS 11 0 R
26>>
27endobj
28{{object 11 0}} <<
29  {{streamlen}}
30>>
31stream
32try {
33  gc({type: 'major', execution: 'async'}).then(() => { app.alert('Resolved') });
34  app.alert('Posted');
35} catch (e) {
36  app.alert('Error: ' + e);
37}
38endstream
39endobj
40{{xref}}
41{{trailer}}
42{{startxref}}
43%%EOF
44