}
}
private PDType1Font createPDType1AfmPfbFont(PDDocument doc, String afmName) throws IOException
{
return new PDType1Font(doc,
new BufferedInputStream(new FileInputStream(afmName)),
new BufferedInputStream(new FileInputStream(afmName.replaceAll(".AFM", "").
replaceAll(".afm", "") + ".pfb")));
}