From cbed949bee845d6ab3e38b3d9b7e832620b64b51 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Tue, 10 Jul 2018 21:54:26 +0000 Subject: Add test for reading marked content with an indirect dict. Bug: pdfium:1118 Change-Id: I2e9adaae64cba5b3915c19f3c99743cddbe58736 Reviewed-on: https://pdfium-review.googlesource.com/37371 Reviewed-by: Lei Zhang Commit-Queue: Henrique Nakashima --- testing/resources/text_in_page_marked_indirect.in | 144 ++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 testing/resources/text_in_page_marked_indirect.in (limited to 'testing/resources/text_in_page_marked_indirect.in') diff --git a/testing/resources/text_in_page_marked_indirect.in b/testing/resources/text_in_page_marked_indirect.in new file mode 100644 index 0000000000..1f989f6f73 --- /dev/null +++ b/testing/resources/text_in_page_marked_indirect.in @@ -0,0 +1,144 @@ +{{header}} +{{object 1 0}} +<< /Pages 2 0 R /Type /Catalog >> +endobj +{{object 2 0}} +<< /Count 1 /Kids [ 3 0 R ] /MediaBox [ 0 0 200 200 ] /Type /Pages >> +endobj +{{object 3 0}} +<< + /Contents 4 0 R + /Parent 2 0 R + /Resources << + /ExtGState << /FXE1 5 0 R /FXE2 6 0 R >> + /Font << /F1 7 0 R /F2 8 0 R /FXF1 9 0 R /FXF2 10 0 R >> + /Properties << + /LastBoundsProperty 13 0 R + >> + >> + /Type /Page +>> +endobj +{{object 4 0}} +[ 12 0 R ] +endobj +{{object 5 0}} +<< /BM /Normal /CA 1 /ca 1 >> +endobj +{{object 6 0}} +<< /ca 0.705882 >> +endobj +{{object 7 0}} +<< /BaseFont /Times-Roman /Subtype /Type1 /Type /Font >> +endobj +{{object 8 0}} +<< /BaseFont /Helvetica /Subtype /Type1 /Type /Font >> +endobj +{{object 9 0}} +<< /BaseFont /Courier-Bold /Subtype /Type1 /Type /Font >> +endobj +{{object 10 0}} +<< /BaseFont /Times-Bold /Subtype /Type1 /Type /Font >> +endobj +{{object 12 0}} +<< {{streamlen}} >> +stream +q +0 0 0 RG 0 0 0 rg 1 w 0 J 0 j +/FXE1 gs +/Square <> BDC +q 0 0 0 rg /FXE2 gs BT 1 0 0 1 120 100 Tm /FXF1 9 Tf (Test 1) Tj ET Q +EMC +/Prime BMC +q 0 0 0.0509804 rg /FXE2 gs +BT 0.995597 -0.341789 0.341789 0.995597 119.912 93.1642 +Tm /FXF2 9 Tf (Test 2) Tj ET Q +q 0 0 0.101961 rg /FXE2 gs +BT 0.872208 -0.678867 0.678867 0.872208 117.444 86.4227 +Tm /FXF1 9 Tf (Test 3) Tj ET Q +EMC +/Square <> BDC +q 0 0 0.156863 rg /FXE2 gs +BT 0.633308 -0.969351 0.969351 0.633308 112.666 80.613 +Tm /FXF2 9 Tf (Test 4) Tj ET Q +EMC +/Prime BMC +q 0 0 0.207843 rg /FXE2 gs +BT 0.297167 -1.17348 1.17348 0.297167 105.943 76.5303 +Tm /FXF1 9 Tf (Test 5) Tj ET Q +EMC +q 0 0 0.262745 rg /FXE2 gs +BT -0.104311 -1.25884 1.25884 -0.104311 97.9138 74.8231 +Tm /FXF2 9 Tf (Test 6) Tj ET Q +/Prime BMC +q 0 0 0.313726 rg /FXE2 gs +BT -0.528547 -1.20496 1.20496 -0.528547 89.4291 75.9007 +Tm /FXF1 9 Tf (Test 7) Tj ET Q +EMC +q 0 0 0.364706 rg /FXE2 gs +BT -0.926806 -1.00678 1.00678 -0.926806 81.4639 79.8644 +Tm /FXF2 9 Tf (Test 8) Tj ET Q +/Square <> BDC +q 0 0 0.419608 rg /FXE2 gs +BT -1.24978 -0.676346 0.676346 -1.24978 75.0044 86.4731 +Tm /FXF1 9 Tf (Test 9) Tj ET Q +EMC +q 0 0 0.470588 rg /FXE2 gs +BT -1.45359 -0.24256 0.24256 -1.45359 70.9283 95.1488 +Tm /FXF2 9 Tf (Test 10) Tj ET Q +/GreaterThanTen BMC +/Prime BMC +q 0 0 0.52549 rg /FXE2 gs +BT -1.5055 0.251223 -0.251223 -1.5055 69.89 105.024 +Tm /FXF1 9 Tf (Test 11) Tj ET Q +EMC +q 0 0 0.576471 rg /FXE2 gs +BT -1.38864 0.751496 -0.751496 -1.38864 72.2271 115.03 +Tm /FXF2 9 Tf (Test 12) Tj ET Q +/Prime BMC +q 0 0 0.631373 rg /FXE2 gs +BT -1.10504 1.20039 -1.20039 -1.10504 77.8992 124.008 +Tm /FXF1 9 Tf (Test 13) Tj ET Q +EMC +q 0 0 0.682353 rg /FXE2 gs +BT -0.67654 1.54236 -1.54236 -0.67654 86.4692 130.847 +Tm /FXF2 9 Tf (Test 14) Tj ET Q +q 0 0 0.733333 rg /FXE2 gs +BT -0.143427 1.73091 -1.73091 -0.143427 97.1315 134.618 +Tm /FXF1 9 Tf (Test 15) Tj ET Q +/Square <> BDC +q 0 0 0.788235 rg /FXE2 gs +BT 0.43929 1.73472 -1.73472 0.43929 108.786 134.694 +Tm /FXF2 9 Tf (Test 16) Tj ET Q +EMC +/Prime BMC +q 0 0 0.839216 rg /FXE2 gs +BT 1.00754 1.54215 -1.54215 1.00754 120.151 130.843 +Tm /FXF1 9 Tf (Test 17) Tj ET Q +EMC +q 0 0 0.894118 rg /FXE2 gs +BT 1.49521 1.16377 -1.16377 1.49521 129.904 123.275 +Tm /FXF2 9 Tf (Test 18) Tj ET Q +/Bounds /LastBoundsProperty BDC +/Prime BMC +q 0 0 0.945098 rg /FXE2 gs +BT 1.84185 0.632309 -0.632309 1.84185 136.837 112.646 +Tm /FXF1 9 Tf (Test 19) Tj ET Q +EMC +EMC +EMC +Q +endstream +endobj +{{object 13 0}} +<< /Position (Last) >> +endobj + +{{xref}} +trailer << + /Root 1 0 R + /Size 14 + /ID [] +>> +{{startxref}} +%%EOF -- cgit v1.2.3