Free Support Forum - aspose.com

Blank PFD created of CDR file using Aspose Imaging for .net(ver : 2.11)

I tried to convert few CDR file to pdf using aspose imaging .net library(version 2.11). Blank PDF’s were generated even though CDR file has content.

Can you please check this issue. Sharing google drive link of CDR files:

Link of the folder containing cdr files & generated empty pdf converted using aspose imaging .net library version 2.11.
https://drive.google.com/drive/folders/1inMF1Hnj8PEujyE_bLvYT7qv2F2RXEhr?usp=sharing

Using the following source code to convert file:
Source Code:
using (var img = Aspose.Imaging.Image.Load(filePath + “.cdr”))
{
CdrRasterizationOptions rasterizationOptions = new CdrRasterizationOptions();
rasterizationOptions.PageWidth = img.Width;
rasterizationOptions.PageHeight = img.Height;
// Save image to Pdf
PdfOptions exportOptions = new PdfOptions();
exportOptions.VectorRasterizationOptions = rasterizationOptions;
img.Save(filePath + “.pdf”, exportOptions);
return filePath + “.pdf”;
}

Please let me know if you need any assistance from my side.

@vvorld

An issue with ID IMAGINGNET-4260 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.