We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdf format error:trailer is not found

Hi,
I’m trying to do something simple-read field names in a form but get the following error: pdf format error:trailer is not found. Any help gratefully recieved. I attach the file also

code:
String FORM_LOCATION=“C:\Aspose\input.pdf”;

try {

License license = new License();
FileInputStream licenseStream = new FileInputStream(LICENSE);
license.setLicense(licenseStream);
} catch (Exception e) {
throw new Exception(“Error setting license:” + e.getMessage());
}




Form form = new Form(FORM_LOCATION, “C:\Aspose\output.pdf”);
String[] fieldNames=form.getFieldsNames();

for(String name:fieldNames){
System.out.println(“name=”+name);

}


error:
java.io.IOException: pdf format error:trailer is not found.
at com.aspose.pdf.kit.at.j(Unknown Source)
at com.aspose.pdf.kit.at.for(Unknown Source)
at com.aspose.pdf.kit.at.(Unknown Source)
at com.aspose.pdf.kit.at.(Unknown Source)
at com.aspose.pdf.kit.Form.(Unknown Source)


Hi Eamonn,

I have reproduced and logged this issue as
PDFKITJAVA-9918 in our issue tracking system. Our development team will be looking into the matter and you’ll be updated via this forum as the issue is resolved.

We’re sorry for the inconvenience.
Regards,

The issues you have found earlier (filed as 9918) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.