Not able to apply height and width of Image

Is there any way to set height and width while generating the tiff of OneNote?
As per current behavior, I cannot generate multiple tiffs of a single OneNote.Doe to this issue the quality of the tiff is very poor.

Code Sample:
Aspose.Note.Document oneFile = new Aspose.Note.Document(@“Printing Test.one”);
Aspose.Note.Saving.ImageSaveOptions options = new Aspose.Note.Saving.ImageSaveOptions(Aspose.Note.SaveFormat.Tiff);
options.Quality = 300;
oneFile.Save(“onenote.tif”, options);

Tiff and OneNote file are attached.
Onenote.zip (1.7 MB)

@hemalp,

Please try to set Resolution while generating TIFF image, it will give you quality image and the height/width attributes would be adjusted accordingly. See and try the following sample code:
e.g.
Sample code:

Aspose.Note.Document oneFile = new Aspose.Note.Document("g:\\test2\\Printing Test.one");
Aspose.Note.Saving.ImageSaveOptions options = new Aspose.Note.Saving.ImageSaveOptions(Aspose.Note.SaveFormat.Tiff);
options.Resolution = 300;
oneFile.Save("g:\\test2\\onenote1.tif", options);

Hope, this helps a bit.

@amjad.sahi

You can see my sample code I already try it, but it not work

@hemalp,

Your code is different than what I shared (above). You are setting quality (which is not needed) instead of resolution (I suggested). Please find attached the output TIFF image in the zipped archive when running my sample code, it is ok.
onenote1.zip (1.3 MB)