I am trying to obtain the information in the attachment in the below PDF.
input_test.pdf (209.7 KB)
The PDF has an attachment in it, but it seems that the following codes cannot get the information of the attachment. Is there any way to access the attachment in this PDF? Thanks
Document pdfDocument = new Document(“input_test.pdf”);
FileSpecification fileSpecification = pdfDocument.getEmbeddedFiles().get_Item(1);
System.out.printf("Name: - " + fileSpecification.getName());
Exception: Invalid index: index should be in the range [1…n] where n equals to the embedded files count