Why to Convert CGM to Excel?
Computer Graphics Metafile (CGM) is a vector graphics format used for storing and exchanging graphics data. It is widely used in engineering and technical applications. However, it is not supported by Microsoft Excel. Therefore, it is necessary to convert CGM to Excel in order to view and edit the data in Excel.
How Aspose.Total Helps for CGM to Excel Conversion?
Aspose.Total for Android via Java is a suite of powerful APIs that enables developers to easily integrate CGM to Excel conversion feature within their Android applications. It consists of two APIs, Aspose.PDF for Android via Java and Aspose.Cells for Android via Java.
Using Aspose.PDF for Android via Java, developers can convert CGM to XLSX format. It is a powerful PDF processing API that enables developers to create, manipulate, convert, render, and print PDF documents without any external dependencies. It also supports a wide range of other file formats such as DOC, DOCX, HTML, XPS, and many more.
Once the CGM file is converted to XLSX format, developers can use Aspose.Cells for Android via Java to convert XLSX to EXCEL. It is a powerful spreadsheet processing API that enables developers to create, manipulate, convert, render, and print spreadsheets without any external dependencies. It also supports a wide range of other file formats such as CSV, ODS, PDF, HTML, and many more.
In conclusion, Aspose.Total for Android via Java is a comprehensive suite of APIs that enables developers to easily integrate CGM to Excel conversion feature within their Android applications. It consists of two powerful APIs, Aspose.PDF for Android via Java and Aspose.Cells for Android via Java, which enable developers to convert CGM to XLSX and XLSX to EXCEL respectively.
Android API to Render CGM to EXCEL
Get Started with Android via Java APIs
You can easily use Aspose.Total for Android via Java directly from Maven and install Aspose.PDF for Android via Java and Aspose.Cells for Android via Java in your applications.
Alternatively, you can get a ZIP file from downloads .
// supports PDF, CGM, EPUB, TeX, PCL, PS, SVG, XPS, MD, MHTML, XML, and XSLFO file format | |
// load PDF with an instance of Document | |
Document document = new Document("template.pdf"); | |
// save document in XLSX format | |
document.save("XlsxOutput.xlsx", SaveFormat.Xlsx); | |
// load the XLSX file in an instance of Workbook | |
Workbook book = new Workbook("XlsxOutput.xlsx"); | |
// supports CSV, XLSB, XLSM, XLT, XLTX, XLTM, XLAM, TSV, TXT, ODS, DIF, MD, SXC, and FODS file format | |
// save XLSX as CSV | |
book.save("output.csv", SaveFormat.AUTO); |
Get XMP Metadata of CGM File in Android Apps
Aspose.PDF for Android via Java allows you to access a CGM file’s XMP metadata. In order to get the metadata, create a Document object and open the input CGM file and use the getMetadata() property to get the metadata.
// supports PDF, CGM, EPUB, TeX, PCL, PS, SVG, XPS, MD, MHTML, XML, and XSLFO file format | |
// Open document | |
Document pdfDocument = new Document("input.pdf"); | |
// get create date property | |
System.out.println("xmp:CreateDate: " + pdfDocument.getMetadata().get_Item("xmp:CreateDate")); | |
// get nickname property | |
System.out.println("xmp:Nickname: " + pdfDocument.getMetadata().get_Item("xmp:Nickname")); | |
// get custom property | |
System.out.println("xmp:CustomProperty: " + pdfDocument.getMetadata().get_Item("xmp:CustomProperty")); |
Protect EXCEL Document in Android via Java
Aspose.Cells for Android via Java supports protecting your EXCEL file depending upon your needs. In order to protect your document you can use protectSharedWorkbook method of Workbook class.
// supports CSV, XLSB, XLSM, XLT, XLTX, XLTM, XLAM, TSV, TXT, ODS, DIF, MD, SXC, and FODS file format | |
// open CSV file format | |
Workbook wb = new Workbook("output.csv"); | |
// protect the shared workbook with password | |
wb.protectSharedWorkbook("1234"); | |
// save the output Excel file | |
wb.save("unprotected.csv"); |