Peter,

 

super( fontDictionary );

sets field font in superclass (PDFont).

 

Don't worry about "Not implemented." thing, its implemented in extending
classes (e.g. PDTrueTypeFont).

 

So really I need that dump of fontDictionary to tell you more.

fontDictionary.toString() will do it.

 

Andrey

 

 

 

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Peter Murray-Rust
Gesendet: Montag, 7. Mai 2012 12:13
An: Andrey Kuznetsov
Cc: [email protected]
Betreff: Re: Extracting vector graphics from PDF

 

 

On Mon, May 7, 2012 at 10:58 AM, Andrey Kuznetsov <[email protected]> wrote:

Hi Peter,

 

There are must be COSDictionary field called font (in PDSimpleFont).

Can you dump it and post here?


// You mean fontDictionary , I imagine?
   public PDSimpleFont( COSDictionary fontDictionary )
    {
        super( fontDictionary );
    }

    /**
    * Looks up, creates, returns  the AWT Font.
    */
    public Font getawtFont() throws IOException
    {
        log.error("Not yet implemented:" + getClass().getName() );
        return null;
    }

I notice now that this call is used in drawString so that might explain why
there is no font information 


Is it worth changing to 1.7.0??



-- 
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069

Reply via email to