Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: testing/resources/javascript/bug_492_1.in

Issue 2281273002: Add support to Document::getAnnots method (Closed)
Patch Set: fixed nit as per tsepez's request Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/javascript/Document.cpp ('k') | testing/resources/javascript/bug_492_1_expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {{header}}
2 {{object 1 0}} <<
3 /Type /Catalog
4 /Pages 2 0 R
5 /OpenAction 20 0 R
6 >>
7 endobj
8 {{object 2 0}} <<
9 /Type /Pages
10 /Count 2
11 /Kids [
12 10 0 R
13 11 0 R
14 ]
15 >>
16 endobj
17 % Page number 0.
18 {{object 10 0}} <<
19 /Type /Page
20 /Parent 2 0 R
21 /Resources <<
22 /Font <</F1 15 0 R>>
23 >>
24 /MediaBox [0 0 612 792]
25 /Annots [
26 22 0 R
27 ]
28 /Tabs /R
29 >>
30 endobj
31 % Page number 1.
32 {{object 11 0}} <<
33 /Type /Page
34 /Parent 2 0 R
35 /Resources <<
36 /Font <</F1 15 0 R>>
37 >>
38 /MediaBox [0 0 612 792]
39 /Annots [
40 22 0 R
41 ]
42 /Tabs /C
43 >>
44 endobj
45
46 % OpenAction action
47 {{object 20 0}} <<
48 /Type /Action
49 /S /JavaScript
50 /JS 21 0 R
51 >>
52 endobj
53 % JS program to exexute
54 {{object 21 0}} <<
55 >>
56 stream
57 var annots = this.getAnnots();
58 for (var i = 0; i < annots.length; i++)
59 app.alert(annots[i].name);
60 endstream
61 endobj
62
63 {{object 22 0}} <<
64 /Type /Annot
65 /Subtype /Highlight
66 /QuadPoints [
67 115.80264
68 718.9139232
69 157.211172
70 718.9139232
71 115.80264
72 706.26441
73 6
74 157.211172
75 706.264416
76 ]
77 /Rect [ 115.75062 706.328568 157.001868 719.2715904 ]
78 /F 4
79 /Border [ 0 0 1 ]
80 /C [ 1 1 0 ]
81 /CA 1
82 /Contents <feff>
83 /M (D:20160712221733)
84 /NM (annot_s_name)
85 /P 9 0 R
86 /T <feff004a006100650020004800790075006e0020005000610072006b>
87 >>
88 endobj
89
90 {{xref}}
91 trailer <<
92 /Root 1 0 R
93 >>
94 {{startxref}}
95 %%EOF
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/Document.cpp ('k') | testing/resources/javascript/bug_492_1_expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698