Compress RTF File Online or using Android App
Develop powerful android based RTF document compression applications. Freely compress various documents including RTF files online via app with instant download.
Compress and Optimize RTF Files Online
- Upload RTF files to compress and optimize.
- Choose the Compression Level (Low, Medium or High)
- Click the “Compress” button.
- Download the compressed RTF file.
- View and get the result of compression by checking its size and content quality.
Compress RTF File via Android App
- Reference Java library into your project
- Load the document
- Get all nodes having images and loop through each node
- Set the compressed images using setImage
- Set the compression level to maximum via setCompressionLevel(CompressionLevel.MAXIMUM)
- Call save method and get the compressed RTF file
Java Code : Compress RTF Files
import com.aspose.words.*; | |
Document wordDocument = new Document("sourceFile.docx"); | |
wordDocument.cleanup(); | |
NodeCollection nodes = wordDocument.getChildNodes(NodeType.SHAPE, true); | |
for (Shape shape : (Iterable<Shape>) nodes) | |
{ | |
if (shape.isImage()) | |
{ | |
BufferedImage image = ImageIO.read(shape.getImageData().toStream()); | |
shape.getImageData().setImage("yourCompressedImage"); | |
} | |
} | |
OoxmlSaveOptions saveOptions = new OoxmlSaveOptions(); | |
saveOptions.setCompressionLevel(CompressionLevel.MAXIMUM); | |
wordDocument.save("CompressedWordFile.docx", saveOptions); |
Develop RTF File Compression Application for Android
Need to develop android script or utility app to easily compress multiple RTF files? With
Aspose.Words for Android via Java
child APIs of
Aspose.Total for Android via Java
, any android developer can integrate the above API code to program compression app across documents. Powerful android library for document compression supports many popular formats including RTF format.
Android Compression Library for RTF Files
- We host our Java packages in Maven repositories .
- Aspose.Words for Java is a common JAR file containing byte-code.
- Follow the step-by-step instructions on how to install Aspose.Words for Android via Java.
System Requirements
- Java SE 7 and more recent Java versions are supported.
- Separate package for Java SE 6 in case one is obliged to use outdated JRE.
- Java package is cross-platform and runs on all operating systems with JVM implementation.
- Operating systems include Microsoft Windows, Linux, macOS, Android and iOS.
For more details about optional package dependencies, such as JogAmp JOGL, Harfbuzz font engine, Java Advanced Imaging JAI please refer to [Product Documentation](https://docs.aspose.com/words/java/system-requirements/).