summaryrefslogtreecommitdiff
path: root/testing/resources/pixel/bug_585.in
diff options
context:
space:
mode:
authortonikitoo <tonikitoo@igalia.com>2016-09-15 13:50:50 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-15 13:50:50 -0700
commit0a17fafd723e8684d1deb4b5ceea58967a0154da (patch)
tree6e438c8fab198e4e315243be858feaaff7a1a813 /testing/resources/pixel/bug_585.in
parent84be3a3cfec5107aac9a58ea00b58b733d393c7d (diff)
downloadpdfium-0a17fafd723e8684d1deb4b5ceea58967a0154da.tar.xz
Use either /RECT or /QuadPoints for annotation coordinates, depending on /AP
On Acrobat, if "/AP" is present on a text markup definition, the coordinates used to draw the annotation come from "/Rect values, whereas if "/AP" is not defined, the array defined in /QuadPoints is used to grab the annotation coordinates from. PDFium, on the other hand, uses "/Rect" regardless of presence or absence of "/AP". CL fixes PDFium to work similarly to Acrobat, in this case. TEST=testing/resources/pixel/bug_585_*.in BUG=pdfium:585 Review-Url: https://codereview.chromium.org/2289293005
Diffstat (limited to 'testing/resources/pixel/bug_585.in')
-rw-r--r--testing/resources/pixel/bug_585.in175
1 files changed, 175 insertions, 0 deletions
diff --git a/testing/resources/pixel/bug_585.in b/testing/resources/pixel/bug_585.in
new file mode 100644
index 0000000000..b8b56ad427
--- /dev/null
+++ b/testing/resources/pixel/bug_585.in
@@ -0,0 +1,175 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+{{object 2 0}} <<
+ /Type /Pages
+ /Count 1
+ /Kids [
+ 10 0 R
+ ]
+>>
+endobj
+% Page number 0.
+{{object 10 0}} <<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources <<
+ /Font <</F1 15 0 R>>
+ >>
+ /MediaBox [0 0 612 792]
+ /Annots [
+ 22 0 R
+ 23 0 R
+ 24 0 R
+ 25 0 R
+ ]
+ /Tabs /R
+>>
+endobj
+
+{{object 22 0}} <<
+ /Type /Annot
+ /Subtype /Highlight
+ /Rect [ -1 -1 -1 -1 ]
+ /NM (Annot-1)
+ /F 4
+ /QuadPoints [ 475 688 512 688 475 679 512 679 ]
+ /C [ 0.0001108646 0.001760244 0.9982184 ]
+ /Contents ()
+>>
+endobj
+
+{{object 23 0}} <<
+ /Border [
+ 0
+ 0
+ 1
+ ]
+ /C [
+ 0.294118
+ 0.6
+ 1
+ ]
+ /CA 1
+ /CreationDate (D:20150312175256+08'00')
+ /F 4
+ /M (D:20150312175256+08'00')
+ /NM (7f264ba2-e270-42a1-a390-eb41278072ff)
+ /QuadPoints [
+ 227.567
+ 688.016
+ 298.115
+ 688.016
+ 227.567
+ 679.292
+ 298.115
+ 679.292
+ ]
+ /RC (<?xml version="1.0"?><body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1"><p style="text-align:left" dir="ltr"><span style="line-height:0pt,font-size:0pt;font-style:normal;font-weight:normal;color:#000000;font-family:Helvetica"></span>\r\n</p>\r\n</body>\r\n)
+ /Rect [
+ -1
+ -1
+ -1
+ -1
+ ]
+ /Subj (Squiggly)
+ /Subtype /Squiggly
+ /T (Administrator)
+ /Type /Annot
+>>
+endobj
+
+{{object 24 0}} <<
+ /Border [
+ 0
+ 0
+ 1
+ ]
+ /C [
+ 0.278431
+ 0.603922
+ 0.6
+ ]
+ /CA 1
+ /CreationDate (D:20150312175350+08'00')
+ /F 4
+ /IRT 6 0 R
+ /IT /StrikeOutTextEdit
+ /M (D:20150312175350+08'00')
+ /NM (2912a3cf-3b30-48a7-8531-431ce468e6a8)
+ /P 4 0 R
+ /QuadPoints [
+ 186.875
+ 714.836
+ 293.483
+ 714.836
+ 186.875
+ 706.064
+ 293.483
+ 706.064
+ ]
+ /RT /Group
+ /Rect [
+ -1
+ -1
+ -1
+ -1
+ ]
+ /Subj (Replace)
+ /Subtype /StrikeOut
+ /T (Administrator)
+ /Type /Annot
+>>
+endobj
+
+{{object 25 0}} <<
+ /Border [
+ 0
+ 0
+ 1
+ ]
+ /C [
+ 0.2
+ 0.619608
+ 0
+ ]
+ /CA 1
+ /CreationDate (D:20150312175318+08'00')
+ /F 4
+ /M (D:20150312175318+08'00')
+ /NM (c99bdf16-3040-4bf6-9b8a-a80cc563a6a7)
+ /P 4 0 R
+ /Popup 6 0 R
+ /QuadPoints [
+ 204.395
+ 647.984
+ 403.895
+ 647.984
+ 204.395
+ 636.872
+ 403.895
+ 636.872
+ ]
+ /RC (<?xml version="1.0"?><body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1"><p style="text-align:left" dir="ltr"><span style="line-height:0pt,font-size:0pt;font-style:normal;font-weight:normal;color:#000000;font-family:Helvetica"></span>\r\n</p>\r\n</body>\r\n)
+ /Rect [
+ -1
+ -1
+ -1
+ -1
+ ]
+ /Subj (Underline)
+ /Subtype /Underline
+ /T (Administrator)
+ /Type /Annot
+>>
+endobj
+
+{{xref}}
+trailer <<
+ /Root 1 0 R
+>>
+{{startxref}}
+%%EOF