Hi,
after updating to the new version of Aspose I noticed that the current RenderToGraphics, which we are using
slide.RenderToGraphics(false, graphics, width, height);
is marked as obsolete with the information that it will be removed with version 18.6
So I tried to change our code to the following and done a little profiling:
NotesCommentsLayoutingOptions options = new NotesCommentsLayoutingOptions();
options.CommentsPosition = CommentsPositions.None;
options.NotesPosition = NotesPositions.None;
slide.RenderToGraphics(options, graphics);
Performance Issue
Scenario:
Creating Thumbnails for every slide of a presentation with 140 slides only the first slide has content (one shape) all the others only have the title layout of the larissa master defined without content.
Result:
Old Method takes 25 seconds.
New Method takes 2:15 minutes
Memory Issue
Szenario: Using a presentation of one of our customers which has 126 slides and 76MB of size and creating thumbnails for all slides. (Sorry I am unable to provide you with this presentation)
Result:
Old Method: takes 1 Minute and uses up to 300MB.
New Method: I aborted after 5 minutes and only 1/3 of the slides were done. The needed memory was up to 650MB.
Could you please take a look?
Thanks
Best regards
Christopher Black