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