It’s a fairly large image that you are dealing with. Please try using sample code given over following documentation article to load image in batch mode and render that.
@praetorion
We’re able to export your tiff to pdf using following simplified version of your code :
string fileName = Path.Combine(TestDirectory, "151.tif");
using (var img = (RasterImage)Aspose.Imaging.Image.Load(fileName))
{
PdfOptions pdfOptions = new PdfOptions()
{
ResolutionSettings = new Aspose.Imaging.ResolutionSetting(img.HorizontalResolution, img.VerticalResolution),
// MultiPageOptions = new MultiPageOptions(new Aspose.Imaging.IntRange(0, tiffImg.Frames.Count())),
};
img.Save(fileName+".pdf", pdfOptions);
}
The resulting pdf file is here. Aspose.Imaging for .NET5 v21.10 x64 was used. Please clarify your configuration and provide the sample application, if the issue still exists.
@praetorion
Thank you for clarifications - we’re able to reproduce the issue on x86 platform. We’ve created the issue IMAGINGNET-4920 to work on it within further product releases and linked it to the current thread enabling notifications. Feel free to consider use of x64 platform just now.
The issues you have found earlier (filed as IMAGINGNET-4920) have been fixed in this update. This message was posted using Bugs notification tool by samer.el-khatib4aspose