* @param doc PDF document to add fonts to
* @param fontInfo font info object to get font information from
*/
public static void addToResources(PDFDocument doc, FontInfo fontInfo) {
Hashtable fonts = fontInfo.getUsedFonts();
Enumeration e = fonts.keys();
PDFResources resources = doc.getResources();
while (e.hasMoreElements()) {
String f = (String)e.nextElement();
Font font = (Font)fonts.get(f);
FontDescriptor desc = null;