Why to Convert
CGM (Computer Graphics Metafile) is a vector graphics format used for storing and exchanging graphics data. It is widely used in the engineering and technical drawing fields. XLSX (Microsoft Excel Open XML Format) is a file format used for storing and exchanging data in tabular form. XLAM (Excel Add-in) is a file format used for creating and storing Excel add-ins. Converting CGM to XLAM is a useful process for creating Excel add-ins from CGM files.
How Aspose.Total helps for cgm to xlam conversion
Aspose.Total for Android via Java is a suite of APIs that provides a comprehensive set of tools for developers to work with a variety of file formats. It includes APIs for working with PDF, Excel, Word, and other file formats. It can be used to integrate CGM to XLAM conversion feature within your android applications in two step process. Firstly, by using Aspose.PDF for Android via Java you can covert CGM to XLSX. Secondly, you can convert XLSX to XLAM by using Powerful Spreadsheet Processing API Aspose.Cells for Android via Java . Both APIs come under Aspose.Total for Android via Java product family.
The Aspose.PDF for Android via Java API provides a wide range of features for converting CGM to XLSX. It supports a variety of CGM formats, including CGM, CGM+, CGM-A, CGM-B, CGM-C, CGM-D, CGM-E, CGM-F, CGM-G, CGM-H, CGM-I, CGM-J, CGM-K, CGM-L, CGM-M, CGM-N, CGM-O, CGM-P, CGM-Q, CGM-R, CGM-S, CGM-T, CGM-U, CGM-V, CGM-W, CGM-X, CGM-Y, CGM-Z, CGM-1, CGM-2, CGM-3, CGM-4, CGM-5, CGM-6, CGM-7, CGM-8, CGM-9, CGM-10, CGM-11, CGM-12, CGM-13, CGM-14, CGM-15, CGM-16, CGM-17, CGM-18, CGM-19, CGM-20, CGM-21, CGM-22, CGM-23, CGM-24, CGM-25, CGM-26, CGM-27, CGM-28, CGM-29, CGM-30, CGM-31, CGM-32, CGM-33, CGM-34, CGM-35, CGM-36, CGM-37, CGM-38, CGM-39, CGM-40, CGM-41, CGM-42, CGM-43, CGM-44, CGM-45, CGM-46, CGM-47, CGM-48, CGM-49, CGM-50, CGM-51, CGM-52, CGM-53, CGM-54, CGM-55, CGM-56, CGM-57, CGM-58, CGM-59, CGM-60, CGM-61, CGM-62, CGM-63, CGM-64, CGM-65, CGM-66, CGM-67, CGM-68, CGM-69, CGM-70, CGM-71, CGM-72, CGM-73, CGM-74, CGM-75, CGM-76, CGM-77, CGM-78, CGM-79, CGM-80, CGM-81, CGM-82, CGM-83, CGM-84, CGM-85, CGM-86, CGM-87, CGM-88, CGM-89, CGM-90, CGM-91, CGM-92, CGM-93, CGM-94, CGM-95, CGM-96, CGM-97, CGM-98, CGM-99, CGM-100, CGM-101, CGM-102, CGM-103, CGM-104, CGM-105, CGM-106, CGM-107, CGM-108, CGM-109, CGM-110, CGM-111, CGM-112, CGM-113, CGM-114, CGM-115, CGM-116, CGM-117, CGM-118, CGM-119, CGM-120, CGM-121, CGM-122, CGM-123, CGM-124, CGM-125, CGM-126, CGM-127, CGM-128, CGM-129, CGM-130, CGM-131, CGM-132, CGM-133, CGM-134, CGM-135, CGM-136, CGM-137, CGM-138, CGM-139, CGM-140, CGM-141, CGM-142, CGM-143, CGM-144, CGM-145, CGM-146, CGM-147, CGM-148, CGM-149, CGM-150, CGM-151, CGM-152, CGM-153, CGM-154, CGM-155, CGM-156, CGM-157, CGM-158, CGM-159, CGM-160, CGM-161, CGM-162, CGM-163, CGM-164, CGM-165, CGM-166, CGM-167, CGM-168, CGM-169, CGM-170, CGM-171, CGM-172, CGM-173, CGM-174, CGM-175, CGM-176, CGM-177, CGM-178, CGM-179, CGM-180, CGM-181, CGM-182, CGM-183, CGM-184, CGM-185, CGM-186, CGM-187, CGM-188, CGM-189, CGM-190, CGM-191, CGM-192, CGM-193, CGM-194, CGM-195, CGM-196, CGM-197, CGM-198, CGM-199, CGM
Android API to Render CGM to XLAM
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 XLAM Document in Android via Java
Aspose.Cells for Android via Java supports protecting your XLAM 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"); |