Planet PDF Forum Archive

Planet PDF ForumThis is from our 160,000 page PDF discussion forum archive one & two spanning 1999-2011. Use the filters on our Advanced Search page to search archive only. Head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions.


Previous | Next | (P-PDF) What's Wrong with my PDF?


Topic: Adobe PDF Reader won・t display the characters from the Symbol font
Conf: (P-PDF) What's Wrong with my PDF?, Msg: 171177
From: Franch
Date: 8/18/2009 06:35 PM

My program converts text with different fonts to PDF file. I have no problem converting text with regular true type fonts to PDF, but I have difficulties converting characters from the Symbol font to PDF. The Adobe PDF Reader won・t display the characters.

For example, if I convert the degree symbol char (character code 176 or 0xB0) from the Symbol font character set, my PDF file would look something like this:

11 0 obj
<<
/Type /Font
/Subtype /Type0
/BaseFont /Symbol
/Encoding/Identity-H
/DescendantFonts [12 0 R]
>>
endobj
12 0 obj
<<
/BaseFont /Symbol
/Subtype/CIDFontType2/Type/Font/CIDToGIDMap/Identity/DW 1000
/CIDSystemInfo 13 0 R
/FontDescriptor 14 0 R
>>
endobj
13 0 obj
<<
/Ordering(Identity) /Registry(Adobe) /Supplement 0
>>
endobj
14 0 obj
<<
/Type /FontDescriptor
/FontName /Symbol
/Flags 34
/FontBBox [ 0 -220 1113 1005 ]
/StemV 88
/ItalicAngle 0
/CapHeight 693
/Ascent 1005
/Descent -220
/FontFile2 17 0 R
>>
endobj
17 0 obj
<<
/Filter /FlateDecode
/Length1 70128
/Length 47927
>>
stream

endstream
endobj

Notice the program didn・t write out the /ToUnicode and /CIDSet sections, because the PDF format specification document says they are optional.

I suspect the /FontFile2 object (17 0 obj) isn・t written correctly. I use the GetFontData call to get the font data, and then compress it and write it out. The uncompressed size of the Symbol font (/Length1) is 70128, and this could be verified by checking the file size of the actual Symbol font file from \Windows\Fonts folder. So it seems correct. However, if I use the Word program to save the same character from the Symbol font to PDF, and then check the PDF file, its FontFile2 object shows the /Length1 to be 23252.

I don・t know why Word program results in the /Length1 to be 23252 while my program results in /Length1 to be 70128.

Is the Symbol font program written out differently than other font programs?

Could somebody show me some sample code or explain how to correctly write out the characters from the Symbol font program, especially, how to write out the Symbol font program itself?

Thanks in advance!
Franch

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Two Passwords Are Better Than One: The Low-Down On PDF Security

For people who don't spend their time looking at PDF files in text editors*, PDF security is a sometimes misunderstood beast.

For example, those document restrictions that PDF files sometimes have -- no Printing, Content Copying, Page Extraction, etc -- are essentially useless unless the PDF also has a User Password.

January 09, 2014
Platinum Sponsor



Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.