Hi,

Can anyone provied me an example on how to read attachments from a pdf file?

Here is my code, that thrown NullPointerException:

PDDocument document = new PDDocument();
document.load(new File("/path/to/file.pdf"));
document.getDocumentCatalog().getNames().getEmbeddedFiles();

Can anyone provide me a short example?

Thanks,
Andrei

Reply via email to