PDF with Malware

Hi there,

we have a process that converts each page of a pdf file into a jpeg file.

Like this:

using (var pdf = new Aspose.Pdf.Document(stream))
{
	var pdfPage = pdf.Pages[page.InnerPage];
	var device = new JpegDevice(new Resolution(CACHE_QUALITY.Resolution), CACHE_QUALITY.Quality);

	using (var outStream = new MemoryStream())
	{
		device.Process(pdfPage, outStream);

		return outStream.ToArray();
	}
}

When a PDF File is infectet by a malware like DarkGate,
Will this lline of code

using (var pdf = new Aspose.Pdf.Document(stream))

trigger the script or get me into trouble?

It looks like that nothing happend, but Im not sure.
Is there a small tool by Aspose to scan a file?

@JSprock

No, Aspose.PDF does not provide any feature to scan PDF files for malware. However, please share such PDF file with us. We will investigate the feasibility to deal with such cases.

Thx for your help asad.ali, but the CISO dont give me the bad file. And this issue is now handle by mail department.

sorry for the circumstances

@JSprock

Thanks for your feedback. Please feel free to create a new topic in case you need further assistance.