class PDType1FontEmbedder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Encoding |
fontEncoding |
private Type1Font |
type1 |
Constructor and Description |
---|
PDType1FontEmbedder(PDDocument doc,
COSDictionary dict,
java.io.InputStream pfbStream,
Encoding encoding)
This will load a PFB to be embedded into a document.
|
Modifier and Type | Method and Description |
---|---|
(package private) static PDFontDescriptor |
buildFontDescriptor(FontMetrics metrics)
Returns a PDFontDescriptor for the given AFM.
|
(package private) static PDFontDescriptor |
buildFontDescriptor(Type1Font type1)
Returns a PDFontDescriptor for the given PFB.
|
Encoding |
getFontEncoding()
Returns the font's encoding.
|
GlyphList |
getGlyphList()
Returns the font's glyph list.
|
Type1Font |
getType1Font()
Returns the Type 1 font.
|
PDType1FontEmbedder(PDDocument doc, COSDictionary dict, java.io.InputStream pfbStream, Encoding encoding) throws java.io.IOException
doc
- The PDF document that will hold the embedded font.dict
- The Font dictionary to write to.pfbStream
- The pfb input.java.io.IOException
- If there is an error loading the data.static PDFontDescriptor buildFontDescriptor(Type1Font type1)
static PDFontDescriptor buildFontDescriptor(FontMetrics metrics)
metrics
- AFMpublic Encoding getFontEncoding()
public GlyphList getGlyphList()
public Type1Font getType1Font()