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

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

Issue 2281273002: Add support to Document::getAnnots method (Closed)
Patch Set: 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 [ 115.80264 718.9139232 157.211172 718.9139232 115.80264 706.26441 6 157.211172 706.264416 ]
Tom Sepez 2016/08/26 21:10:06 nit: style: 80 columns, I'd write this as /QuadP
tonikitoo 2016/08/26 21:21:35 Done.
67 /Rect [ 115.75062 706.328568 157.001868 719.2715904 ]
68 /F 4
69 /Border [ 0 0 1 ]
70 /C [ 1 1 0 ]
71 /CA 1
72 /Contents <feff>
73 /M (D:20160712221733)
74 /NM (annot_s_name)
75 /P 9 0 R
76 /T <feff004a006100650020004800790075006e0020005000610072006b>
77 >>
78 endobj
79
80 {{xref}}
81 trailer <<
82 /Root 1 0 R
83 >>
84 {{startxref}}
85 %%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