* @return the width of the character
*/
private float getWidthFromCharacterStream(PDResources resources, COSStream charStream) throws IOException
{
PreflightPath vPath = context.getValidationPath();
PDFAType3StreamParser parser = new PDFAType3StreamParser(context, vPath.getClosestPathElement(PDPage.class));
parser.resetEngine();
parser.processSubStream(null, resources, charStream);
return parser.getWidth();
}