summaryrefslogtreecommitdiff
path: root/testing/resources/pixel/bug_491_unspecified.in
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-06-21 15:10:17 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-06-21 20:40:15 +0000
commiteca45e00c04fea5fa6be10a17f61cbcec6cba131 (patch)
tree33fed5a67379918ebbd083445accc569bb538843 /testing/resources/pixel/bug_491_unspecified.in
parent4e5e6f793c1a04f8257d2ea260ffa693b2c8cfd6 (diff)
downloadpdfium-eca45e00c04fea5fa6be10a17f61cbcec6cba131.tar.xz
Fixed optional content not rendered when OCGs array is empty.chromium/3138
At least one nonnull entry needs to be in OCGs for it to be considered present. See "OCGs" in table 4.49 in the PDF 1.7 spec. Bug: pdfium:491. Change-Id: I7eae65ba1fabff9cf1d5cea50d059a04814a3fec Reviewed-on: https://pdfium-review.googlesource.com/6751 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/resources/pixel/bug_491_unspecified.in')
-rw-r--r--testing/resources/pixel/bug_491_unspecified.in74
1 files changed, 74 insertions, 0 deletions
diff --git a/testing/resources/pixel/bug_491_unspecified.in b/testing/resources/pixel/bug_491_unspecified.in
new file mode 100644
index 0000000000..b1e7312935
--- /dev/null
+++ b/testing/resources/pixel/bug_491_unspecified.in
@@ -0,0 +1,74 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+ /OCProperties <<
+ /OCGs [
+ 8 0 R
+ ]
+ /D <<
+ /BaseState /OFF
+ >>
+ >>
+>>
+{{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
+ /Resources <<
+ /Font <<
+ /F1 4 0 R
+ /F2 5 0 R
+ >>
+ /Properties <<
+ /OC0 7 0 R
+ >>
+ >>
+ /Contents 6 0 R
+>>
+endobj
+{{object 4 0}} <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Times-Roman
+>>
+endobj
+{{object 5 0}} <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+{{object 6 0}} <<
+>>
+stream
+16 96 32 32 re B
+/OC /OC0 BDC
+64 96 32 32 re B
+EMC
+endstream
+endobj
+{{object 7 0}} <<
+ /OCGs [
+ ]
+ /Type /OCMD
+>>
+endobj
+{{object 8 0}} <<
+ /Type /OCG
+ /Name (Show Text)
+>>
+endobj
+{{xref}}
+trailer <<
+ /Size 9
+ /Root 1 0 R
+>>
+{{startxref}}
+%%EOF