org.apache.pdfbox.pdmodel.font
Class PDFontFactory

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.font.PDFontFactory

public class PDFontFactory
extends java.lang.Object

This will create the correct type of font based on information in the dictionary.

Version:
$Revision: 1.6 $
Author:
Ben Litchfield

Method Summary
static PDFont createFont(COSDictionary dic)
          This will create the correct font based on information in the dictionary.
static PDFont createFont(COSDictionary dic, java.util.Map fontCache)
          Deprecated. due to some side effects font caching is no longer supported, use createFont(COSDictionary) instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFont

public static PDFont createFont(COSDictionary dic,
                                java.util.Map fontCache)
                         throws java.io.IOException
Deprecated. due to some side effects font caching is no longer supported, use createFont(COSDictionary) instead

This will create the correct font based on information in the dictionary.

Parameters:
dic - The populated dictionary.
fontCache - A Map to cache already created fonts
Returns:
The corrent implementation for the font.
Throws:
java.io.IOException - If the dictionary is not valid.

createFont

public static PDFont createFont(COSDictionary dic)
                         throws java.io.IOException
This will create the correct font based on information in the dictionary.

Parameters:
dic - The populated dictionary.
Returns:
The corrent implementation for the font.
Throws:
java.io.IOException - If the dictionary is not valid.