Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, 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. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | 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
/DescendantFonts [12 0 R]
12 0 obj
/BaseFont /Symbol
/Subtype/CIDFontType2/Type/Font/CIDToGIDMap/Identity/DW 1000
/CIDSystemInfo 13 0 R
/FontDescriptor 14 0 R
13 0 obj
/Ordering(Identity) /Registry(Adobe) /Supplement 0
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
17 0 obj
/Filter /FlateDecode
/Length1 70128
/Length 47927


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!

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

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

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor

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

Debenu PDF Aerialist

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


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.