Unable to read document with Digital signature on it throws Cross reference table or cross reference stream not found

I am trying to read pdf document(Aspose.pdf) which contains Digital signature on it (X509 signing certificate) using below code:
i tried passing document two ways :

  1. Using Stream
    var filebytearray = File.ReadAllBytes(inputFile);
    var ms = new MemoryStream(filebytearray);
    using (var doc = new Document(ms))

2.Using Filepath
using (var doc = new Document(inputFile))
pdf-sample (1).pdf (31.1 KB)

We are using Aspose: 18.5.0.

but getting this exception of Cross reference table or cross reference stream not found.
Kindly suggest.

@cyginfo

Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45364 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

@cyginfo

“Null” text at the beginning of the document was corrupting it and causing the Exception. Please use the following code to recover the same document(s):

using (PdfFileSanitization sanitizer = new PdfFileSanitization())
{
    sanitizer.BindPdf(new FileStream("your file", FileMode.Open));
    sanitizer.UseTrimTop = true;
    sanitizer.UseTrimBottom = false;
    sanitizer.Recover();
    sanitizer.Save("your recovered file");
}
var doc = new Document("your recovered file")

This option is available in 21.8 version of the API.