Free Support Forum -

Image is cut off at the bottom when converting to OneNote to image (jpeg)


When running the following code on the attached OneNote:
I’ve attached the original OneNote file and the converted images

                // Load the document into Aspose.Note.
                Document oneFile = new Document(sourceFilePath);
                string outputFile = ""; 

                // Get pages
                IList<Page> pages = oneFile.GetChildNodes<Page>();
                ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Jpeg);
                int index = 0;

                foreach (Page page in pages)
                    options.PageIndex = index;
                    outputFile = Path.Combine(destFolderPath, index.ToString("000") + FileExtension);
                    oneFile.Save(outputFile, options); 

The output image has the bottom cut off.
How can I fix it (Urgent)? (1.5 MB)

Could you please share the sample OneNote file with us for testing? The sample OneNote file is not attached here with the thread. (1.4 MB)

I have tried this scenario using the latest version of Aspose.Note for .NET 20.1 but could not observe any issue. The generated images are attached here for your reference. Could you please test this scenario using the latest version and share the feedback?
003.jpg (105.3 KB)
002.jpg (3.4 KB)
001.jpg (29.3 KB)
000.jpg (38.0 KB)

Hi, I really appreciate your help. I was using the old version (19.7). It looks issue was fixed using the latest version.

You are welcome.

Issue was fixed on version 20.1 but the version 20.3 (The latest) show the cutt-off effect again.
Pls, I need an i update, I’ve already updated the license

We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

NOTENET-3039 – Images cut down using latest version 20.3

Please give a try to the following hot fix and share your feedback.

Your issue logged under id NOTENET-3039 should be fixed. Please note that this fix will be available in official release 20.5.


Please try using our latest version/fix: Aspose.Note for .NET v20.5
Aspose.Note for .NET v20.5 (Downloads section)
Aspose.Note for .NET v20.5 (Nuget repos.)

Your issue should be fixed in it.

Let us know your feedback.