summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-08 19:01:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-08 19:01:28 +0000
commitb7c41498ac1f09debe0b12efe1312a22246a18b0 (patch)
tree695be97b644ed76bca59825d862715effe82509f /testing/resources
parent4ec16d7c89f4128e00de7247ef7e36b1f5d7f267 (diff)
downloadpdfium-b7c41498ac1f09debe0b12efe1312a22246a18b0.tar.xz
Add some basic tests for FPDF_VIEWERREF_GetPrintPageRange().
Hand edit viewer_ref.pdf to have a page range and more pages. Fix an invalid stream length in the file as well. Fix tests that depended on viewer_ref.pdf having only 1 page. Change-Id: I95d5cbf1f592d1c51f11d9ab5b26abf2f23ed598 Reviewed-on: https://pdfium-review.googlesource.com/32172 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/viewer_ref.pdf23
1 files changed, 14 insertions, 9 deletions
diff --git a/testing/resources/viewer_ref.pdf b/testing/resources/viewer_ref.pdf
index 851ea273e7..ca53771694 100644
--- a/testing/resources/viewer_ref.pdf
+++ b/testing/resources/viewer_ref.pdf
@@ -4,19 +4,24 @@
/Type /Catalog
/Pages 2 0 R
/ViewerPreferences <<
+ /Direction /R2L
/Foo /foo
/HideToolbar true
- /Direction /R2L
- /ViewArea /CropBox
/NumCopies 5
+ /PrintPageRange [0 2 4 4]
+ /ViewArea /CropBox
>>
>>
endobj
2 0 obj <<
/Type /Pages
- /Count 1
+ /Count 5
/Kids [
3 0 R
+ 3 0 R
+ 3 0 R
+ 3 0 R
+ 3 0 R
]
>>
endobj
@@ -40,7 +45,7 @@ endobj
endobj
% Content for page 0.
21 0 obj <<
- /Length 0
+ /Length 37
>>
stream
BT
@@ -53,8 +58,8 @@ xref
0 22
0000000000 65535 f
0000000015 00000 n
-0000000193 00000 n
-0000000281 00000 n
+0000000223 00000 n
+0000000351 00000 n
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
@@ -66,14 +71,14 @@ xref
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
-0000000442 00000 n
+0000000512 00000 n
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
0000000000 65535 f
-0000000537 00000 n
+0000000607 00000 n
trailer<< /Root 1 0 R /Size 22 >>
startxref
-625
+696
%%EOF