mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-02 05:04:39 +08:00
Add FPDFTextEmbedderTest.Bug491161396 to help prevent an issue where zero width spaces can cause FPDFText_GetText() output to contain an extra "\r\n". Along the way, also tweak FPDFTextEmbedderTest.Bug444176962 to calculate its expected string length instead of hardcoding it. Bug: 491161396 Change-Id: Ica9fbc0650460ffa153067af03161add92a56760 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/144530 Reviewed-by: Andy Phan <andyphan@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
58 lines
640 B
Plaintext
58 lines
640 B
Plaintext
{{header}}
|
|
{{object 1 0}} <<
|
|
/Type /Catalog
|
|
/Pages 2 0 R
|
|
>>
|
|
endobj
|
|
{{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
|
|
>>
|
|
>>
|
|
/Contents 5 0 R
|
|
>>
|
|
endobj
|
|
{{object 4 0}} <<
|
|
/Type /Font
|
|
/Subtype /Type1
|
|
/BaseFont /Times-Roman
|
|
>>
|
|
endobj
|
|
{{object 5 0}} <<
|
|
{{streamlen}}
|
|
>>
|
|
stream
|
|
BT
|
|
20 50 Td
|
|
/F1 12 Tf
|
|
(Hello, world!) Tj
|
|
ET
|
|
BT
|
|
150 50 Td
|
|
/F1 12 Tf
|
|
0.001 0 0 1 0 0 Tm
|
|
<0020> Tj
|
|
ET
|
|
BT
|
|
20 20 Td
|
|
/F1 12 Tf
|
|
0.001 0 0 1 0 0 Tm
|
|
<0020> Tj
|
|
ET
|
|
endstream
|
|
endobj
|
|
{{xref}}
|
|
{{trailer}}
|
|
{{startxref}}
|
|
%%EOF
|