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

Free Support Forum - aspose.com

Aspose.Pdf.InvalidPdfFileFormatException - Startxref not found

We are seeing an error Aspose.Pdf.InvalidPdfFileFormatException - Startxref not found when trying to concatenate PDF files. PDF file does open, is not corrupt. The issue only happens in production and is not reproducible. I understand you guys can’t help without having a way to reproduce but if you can provide any pointers on when this error occurs? What is “startxref not found?” Since we are not able to reproduce locally and ASPOSE.PDF is a blackbox to us, we can’t really get to the bottom of the issue.

Code is

For Each stream As System.IO.Stream In streams
Dim doc As Aspose.Pdf.Document = New Aspose.Pdf.Document(stream)

File is also attachedTest.pdf (27.5 KB)


I have tested this with using Aspose.PDF and unable to observe any exception. Can you please share complete working sample code along with environment details and version details so that we may further investigate to help you out.