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) Developers

Conf: (P-PDF) Developers, Msg: 133242
From: ved_jai
Date: 5/24/2005 04:01 PM

hi people
i have yet another question regarding the PDF format. This time its
regarding the FONT-NAME.

I have studied about the fonts and whenever the PDF gives the name of
the Basefont , it tends to remove the spaces between words. For
example it will name Arial Black font as ArialBlack (without the space). I
read the PostScript Language Reference Manual Third Edition and just
before section 5.3 they have said that it is customary to remove the
spaces to limit the name length to less than 40 characters.

Now I am looking towards using this font name to be applied to text, but
if I use this name I will not get perfectly correct results. So is there any
way where I can extract the correct font name from this entry. One way
I thought of doing this is - after studying a few fonts I found that the
general flow is like if there is Capital Letter then there has to be a space
before that just like in the case of Arial Black. Another example will be
the simple font -Times New Roman which PDF gives as TimesNewRoman
(again without spaces). But we can observe a generalization here.
However I will be failing in the case of certain fonts like PMingLiU or
SimSun or for that matter the other CJK fonts which are not named in
Roman characters but are 2 byte representations for each character.
Is any generalised solution possible for this problem ?
Thanks and regards
Jai Praful Ved

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

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
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.