CMX is a Corel Metafile Exchange Image File format developed by Corel. This format contains a vector image with metadata information. CMX files may contain multiple images, you can to set what images to render (see examples).
CMX files can be opened with Corel Draw, Corel PaintShop, Adobe Illustrator, InkScape.
In case you need to view a CMX file in a browser or a standard image or PDF viewer application, you can convert it to HTML, JPEG, PNG PDF format with GroupDocs.Viewer for Java.
How to convert CMX files
Convert CMX to HTML
To convert CMX files to HTML with GroupDocs.Viewer for Java use following code:
try(Viewerviewer=newViewer("sample.cmx")){HtmlViewOptionsoptions=HtmlViewOptions.forEmbeddedResources("output_{0}.html");viewer.view(options);// To render 2nd image, just specify
//viewer.view(options,2);
}
The following screenshot shows the output HTML file opened in a browser.
Convert CMX to JPG
To convert CMX files to JPG with GroupDocs.Viewer for Java use following code:
try(Viewerviewer=newViewer("sample.cmx")){JpgViewOptionsoptions=newJpgViewOptions("output_{0}.jpg");viewer.view(options);// To render 2nd image, just specify
//viewer.view(options,2);
}
The following screenshot shows the output JPG file opened in a Windows Photo Viewer application.
Convert CMX to PNG
To convert PLT/HPG files to PNG with GroupDocs.Viewer for Java use following code:
try(Viewerviewer=newViewer("sample.cmx")){PngViewOptionsoptions=newPngViewOptions("output_{0}.png");viewer.view(options);// To render 2nd image, just specify
//viewer.view(options,2);
}
The following screenshot shows the output PNG file opened in a Windows Photo Viewer application.
Convert CMX to PDF
To convert CMX files to PDF with GroupDocs.Viewer for Java use following code:
try(Viewerviewer=newViewer("sample.cmx")){PdfViewOptionsoptions=newPdfViewOptions("output.pdf");viewer.view(options);// By default all images will be rendered in output.pdf, to render only 2nd image in output PDF
//viewer.view(options,2);
}
The following screenshot shows the output PDF file opened in an Acrobat Reader.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.