Skip to main content
Bara Capy
Participant
May 4, 2024
Question

Multi-language text arrays - create example PDF

  • May 4, 2024
  • 0 replies
  • 387 views

Hello Adobe Community:

 

I want to create an example PDF document that contains a multi-language text array (read 14.9.2.4 in PDF 2.0 specification). Either I am doing something wrong, or all PDF reader I tried do not support displaying multi-language text arrays.

Can someone tell me what I am doing wrong, or what PDF reader supports multi-language text arrays?

 

This is my example document, which I also appended as a file:

%PDF-2.0
%µ¶

1 0 obj
<</Type/Catalog/Outlines 2 0 R/Pages 3 0 R>>
endobj

2 0 obj
<</Type/Outlines/Count 0>>
endobj

3 0 obj
<</Type/Pages/Kids[4 0 R]/Count 1>>
endobj

4 0 obj
<</Type/Page/Parent 3 0 R/MediaBox[0 0 612 792]/Contents 5 0 R/Resources<</ProcSet 6 0 R/Font<</F1 7 0 R>>>>>>
endobj

5 0 obj
<</Length 98>>
stream
BT /F1 24 Tf 300 300 Td[(en-US) (English Text) (de) (Deutscher Text) () (Default Text)] Tj ET





endstream
endobj

6 0 obj
[/PDF/Text]
endobj

7 0 obj
<</Type/Font/Subtype/Type1/Name/F1/BaseFont/Helvetica/Encoding/MacRomanEncoding>>
endobj

xref
0 8
0000000000 65536 f 
0000000016 00000 n 
0000000077 00000 n 
0000000120 00000 n 
0000000172 00000 n 
0000000299 00000 n 
0000000446 00000 n 
0000000474 00000 n 

trailer
<</Size 8/Root 1 0 R>>
startxref
572
%%EOF

 If I replace the multi-language text array with a normal string (Hello World) and change the offsets according to the changes, every PDF reader displays the document correctly.

 

I hope someone can help me.

This topic has been closed for replies.