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

Free Support Forum - aspose.com

Trailer object is null.: v3.7.0.0


I am getting the following error “Trailer object is null.: v3.7.0.0”. I am using the latest version of pdf kit with .NET 3.5. Any help is appreciated

at Aspose.Pdf.Kit.PdfFileEditor.Concatenate(Stream[] inputStreams, Stream outputStream)
at ConsoleApplication1.Program.Main(String[] args)

fsInputStream[0] = File.Open(@“C:\temp\100009642.pdf”, FileMode.Open, FileAccess.Read, FileShare.Read);
fsInputStream[1] = File.Open(@“C:\temp\100009643.pdf”, FileMode.Open, FileAccess.Read, FileShare.Read);

fsOutputStream = File.Open(@“c:\temp\big.pdf”, FileMode.OpenOrCreate, FileAccess.ReadWrite);
pdfFileEditor.Concatenate(fsInputStream, fsOutputStream);

I have also tried the following:

files[0] = @“C:\temp\100009642.pdf”;
files[1] = @“C:\temp\100009643.pdf”;
pdfFileEditor.Concatenate(files, @“c:\temp\big1.pdf”);

The above code does not throw an exception, it created the file with zero bytes.



Thank you very much for considering Aspose.

Please share the problematic PDF with us, so we could test the issue at our end.

We’re sorry for the inconvenience.