Hi,
I’m converting a PDF to a PNG via this piece of code :
Aspose.Pdf.Document docNoAnnotation = new Aspose.Pdf.Document(ActivePDF);
List<Annotation> annotations = docNoAnnotation.Pages.First().Annotations.Cast<Annotation>().ToList();
annotations.ForEach(x => docNoAnnotation.Pages.First().Annotations.Remove(x));
//Aanmaken van een PNG van de pdf
Aspose.Pdf.Devices.PngDevice dev = new Aspose.Pdf.Devices.PngDevice();
//dev.CoordinateType = Aspose.Pdf.PageCoordinateType.MediaBox;
dev.RenderingOptions.OptimizeDimensions = true;
dev.Process(docNoAnnotation.Pages[1], $@"{System.IO.Path.GetTempPath()}\{project.id}.png");
Before converting, I remove all the annotations and then I process the document. This processing takes about 1 minute to complete.
Is this normal behavior ?
TIA,
Mark
Attached the PDF I used to test :
ConvertIntoPNG.pdf (1.7 MB)