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

Topic: Creating Font im PDF
Conf: (P-PDF) Developers, Msg: 52612
From: DrorF
Date: 5/29/2002 04:53 PM


I need to create PDF file from scratch using some data struture, which contain the info of the document.

One task, among many other, is the abilty to create text objects using information, which consists of the Font's name, text attributes such as: Bold, Italic and many other. I have also information about the font attributes, such as: height above/below the base line, width etc.

I am using the PDF Library by Adobe.

I have successed to create PDEFont objects, by searching a system font (by the font's name I have) and creating the PDEFont from it, I can handle also the Base 14 for Type1 fonts, but other than than I am in trouble.

I have read some backround on handling fonts in PDF, but got lost at some point.

To simplify my question, my UserCase is creating a font "AudreyTwo SWC". This font is not a Type1 and not found by enumurating the system fonts.
How can I create PDEFont object for this font.

I have tried to see what PDMaker for Office do, in order to understabd better the process. The PDF that was created by the PDMaker macro, created a TrueType font object with a BaseFont of "FCDIOI+ArialMT", using a FontDescriptor which has a reference to a FontFile2.

First of all, it doesn't worked for Adobe. The font did not match well, althought in other cases, they gain better results.

Lets say that I want to be compatiable with Adobe behaviour.
From where did they get the information to the font they have created, from the original font and how can I do the same using the PDF Library API (also for fonts from other types, like Type0)

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.