mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
LibPDF: Add an encoding test file
For now, this uses UTF-16BE and UTF-8 marked strings in page body text. These markings should be ignored in body text. Hand-written, with `set fenc=latin1` and `set binary` in vim, and xref etc fixed up by running mutool clean Tests/LibPDF/encoding.pdf Tests/LibPDF/encoding.pdf as usual.
This commit is contained in:
parent
4c6afd4763
commit
65b895595a
|
@ -9,6 +9,7 @@ endforeach()
|
|||
set(TEST_FILES
|
||||
colorspaces.pdf
|
||||
complex.pdf
|
||||
encoding.pdf
|
||||
encryption_nocopy.pdf
|
||||
linearized.pdf
|
||||
non-linearized.pdf
|
||||
|
|
48
Tests/LibPDF/encoding.pdf
Normal file
48
Tests/LibPDF/encoding.pdf
Normal file
|
@ -0,0 +1,48 @@
|
|||
%PDF-1.7
|
||||
%µ¶
|
||||
|
||||
1 0 obj
|
||||
<</Type/Catalog/Pages 2 0 R>>
|
||||
endobj
|
||||
|
||||
2 0 obj
|
||||
<</Type/Pages/Kids[3 0 R]/Count 1>>
|
||||
endobj
|
||||
|
||||
3 0 obj
|
||||
<</Type/Page/Parent 2 0 R/MediaBox[0 0 525 250]/Contents 4 0 R/Resources<</Font<</F1 5 0 R>>>>>>
|
||||
endobj
|
||||
|
||||
4 0 obj
|
||||
<</Length 171>>
|
||||
stream
|
||||
BT
|
||||
/F1 24 Tf
|
||||
30 TL
|
||||
40 220 Td
|
||||
(The last line should say `abcd` three times,) '
|
||||
(prefixed with nothing, `þÿ`, and ``:) '
|
||||
T* [ (abcd) -800 (þÿabcd) -800 (abcd) ] TJ
|
||||
ET
|
||||
|
||||
endstream
|
||||
endobj
|
||||
|
||||
5 0 obj
|
||||
<</Type/Font/Subtype/Type1/Name/F1/BaseFont/Helvetica/Encoding/MacRomanEncoding>>
|
||||
endobj
|
||||
|
||||
xref
|
||||
0 6
|
||||
0000000000 65536 f
|
||||
0000000016 00000 n
|
||||
0000000062 00000 n
|
||||
0000000114 00000 n
|
||||
0000000227 00000 n
|
||||
0000000448 00000 n
|
||||
|
||||
trailer
|
||||
<</Size 6/Root 1 0 R>>
|
||||
startxref
|
||||
546
|
||||
%%EOF
|
Loading…
Reference in a new issue