thank you for your reply, we have a security concern. we are using Aspose.Total to render pdf file to stream and then we creating an png file.
looks like that:
protected override Stream RenderDocumentOverride(Stream stream, int page, CancellationToken cancellationToken)
{
using (Presentation presentation = new Presentation(stream))
{
if (presentation.Slides.Count <= page)
{
throw new IndexOutOfRangeException($“Page number ‘{page}’ exceeds the number of pages in the document ({presentation.Slides.Count}).”);
}
using (Bitmap bmp = presentation.Slides[page].GetThumbnail(1, 1))
{
MemoryStream result = new MemoryStream();
bmp.Save(result, ImageFormat.Png);
return result;
}
}
}
so to refine my question here, in the above case, if the pdf include some macro command, will the command run upon using the pdf stream?