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.

Tried to convert these files with aspose imaging version 21.3 still blank PDF’s are generated. Ticket is not resolved.

@vvorld

Can you please try using the following sample code on your end and share if you still face issue.

string baseFolder = @"D:\cdr";
string[] fileNames = new string[] { "67wvjwo2.cdr", 
"bright-gas-seeklogo.com.cdr", 
"joedv5d1.cdr", 
"Ruined House E0012376 file cdr and dxf free vector download for laser cut.cdr" };
foreach (var fileName in fileNames)
{
   string inputFilePath = Path.Combine(baseFolder, fileName);
   string outputFilePath = inputFilePath + ".pdf";
   using (Image image = Image.Load(inputFilePath))
   {
      PdfOptions pngOptions = new PdfOptions();
      CdrRasterizationOptions rasterizationOptions = new CdrRasterizationOptions();
      rasterizationOptions.Positioning = PositioningTypes.Relative;
      pngOptions.VectorRasterizationOptions = rasterizationOptions;
      image.Save(outputFilePath, pngOptions);
   }
}

The issues you have found earlier (filed as IMAGINGNET-4260) have been fixed in this update. This message was posted using Bugs notification tool by mudassir.fayyaz