Thanks a lot, Leonard
I found PdfReader.getMetadata()
It returns a byte array with XML. Off course, I can parse it (And I already
done it).
But getInfo() is much more useful - it returns a HashMap of properties.
There is a reason make parsing on iText side. Becouse
iText-deve
It's not incompetency just incomplete knowledge of PDF.Since PDF
1.4 (Acrobat 5), Adobe has moved away from the classic "DocInfo" type
of metadata to an XML-based metadata called XMP - though PDF/A was the
first subset of PDF to REQUIRE XMP.
So what you need to do is read up on XMP and
Hi all
I use iText for extract PDF text and PDF-file metadata.
In last case code is simple
PdfReader reader = new PdfReader(is,"".getBytes());
//Read the file metadata
HashMap info = reader.getInfo();
reader.close();
String author = (String)info.get("Author");