pdfium/testing/resources/bug_491161396.in
Lei Zhang 3d62bf80a7 Add regression test for another issue with zero width spaces
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>
2026-03-11 09:14:02 -07:00

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