org.pdfbox.pdmodel.font

Class PDType1AfmPfbFont

Implemented Interfaces:
COSObjectable

public class PDType1AfmPfbFont
extends PDType1Font

This is implementation of the Type1 Font with a afm and a pfb file.
Version:
$Revision: 1.5 $
Author:
Michael Niedermair

Field Summary

Fields inherited from class org.pdfbox.pdmodel.font.PDType1Font

COURIER, COURIER_BOLD, COURIER_BOLD_OBLIQUE, COURIER_OBLIQUE, HELVETICA, HELVETICA_BOLD, HELVETICA_BOLD_OBLIQUE, HELVETICA_OBLIQUE, SYMBOL, TIMES_BOLD, TIMES_BOLD_ITALIC, TIMES_ITALIC, TIMES_ROMAN, ZAPF_DINGBATS

Fields inherited from class org.pdfbox.pdmodel.font.PDFont

font

Constructor Summary

PDType1AfmPfbFont(PDDocument doc, InputStream afm, InputStream pfb)
Create a new object.
PDType1AfmPfbFont(PDDocument doc, String afmname)
Create a new object.

Method Summary

PDFontDescriptor
getFontDescriptor()

Methods inherited from class org.pdfbox.pdmodel.font.PDType1Font

drawString, getStandard14Names, getStandardFont

Methods inherited from class org.pdfbox.pdmodel.font.PDSimpleFont

drawString, getAverageFontWidth, getFontBoundingBox, getFontDescriptor, getFontHeight, getFontWidth, getToUnicode, setFontDescriptor, setToUnicode

Methods inherited from class org.pdfbox.pdmodel.font.PDFont

clearResources, drawString, encode, equals, getAFM, getAverageFontWidth, getAverageFontWidthFromAFMFile, getBaseFont, getCOSObject, getCodeFromArray, getEncoding, getFirstChar, getFontBoundingBox, getFontHeight, getFontMatrix, getFontWidth, getFontWidthFromAFMFile, getLastChar, getStringWidth, getSubType, getType, getWidths, hashCode, setBaseFont, setEncoding, setFirstChar, setLastChar, setWidths

Constructor Details

PDType1AfmPfbFont

public PDType1AfmPfbFont(PDDocument doc,
                         InputStream afm,
                         InputStream pfb)
            throws IOException
Create a new object.
Parameters:
doc - The PDF document that will hold the embedded font.
afm - The afm input.
pfb - The pfb input.

PDType1AfmPfbFont

public PDType1AfmPfbFont(PDDocument doc,
                         String afmname)
            throws IOException
Create a new object.
Parameters:
doc - The PDF document that will hold the embedded font.
afmname - The font filename.

Method Details

getFontDescriptor

public PDFontDescriptor getFontDescriptor()
            throws IOException
Overrides:
getFontDescriptor in interface PDSimpleFont