Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Use of UniCode
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Use of UniCode

 Post Reply Post Reply
Author
miki View Drop Down
New Member
New Member


Joined: 20 Jul 2017
Location: Slovakia
Points: 3
Post Options Post Options   Quote miki Quote  Post ReplyReply Direct Link To This Post Topic: Use of UniCode
    Posted: 20 Jul 2017 at 9:55pm
Hi,
what is wrong with this file?
(Font F2 - UniCode in text object Nr.9 - does not work...)
Thanks for help.
Beginner miki


%PDF-1.7

1 0 obj
<</Type/Catalog
/Pages 10000 0 R
>>
endobj

2 0 obj
[/PDF/Text]
endobj

3 0 obj
<</Type/Font/Subtype/CIDFontType2/Name/F1
/BaseFont/Arial/CIDToGIDMap/Identity
/CIDSystemInfo 4 0 R
/FontDescriptor 5 0 R
endobj

4 0 obj
<</Registry (Adobe)
/Ordering (Identity)
/Supplement 0>>
endobj

5 0 obj
<</Type/FontDescriptor
/FontName/Arial
/Flags 262178
/ItalicAngle 0/Ascent 718/Descent -207
/CapHeight 718/AvgWidth 478/MaxWidth 1212
/FontWeight 400/XHeight 523/StemV 60/FontBBox[ -166 -225 1000 931]>>
endobj

6 0 obj
<</Type/Font/Subtype/Type0/Name/F2
/BaseFont/Arial/Encoding/Identity-H
/DescendantFonts 3 0 R
/ToUnicode 7 0 R>>
endobj

7 0 obj
<</Length 372>>
stream
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
<< /Registry (Adobe)
/Ordering (Identity)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000> <FFFF>
endcodespacerange
1 beginbfrange
<0040> <007F> <0410>
endbfrange
endcmap
CMapName currentdict /CMap defineresource pop
end
end
endstream
endobj

8 0 obj
<</Length 81>>
stream
BT
1 0 0 1 100 400 cm
0 0 0 rg
/F1 24 Tf
T* 0 -30 Td
(ABCDabcd-1234)Tj
ET
endstream
endobj

9 0 obj
<</Length 76>>
stream
BT
1 0 0 1 0 100 cm
0 0 0 rg
/F2 24 Tf
T* 0 -30 Td
(ЯХветя-123)Tj
ET
endstream
endobj

10001 0 obj
<</Type/Page/Parent 10000 0 R/MediaBox [0 0 595 842]
/Contents
[ 8 0 R 9 0 R]
/Resources<</ProcSet 2 0 R
/Font<</F1 3 0 R/F2 6 0 R>>>>
>>
endobj

10000 0 obj
<</Type/Pages
/Kids [10001 0 R 10001 0 R ]
/Count 1
>>
endobj

xref
0 10
0000000000 65535 f
0000000012 00000 n
0000000070 00000 n
0000000102 00000 n
0000000247 00000 n
0000000326 00000 n
0000000554 00000 n
0000000690 00000 n
0000001117 00000 n
0000001252 00000 n
10000 2
0000001550 00000 n
0000001382 00000 n
trailer
<</Size 12/Root 1 0 R >>
startxref
Back to Top
Sponsored Links


Back to Top
Rob Lyman View Drop Down
New Member
New Member
Avatar

Joined: 12 May 2015
Location: Chicago
Points: 25
Post Options Post Options   Quote Rob Lyman Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2017 at 9:06pm
The font F2 is declared as being a Type0 font using an 'Identity-H' encoding. This means that the show string in the text object that uses it (object 9 in this case) must specify each glyph using a Glyph ID: a unique specifier that selects a particular glyph from a particular font. GIDs appear in show strings as strings of hexadecimal digits (e.g. 5F63D2).

In object 9, the show string isn't composed of hexadecimal digits; it appears to be a Unicode string of Cyrillic characters. This will not work with a font using Identity-H encoding.

Note that Glyph IDs are unique to a particular font (e.g. GID 1004 may mean 'A' in one font, and '$' in another font); for this reason, Identity-H encoded fonts must be embedded in the PDF. This PDF lacks the embedded font: it should be in the FontDescriptor (object 5), but it is missing here.

In short, the text for object 9 in this PDF has not been correctly encoded, and it is missing the required embedded font. Please see section 9 of the ISO 32000 specification for more information.
Rob Lyman
Software Engineer
http://www.datalogics.com
Back to Top
miki View Drop Down
New Member
New Member


Joined: 20 Jul 2017
Location: Slovakia
Points: 3
Post Options Post Options   Quote miki Quote  Post ReplyReply Direct Link To This Post Posted: 25 Jul 2017 at 5:51pm
Thanks, Rob.
I will tray to complete the file.
miki
Back to Top
miki View Drop Down
New Member
New Member


Joined: 20 Jul 2017
Location: Slovakia
Points: 3
Post Options Post Options   Quote miki Quote  Post ReplyReply Direct Link To This Post Posted: 01 Aug 2017 at 10:34pm
Hi,
where can I find the stream and widths for full (not subsets) Arial font?
miki
P.S. I don't have Adobe Acrobat, Destiller and so..
I use Basic (VBA and RFO Basic for Android) only
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.031 seconds.