Unable load pdf document

Getting Error "Aspose.Pdf.InvalidPdfFileFormatException : Incorrect file header "
when loading attacehd PDF document
using following code
byte[] bytes = File.ReadAllBytes(filePath);
fileContent = new MemoryStream(bytes);

Document pdfDocument = new Document(fileContent );

@svemuri2020

Can you please share the source PDF file so that we may try to reproduce the same on our end.

@mudassir.fayyaz

Can you please share the source PDF file so that we may try to reproduce the same on our end.

mergeFail.pdf (11.3 MB)
mergeFail-Edited.pdf (11.2 MB)

@svemuri2020

I can not reproduce the issue with your code and files. I request you to upgrade to latest version and share your feedback.

I am using Latest version (21.5.0) . Can you share your code , how you are loading the document?

there was an issue with my Unit test code . This issue is resolved