int height = element.getChild("Height").getIntValue();
Rectangle pageSize = reader.getPageSizeWithRotation(currentPage);
cb.addImage(image, width, 0, 0, height,
element.getChild("X").getIntValue() * globalData.xFactor,
(pageSize.height() - element.getChild("Y").getIntValue() - Y_OFFSET) * globalData.yFactor);
}
private void replaceBarcode(PdfContentByte cb, PdfReader reader, int currentPage,
JdomElement element, GlobalConfig globalData, String value)
throws DocumentException {