I am attaching a file that contains malware. the password for the archive is ‘password’. I highly recommend running tests with this file on a VM.
infected.zip (24.9 KB)
My intention is to use Aspose.Pdf to remove the malware from the file. However, Aspose.Pdf.Document constructor throws an exception
using Aspose.Pdf;
var pdf = new Document("infected.pdf");
The following exception is thrown:
Aspose.Pdf.InvalidPdfFileFormatException: Startxref not found
// ... call stack shortened for brevity ...
at Aspose.Pdf.Document.#=z2UdC$wI=(String #=zvvA6I8Y=, String #=zAFi8$Uo=)
at Aspose.Pdf.Document..ctor(String filename)
However, MS-Word does open the file and displays it properly:
image.png (131.5 KB)