diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-03-21 14:28:07 -0700 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-03-23 14:34:58 -0700 |
commit | f99e5ccf03e1b8fa3dd9725cbd9992850b9e4159 (patch) | |
tree | 106a2bf6afa601c6ecf02942a76ce9496db446cf /tests/auto/pdf/qpdfsearchmodel/rotated_text.pdf | |
parent | c2707b62ecd92e287540a9f8338ccf442a32f1d3 (diff) |
Get tst_QPdfSearchModel working; check search results in rotated text
API has changed since b6dd845ec4a6bfb6b620686681e20d38a2f24101, and this
test wasn't included in CMakeLists so we haven't been running it. Now it
checks search result rectangle bounds. The new test PDFs are from the
pdfium repository https://pdfium.googlesource.com/pdfium and include
different kinds of transforms (the Tm command apparently).
Pick-to: 6.7
Task-number: QTBUG-120764
Change-Id: I25cf5944dd227dd4d2c70cbbac470d1d0fcc181a
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'tests/auto/pdf/qpdfsearchmodel/rotated_text.pdf')
-rw-r--r-- | tests/auto/pdf/qpdfsearchmodel/rotated_text.pdf | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/tests/auto/pdf/qpdfsearchmodel/rotated_text.pdf b/tests/auto/pdf/qpdfsearchmodel/rotated_text.pdf new file mode 100644 index 000000000..d6d8db84e --- /dev/null +++ b/tests/auto/pdf/qpdfsearchmodel/rotated_text.pdf @@ -0,0 +1,70 @@ +%PDF-1.7 +% ò¤ô +1 0 obj << + /Type /Catalog + /Pages 2 0 R +>> +endobj +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 + /Resources << + /Font << + /F1 4 0 R + >> + >> + /Contents 5 0 R +>> +endobj +4 0 obj << + /Type /Font + /Subtype /Type1 + /BaseFont /Times-Roman +>> +endobj +5 0 obj << + /Length 406 +>> +stream +BT +0 0 Td +/F1 12 Tf +0.70710678118 -0.70710678118 0.70710678118 0.70710678118 100 100 Tm +(Hello,) Tj +0 0 Td +/F1 12 Tf +-0.70710678118 -0.70710678118 0.70710678118 -0.70710678118 100 100 Tm +( world!\r\n) Tj +0 0 Td +/F1 12 Tf +-0.70710678118 0.70710678118 -0.70710678118 -0.70710678118 100 100 Tm +(Goodbye,) Tj +0 0 Td +/F1 12 Tf +0.70710678118 0.70710678118 -0.70710678118 0.70710678118 100 100 Tm +( world!) Tj +ET +endstream +endobj +xref +0 6 +0000000000 65535 f +0000000015 00000 n +0000000068 00000 n +0000000161 00000 n +0000000287 00000 n +0000000365 00000 n +trailer << + /Root 1 0 R + /Size 6 +>> +startxref +823 +%%EOF |