Convert DOCM to PPS in Android Apps or Online App

DOCM to PPS conversion in your Android Applications without installing Microsoft Word® or PowerPoint

DOCM Conversion via Python DOCM Conversion via C# .NET DOCM Conversion via Java DOCM Conversion via C++

 

Why to Convert

As an Android developer, you may need to add a document conversion feature to your application. Document conversion is the process of converting a document from one file format to another. This is useful for applications that require documents to be in a specific format, such as a PDF or an image file.

How Aspose.Total Helps for DOCM to PPS Conversion

Aspose.Total for Android via Java File Format Automation libraries can help you automate the document conversion process in your Android applications. In order to convert DOCM file to PPS, you can first use document manipulation API Aspose.Words for Android Java to convert DOCM file format to HTML. After that by using PowerPoint API Aspose.Slides for Android Java, you can create a new Presentation, write HTML content in it, and save it as PPS.

Aspose.Total for Android via Java is a comprehensive suite of file format APIs that enables developers to create, edit, convert, and manipulate documents, spreadsheets, and presentations in their Android applications. It includes APIs for Word, Excel, PowerPoint, PDF, and other file formats. Aspose.Words for Android Java is a document manipulation API that enables developers to create, edit, and convert documents in various formats, including DOCM. Aspose.Slides for Android Java is a PowerPoint API that enables developers to create, edit, and convert presentations in various formats, including PPS.

The Aspose.Total for Android via Java suite of APIs makes it easy for developers to add document conversion features to their Android applications. With the help of Aspose.Words for Android Java and Aspose.Slides for Android Java, developers can easily convert DOCM files to PPS files. This makes it easy for developers to create applications that can handle a variety of document formats.

How to Convert DOCM to PPS in Android

  1. Open DOCM file using Document class
  2. Convert DOCM file to HTML by using save method
  3. Initialize a new Presentation object
  4. Extract content from HTML file using BufferedReader and write the content in your presentation file
  5. Save the document to PPS using save method

DOCM File Conversion in Android

For DOCM to PPS file conversion, you can easily use Aspose.Total for Android via Java directly from Maven and install libraries in your app.

Alternatively, you can get a ZIP file from downloads .

// supports DOC, DOCX, DOT, DOTM, DOTX, FLATOPC, ODT, OTT, RTF, TXT, WORDML, DOCM input file formats
// load DOC file with an instance of Document
Document document = new Document("template.doc");
// save the document in HTML file format
document.save("HtmlOutput.html",SaveFormat.HTML);
// create a new presentation
Presentation pres = new Presentation();
// access the default first slide of presentation
ISlide slide = pres.getSlides().get_Item(0);
// add the AutoShape to accommodate the HTML content
IAutoShape ashape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 10,
(float) pres.getSlideSize().getSize().getWidth(),
(float) pres.getSlideSize().getSize().getHeight());
ashape.getFillFormat().setFillType(FillType.NoFill);
// add text frame to the shape
ashape.addTextFrame("");
// clear all paragraphs in added text frame
ashape.getTextFrame().getParagraphs().clear();
// initialize StringBuilder to read Html
StringBuilder contents = new StringBuilder();
// load HTML file by using BufferedReader
BufferedReader reader = new BufferedReader(new FileReader(new File("HtmlOutput.html")));
String text = null;
// repeat until all lines are read
while ((text = reader.readLine()) != null) {
contents.append(text).append(System.getProperty("line.separator"));
}
reader.close();
// add HTML content in text frame
ashape.getTextFrame().getParagraphs().addFromHtml(content);
// supports POTM, POT, POTX, PPSM, PPS, PPSX, PPTM, PPT, PPTX, ODP output file formats.
// save presentation as Pptx
pres.save("output.pptx", com.aspose.slides.SaveFormat.Pptx);

Free Online Converter for DOCM to PPS

Convert DOCM to PPS with Watermark in Android Apps

Within your Android applications, the API also allows you to perform DOCM file to PPS conversion with watermark. In order to add a watermark to your PPS document, you can first export DOCM to HTML and write HTML content in Presentation object. After that to add a watermark, you can add text using addTextFrame, set all the relevant options like color, fillType and more and can save the document to PPS.

