Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Developers


Topic: Re: Getting the encoding (was No Topic)
Conf: (P-PDF) Developers, Msg: 57182
From: LeonardR
Date: 5/29/2002 05:24 PM

At 9:40 PM -0500 11/16/00, p-pdf-developer Listmanager wrote:
>Yes!I am using visual c++ on the winnt platform developing plug-ins
>for my Acrobat.

OK.

>when i got the PDEFont object using PDETextGetFont
>i applied the function PDEFongGetAttr() to get the encoding
>attribute,then i got NULL for some pdf files
>Can i get these file's encoding anyway?

I never use the PDE stuff myself, I go right to Cos.

* Start with the Page's CosDict (PDPageGetCosObj)
* From that, get the Font dict (CosDictGet /Font )
* From that, get the CosDict for the font you want (CosDictGet fontname)
* In the font's CosDict is the /Encoding key, get it's value (CosDictGet)
and voila - you have the name of the encoding!


Leonard
--
----------------------------------------------------------------------------
Leonard Rosenthol
Sr. Software Engineer (215) 922-3509 (voice)
Digital Applications (215) 440-0504 (fax)

PGP Fingerprint: 8CC9 8878 921E C627 0BC1 15BB FC19 64A9 0016 1397



PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: 2009 IRS income tax forms available for download

With less than a month to go until Americans will be scrambling to file their 2009 tax paperwork. Luckily, printable PDF versions of forms such as the 1040 can be downloaded for free from the IRS website.

March 18, 2010
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories