de.oio.jpdfunit.document
Interface Font


public interface Font

The interface for accessing the fonts of the document.

Author:
bbratkus

Method Summary
 String getFontName()
          For a font subset, the PostScript name of the font the value of the font's BaseFont entry and the font descriptor's FontName entry begins with a tag followed by a plus sign (+).
 String getFontType()
          Fonts are seperated in different font types.
 int getPage()
          For getting the page of a font you can use this method.
 

Method Detail

getFontName

String getFontName()
For a font subset, the PostScript name of the font the value of the font's BaseFont entry and the font descriptor's FontName entry begins with a tag followed by a plus sign (+). The tag consists of exactly six uppercase letters; the choice of letters is arbitrary, but different subsets in the same PDF file must have different tags. For example, EOODIA+Poetica is the name of a subset of Poetica, a Type 1 font. (See implementation note 62 in Appendix H.)

Returns:
The name of the font.

getFontType

String getFontType()
Fonts are seperated in different font types. The methods returns the type of this font.

Returns:
The type of this font. I.e. the TrueType or the Type0

getPage

int getPage()
For getting the page of a font you can use this method. Caution it is 1-based.

Returns:
The page number the font appears.


Copyright © 2011. All Rights Reserved.