// supports DOC, DOCX, DOT, DOTM, DOTX, FLATOPC, ODT, OTT, RTF, TXT, WORDML, DOCM input file formats
// load DOC file with an instance of Document
Document document = new Document("template.doc");
// save the document in HTML file format
document.save("HtmlOutput.html",SaveFormat.HTML);
// create a new presentation
Presentation pres = new Presentation();
// access the default first slide of presentation
ISlide slide = pres.getSlides().get_Item(0);
// add the AutoShape to accommodate the HTML content
IAutoShape ashape = slide.getShapes().addAutoShape(ShapeType.Rectangle, 10, 10,
(float) pres.getSlideSize().getSize().getWidth(),
(float) pres.getSlideSize().getSize().getHeight());
ashape.getFillFormat().setFillType(FillType.NoFill);
// add text frame to the shape
ashape.addTextFrame("");
// clear all paragraphs in added text frame
ashape.getTextFrame().getParagraphs().clear();
// initialize StringBuilder to read Html
StringBuilder contents = new StringBuilder();
// load HTML file by using BufferedReader
BufferedReader reader = new BufferedReader(new FileReader(new File("HtmlOutput.html")));
String text = null;
// repeat until all lines are read
while ((text = reader.readLine()) != null) {
contents.append(text).append(System.getProperty("line.separator"));
}
reader.close();
// add HTML content in text frame
ashape.getTextFrame().getParagraphs().addFromHtml(content);
// add watermark
IAutoShape ashp = slide.getShapes()
.addAutoShape(ShapeType.Rectangle,50, 50, 500, 500);
ashp.addTextFrame("Watermark Text");
ashp.getTextFrame().getParagraphs().get_Item(0).getPortions()
.get_Item(0).getPortionFormat().getFillFormat()
.setFillType(FillType.Solid);
ashp.getTextFrame().getParagraphs().get_Item(0).getPortions()
.get_Item(0).getPortionFormat().getFillFormat()
.getSolidFillColor().setColor(Color.GRAY);
ashp.getTextFrame().getParagraphs().get_Item(0).getPortions()
.get_Item(0).getPortionFormat().setFontHeight(25);
// Change the line color of the rectangle to White
ashp.getShapeStyle().getLineColor().setColor(Color.WHITE);
ashp.getShapeStyle().setLineStyleIndex(LineStyle.ThinThin);
// Remove any fill formatting in the shape
ashp.getFillFormat().setFillType(FillType.NoFill);
ashp.setRotation(-45);
ashp.getAutoShapeLock().setSelectLocked(true);
ashp.getAutoShapeLock().setSizeLocked(true);
ashp.getAutoShapeLock().setTextLocked(true);
ashp.getAutoShapeLock().setPositionLocked(true);
ashp.getAutoShapeLock().setGroupingLocked(true);
// supports POTM, POT, POTX, PPSM, PPS, PPSX, PPTM, PPT, PPTX, ODP output file formats.
// save presentation as Pptx
pres.save("output.pptx", com.aspose.slides.SaveFormat.Pptx);

FAQ

  • How can I convert DOCM to PPS Online?
    The DOCM conversion online app is integrated above for your convenience. To convert a DOCM file to PPS, simply add your DOCM file by dragging and dropping it into the white area or clicking inside the area to import it. After that, click on the "Convert" button. Once the DOCM to PPS conversion is complete, you can download your converted file with just one click.
  • How long does it take to convert DOCM?
    The speed of this online converter largely depends on the size of the DOCM file you want to convert. Small DOCM files can be converted to PPS in just a few seconds. However, if you have integrated the conversion code into your Android App application, the speed will depend on how well you have optimized your application for the conversion process.
  • Is it safe to convert DOCM to PPS using free Aspose.Total converter?
    Of course! After conversion, the download link for your PPS file will be available instantly. Uploaded files are automatically deleted after 24 hours, and download links become invalid after this time. Rest assured that your files are secure, as no one else can access them. Our file conversion service, which includes DOCM files, is completely safe. Additionally, a free app is provided for testing purposes, allowing you to confirm the results before integrating the code.
  • What browser should I use to convert DOCM?
    Modern web browsers like Google Chrome, Firefox, Opera, and Safari are compatible with this online conversion tool. However, if you are working on a desktop application, the Aspose.Total DOCM Conversion API is recommended for smooth operation.

Explore DOCM Conversion Options with Android

Convert DOCM to CSV (Comma Seperated Values)
Convert DOCM to DIF (Data Interchange Format)
Convert DOCM to EXCEL (Spreadsheet File Formats)
Convert DOCM to FODS (OpenDocument Flat XML Spreadsheet)
Convert DOCM to ODS (OpenDocument Spreadsheet)
Convert DOCM to SXC (StarOffice Calc Spreadsheet)
Convert DOCM to TSV (Tab-separated Values)
Convert DOCM to XLAM (Excel Macro-Enabled Add-In)
Convert DOCM to XLS (Microsoft Excel Binary Format)
Convert DOCM to XLSB (Excel Binary Workbook)
Convert DOCM to XLSM (Macro-enabled Spreadsheet)
Convert DOCM to XLSX (Open XML Workbook)
Convert DOCM to XLT (Excel 97 - 2003 Template)
Convert DOCM to XLTM (Excel Macro-Enabled Template)
Convert DOCM to XLTX (Excel Template)
Convert DOCM to JSON (JavaScript Object Notation File)
Convert DOCM to ODP (OpenDocument Presentation Format)
Convert DOCM to POT (Microsoft PowerPoint Template Files)
Convert DOCM to POTM (Microsoft PowerPoint Template File)
Convert DOCM to POTX (Microsoft PowerPoint Template Presentation)
Convert DOCM to PPTX (Open XML presentation Format)
Convert DOCM to PPSM (Macro-enabled Slide Show)
Convert DOCM to PPSX (PowerPoint Slide Show)
Convert DOCM to PPT (PowerPoint Presentation)
Convert DOCM to PPTM (Macro-enabled Presentation File)
Convert DOCM to PPTX (Open XML presentation Format)