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.