return COUNTER;
}
private void readPdfAInfo() {
byte[] metadata = null;
XMPMeta xmpMeta = null;
XMPProperty pdfaidConformance = null;
XMPProperty pdfaidPart = null;
try {
metadata = reader.getMetadata();
xmpMeta = XMPMetaParser.parse(metadata, null);
pdfaidConformance = xmpMeta.getProperty(XMPConst.NS_PDFA_ID, "pdfaid:conformance");
pdfaidPart = xmpMeta.getProperty(XMPConst.NS_PDFA_ID, "pdfaid:part");
} catch (Throwable e) {
throw new PdfAConformanceException(MessageLocalization.getComposedMessage("only.pdfa.documents.can.be.opened.in.PdfAStamper"));
}
if (pdfaidConformance == null || pdfaidPart == null) {
throw new PdfAConformanceException(MessageLocalization.getComposedMessage("only.pdfa.documents.can.be.opened.in.PdfAStamper"));