summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-09-15 14:45:29 -0700
committerLei Zhang <thestig@chromium.org>2015-09-15 14:45:29 -0700
commit0b3c8f742613da294f812e2f6e908f4026499f96 (patch)
tree9943c7faca7a30ce935eb2203e53dceb948f09e5 /testing
parentb17d62601b21dfce85718e08cfd0ffce3a45d74e (diff)
downloadpdfium-0b3c8f742613da294f812e2f6e908f4026499f96.tar.xz
Implement FPDFAction_GetFilePath().
The API is the same as the Foxit version, except the encoding is specified as UTF-8 instead of local encoding. Also remove CPDF_LWinParam since it's unused. BUG=chromium:517713 R=jun_fang@foxitsoftware.com Review URL: https://codereview.chromium.org/1335373002 .
Diffstat (limited to 'testing')
-rw-r--r--testing/resources/launch_action.in54
-rw-r--r--testing/resources/launch_action.pdf64
2 files changed, 118 insertions, 0 deletions
diff --git a/testing/resources/launch_action.in b/testing/resources/launch_action.in
new file mode 100644
index 0000000000..c98539f5ea
--- /dev/null
+++ b/testing/resources/launch_action.in
@@ -0,0 +1,54 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+{{object 2 0}} <<
+ /Type /Pages
+ /MediaBox [ 0 0 200 200 ]
+ /Count 1
+ /Kids [ 3 0 R ]
+>>
+endobj
+{{object 3 0}} <<
+ /Type /Page
+ /Parent 2 0 R
+ /Annots [4 0 R]
+>>
+endobj
+{{object 4 0}} <<
+ /A 5 0 R
+ /FT /Tx
+ /Ff 29360128
+ /T (txtName)
+ /Type /Annot
+ /Subtype /Link
+ /F 4
+ /M (D:20150514070426+05'30')
+ /Rect [1 1 199 199]
+ /BS <<
+ /W 1
+ /S /S
+ >>
+ /DA (/Helv 0 Tf 0 0 0 rg)
+ /AP <</N 8 0 R>>
+ /V ()
+ /AA 19 0 R
+>>
+endobj
+{{object 5 0}} <<
+ /F 6 0 R
+ /S /Launch
+>>
+{{object 6 0}} <<
+ /F (test.pdf)
+ /Type / Filespec
+>>
+endobj
+{{xref}}
+trailer <<
+ /Size 6
+ /Root 1 0 R
+>>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/launch_action.pdf b/testing/resources/launch_action.pdf
new file mode 100644
index 0000000000..99a42923de
--- /dev/null
+++ b/testing/resources/launch_action.pdf
@@ -0,0 +1,64 @@
+%PDF-1.7
+% ò¤ô
+1 0 obj <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+2 0 obj <<
+ /Type /Pages
+ /MediaBox [ 0 0 200 200 ]
+ /Count 1
+ /Kids [ 3 0 R ]
+>>
+endobj
+3 0 obj <<
+ /Type /Page
+ /Parent 2 0 R
+ /Annots [4 0 R]
+>>
+endobj
+4 0 obj <<
+ /A 5 0 R
+ /FT /Tx
+ /Ff 29360128
+ /T (txtName)
+ /Type /Annot
+ /Subtype /Link
+ /F 4
+ /M (D:20150514070426+05'30')
+ /Rect [1 1 199 199]
+ /BS <<
+ /W 1
+ /S /S
+ >>
+ /DA (/Helv 0 Tf 0 0 0 rg)
+ /AP <</N 8 0 R>>
+ /V ()
+ /AA 19 0 R
+>>
+endobj
+5 0 obj <<
+ /F 6 0 R
+ /S /Launch
+>>
+6 0 obj <<
+ /F (test.pdf)
+ /Type / Filespec
+>>
+endobj
+xref
+0 7
+0000000000 65535 f
+0000000015 00000 n
+0000000061 00000 n
+0000000154 00000 n
+0000000223 00000 n
+0000000489 00000 n
+0000000527 00000 n
+trailer <<
+ /Size 6
+ /Root 1 0 R
+>>
+startxref
+583
+%%EOF