Free Support Forum - aspose.com

CDR (Coral draw) to PDF conversion (Java)

@vvorld,

I like to inform that you can only see status of the ticket which is attached to this thread. Please check bottom of the page you will see status of the ticket.

@Adnan.Ahmad

Status is still new any expected timeline you can provide when this issue will be resolved?

Regards,
Vaibhav

@vvorld,

I have verified from our issue tracking system and like to share that the issue is likely going to get resolved in Aspose.Imaging for Java 19.12. We request for your patience till the time the issue gets resolved.

Would be great if you can provide any estimated date by which Java 19.12 will be released?

@vvorld,

Thanks for contacting us. I like to inform that Aspose.Email 19.12 will be release by the end of December 2019.

Can we expect issue to be resolved by end of December 2019 or there is any delay?

@vvorld,

Yes, this issue has been marked as resolved in upcoming Aspose.Imaging for .NET 19.12. We will share the good news with you as soon as the product will be shared online.

Thanks for the update. Is the issue is going to be resolved for Aspose.Imaging for Java as well in version 19.12?

@vvorld,

Yes, this issue will be resolved in Aspose.Imaging 19.12 for Java as well.

The issues you have found earlier (filed as IMAGINGJAVA-1445) have been fixed in this update.

Can you please tell me what are the things we can do with CDR Files using aspose imaging for java. Am not able to find proper documentation/ sample for CDR files. Is it possible to preview CDR files & convert CDR file to PDF using aspose imaging library

@vvorld.

I suggest you to please try using following sample code on your end to serve the purpose using Aspose.Imaging for Java 19.12.

public void exportToPdf(String inputCdrFileName, String outputPdfFileName)
{
    Image image = Image.load(inputCdrFileName);
    try
    {
        PdfOptions pdfOptions = new PdfOptions();
        CdrRasterizationOptions rasterizationOptions = new CdrRasterizationOptions();
        rasterizationOptions.setTextRenderingHint(TextRenderingHint.SingleBitPerPixel);
        rasterizationOptions.setSmoothingMode(SmoothingMode.None);
        rasterizationOptions.setPositioning(PositioningTypes.DefinedByDocument);
        pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
        image.save(outputPdfFileName, pdfOptions);
    }
    finally
    {
        image.close();
    }
}

Thanks @mudassir.fayyaz for sharing the code. I tried it but getting the following exception

class com.aspose.imaging.coreexceptions.ImageLoadException: Image saving failed. —> java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/geom/Dimension2D;

Sample file link:

Sorry to say there is lot of scope of improvement in documentation & example provided on github.

I tried to PSD example but getting exception as well. I will suggest to retest examples . provided on github.

Can you please let me know is it possible to get bitmap from Image object to display in imageview in android?

@vvorld,

I have observed the issue shared by you with newly shared file. It seems to be an issue with API while loading attached file. An issue with ID IMAGINGJAVA-1520 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.

I am afraid at present the API does not support in case of Android platforms.

Any update on this issue. I raised the issue in September you said will be resolved with release in December end. It’s still not resolved. Quite frustrating to wait.

@vvorld,

I have verified from our issue tracking system and like to share that issue has been marked as resolved in upcoming version. We will share the notification with you as soon as the issue will be fixed. I also suggest you to please try using latest Aspose.Imaging 19.12 on your end as well.

I have already tried the Imaging 19.12 for Java & got the following error:

class com.aspose.imaging.coreexceptions.ImageLoadException: Image saving failed. —> java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/geom/Dimension2D

@vvorld,

We will share the good news with you as soon as the issue will be fixed in upcoming version. I request for your patience in this regard.

This issue is going to be resolved or not waiting since September 2019?

@vvorld.

We have tested using Aspose.Imaging for .NET 19.12. Following code works fine without any errors. In our view the error you got could be appeared only in Android but currently Aspose.Imaging for Java can not work in Android.

Image image = Image.load("tiger1.cdr");
try
{
    PdfOptions pdfOptions = new PdfOptions();
    CdrRasterizationOptions rasterizationOptions = new CdrRasterizationOptions();
    rasterizationOptions.setTextRenderingHint(TextRenderingHint.SingleBitPerPixel);
    rasterizationOptions.setSmoothingMode(SmoothingMode.None);
    rasterizationOptions.setPositioning(PositioningTypes.DefinedByDocument);
    pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
    image.save("tiger1.cdr.pdf", pdfOptions);
}
finally
{
    image.close();
}

tiger1.cdr.pdf (902.5 KB)