16321633163416351636163716381639164016411642
{ // Insert the external object within the resources! int xObjectIndex = xObjects.size(); do {name = new PdfName(String.valueOf(++xObjectIndex));} while(xObjects.containsKey(name)); xObjects.put(name,value); xObjects.update(); } return name; }