But how do I get then the metadata for this "non-working" pdfs? When I open 
them in Acrobat Reader and check File Properties I see there is meta data under 
"Keywords".
I need to get this data within my Java Application. Is there another than using 
method getMetadata?

Many thanks
Alen


From: iText mailing list [mailto:i...@1t3xt.info]
Sent: Dienstag, 10. September 2013 18:30
To: Post all your questions about iText here
Subject: Re: [iText-questions] Pdfreader / getMetadata returns NULL for some 
pdfs

On 9/10/2013 5:51 PM, Zurfluh, Alen wrote:
Hi there,

My plan is to use the Java Class PdfReader and its method getMetadata to return 
metadata from a PDF document.
This does not work for all my pdf documents. For some pdf documents the method 
getMetadata would return NULL.

So I compared a working with a non-working PDF file. I noticed that the working 
one includes so-called Dublin Core Properties
Whereas the non-working one does not! But the non-working as well working ones 
have properties like XMP core properties, PDF properties, XMP Media Management 
Properties.

Can this be the reason, why getMetadata returns NULL?

When getMetadata returns NULL, there is no "document-level" XMP stream. There 
may be XMP streams for other objects inside the document, but there is no 
metadata with respect of the complete document.

That's the most likely difference between what you describe as the documents 
that are "working" and the "non-working" ones.

This email is confidential. If you are not the intended recipient, please 
advise us immediately and delete this message. See 
https://www.swissglobal-am.com/Disclaimer_Email for further information on 
confidentiality, the risks of non-secure electronic communication, and certain 
disclosures which we are required to make in accordance with applicable 
legislation and regulations. If you cannot access this link, please notify us 
by reply message and we will send the contents to you.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to