Is PDF trailer required? - workaround for limited PDF support third party libs


We encounter an issue with PDFs we generate with PDFNet when those files are validated by another company which is using IText says. Their error is: trailer not found.

at com.lowagie.text.pdf.PdfReader.rebuildXref(Unknown Source)

at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source)

at com.lowagie.text.pdf.PdfReader.(Unknown Source)

at com.lowagie.text.pdf.PdfReader.(Unknown Source)

Indeed, the PDFs don’t contain the “trailer” when we edit them with a textpad.

Browsing different forums and PDf guides and references, we couldn’t find if the “trailer” is mandatory or if the validation performed by IText is Invalid.

Can you please provide us some help with this ?

Do you know if it’s a bug or if we’re building our PDF the wrong way ?

Or do you have any reference proving that the « trailer » is no longer necessary ?