View or Update ODS Metadata Online or Update via Android Apps
Develop powerful android based ODS document metadata management utility application. Code listed for adding and modifying ODS file metadata.
View or Update ODS Metadata Online
- Import ODS file by uploading it.
- Do it by clicking inside the drop area via drag and drop of metadata app.
- Depending on the size of ODS file and internet speed wait for few seconds.
- Same page will display metadata.
- Edit the properties as of your choice.
- Save the document.
- Download the file instantly.
Manage ODS Properties via Android App
- Add android library reference into project
- Load ODS file using Workbook class.
- Get all custom properties via getBuiltInDocumentProperties()
- Use relevant set method to update a property such as setLanguage
- Call the save() method to save the updated ODS document.
Code: Update ODS Metadata
//Create workbook object. | |
Workbook wb = new Workbook(); | |
//Access system defined document property collection. | |
BuiltInDocumentPropertyCollection sdpc = wb.getBuiltInDocumentProperties(); | |
//Set the language of the Excel file. | |
sdpc.setLanguage("German, French"); | |
//Save the workbook. | |
wb.save(outputDir + "updated-builtin-document-properties.xlsx", SaveFormat.XLSX); |
Code: Add ODS Custom Properties
// Instantiate a Workbook object | |
// Open an Excel file | |
Workbook wkb = new Workbook(dataDir + "sample.xlsx"); | |
// Retrieve a list of all custom document properties of the Excel file | |
CustomDocumentPropertyCollection customProperties = wkb.getWorksheets().getCustomDocumentProperties(); | |
// Adding a custom document property to the Excel file | |
DocumentProperty publisher = customProperties.add("Publisher", "Aspose"); | |
// Add link to content. | |
customProperties.addLinkToContent("Owner", "MyRange"); | |
// Accessing the custom document property by using the property name | |
DocumentProperty customProperty1 = customProperties.get("Owner"); | |
// Check whether the property is lined to content | |
Boolean islinkedtocontent = customProperty1.isLinkedToContent(); | |
// Get the source for the property | |
String source = customProperty1.getSource(); | |
// save the workbook |
Develop ODS Metadata Management Android App
Need to develop a ODS Metadata management mobile app or utility? With
Aspose.Cells for Android via Java
a child API of
Aspose.Total for Android via Java
, any android developer can integrate the above API code within its document metadata application. Powerful android library allows programming any document metadata solution. Moreover it can support many popular formats including ODS format.
Android Utility to Manage ODS Metadata
- We host our Java packages in Maven repositories .
- Aspose.Cells for Java is a common JAR file containing byte-code.
- Follow the step-by-step instructions on how to install Aspose.Cells for Android via Java.
System Requirements
- Android OS 2.0 or above.
- Java package is cross-platform and runs on all operating systems with JVM implementation.
For more details please refer to [Product Documentation](https://docs.aspose.com/cells/java/system-requirements/).