Work with Sections, Paragraphs, Runs, Page setup and Fonts in Word Documents using the Aspose Cloud Android SDK

aspose logo 1 300x81 API Reference Docs Added to Aspose Cloud Ruby SDKThe Aspose Cloud Android SDK has been upgraded as per the latest release of Aspose Cloud, version 1.1.7.1. With this new release, the create, read, manipulate and export features are greatly improved. You can extract sections, paragraphs, runs, page setup and fonts and update page setup and fonts in a Microsoft Word document. You can also export documents to the XAML_FIXED format using the saveAs and splitDocument resources, and set the ImageColorSpaceExportMode, CreateNoteHyperlinks and CustomPropertiesExport options when converting to PDF using the saveAs resource. The useNonMergeFields parameter is also supported by the mailMergeFieldNames resource to include mustache field names when extracting a list of fields.

Working with the New Aspose.Words API

  1. Download Aspose Cloud Android SDK from GitHub and extract the ZIP file.
  2. Import the SDK into Eclipse.
  3. Sign up with Aspose Cloud service at: https://cloud.aspose.com/SignUp
  4. Create a new App and get your App SID and App Key.
  5. Call the AsposeApp.setAppKeyAndAppSID(String appKey, String appSID) method in the onCreate() method of your Main Activity and pass your App SID and App Key as arguments to this method.
    Now we are ready to use the Aspose.Tasks API.
  6. To get a list of sections from a Word document, call the following method:
  7. SectionList getListOfSectionsFromAWordDocument(String fileName)
  8. To get a specific section from a Word document, call the following method:
  9. SectionDetails getASpecificSectionFromAWordDocument(String fileName, int sectionIndex)
  10. To get a list of all paragraphs in a Word document, call the following method:
  11. ParagraphsTextAndLink getListOfAllParagraphsPresentInAWordDocument(String fileName)
  12. To get a specific paragraph in a Word document, call the following method:
  13. ParagraphDetail getASpecificParagraphPresentInAWordDocument(String fileName, int paragraphIndex)
  14. To get a specific run of a paragraph in a Word document, call the following method:
  15. Run getASpecificRunOfAParagraphPresentInAWordDocument(String fileName, int paragraphIndex, int runIndex)
  16. To get font related information for a specific run of a paragraph in a Word document, call the following method:
  17. Font getFontInformationOfARunFromAWordDocument(String fileName, int paragraphIndex, int runIndex)
  18. To update the font for a specific run of a paragraph in a Word document, call the following method:
  19. Font updateFontOfARunInAWordDocument(String fileName, int paragraphIndex, int runIndex, String xmlData)
  20. To extract the page setup information from a Word document, call the following method:
  21. PageSetupInformationResponse extractPageSetupInformationFromAWordDocument(String fileName, int sectionIndex)
  22. To update the page setup of a section in a Word document, call the following method:
  23. PageSetupInformationResponse updatePageSetupOfASectionInAWordDocument(String fileName, int sectionIndex, String xmlData)

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.

Customer Feedback

Your feedback is very important to us. Please feel free to provide feedback and raise feature requirements. We are keen to implement customer driven features since we are a 100% customer driven company.