/* ... otherwise, create a new one. */
if (img instanceof EpsGraphic) {
final EpsGraphic epsGraphic = (EpsGraphic) img;
xObject = new PDFXFormEps(pdfDoc, epsGraphic);
} else if (img instanceof SvgGraphic) {
final SvgGraphic svgGraphic = (SvgGraphic) img;
xObject = new PDFXFormSvg(pdfDoc, svgGraphic, fontConsumer,
strokeText);
} else if (img instanceof MathGraphic) {
final MathGraphic mathGraphic = (MathGraphic) img;
xObject = new PdfXFormMath(pdfDoc, mathGraphic, fontConsumer,