Why to Convert
The Portable Document Format (PDF) is a widely used file format for documents. It is used to store and share documents, and is often used for archiving and printing. However, PDFs are not always the best format for sharing information. Text files are often easier to work with, and can be used to store data in a more structured way. Converting PDFs to text files can make it easier to work with the data contained within them.
How Aspose.Total Helps for PS to TXT Conversion
Aspose.Total for Android via Java is a comprehensive suite of APIs that can be used to convert PDFs to text files. The suite includes two APIs: Aspose.PDF for Android via Java and Aspose.Cells for Android via Java.
Aspose.PDF for Android via Java can be used to convert PDFs to XLSX files. This API provides a range of features, including the ability to convert PDFs to other formats, extract text from PDFs, and more.
Aspose.Cells for Android via Java can then be used to convert XLSX files to text files. This API provides powerful spreadsheet processing capabilities, including the ability to read, write, and manipulate spreadsheets. It also provides features such as formatting, charting, and more.
By using Aspose.Total for Android via Java, developers can quickly and easily integrate PDF to text conversion into their Android applications. This suite of APIs makes it easy to convert PDFs to text files, allowing developers to work with the data contained within them in a more structured way.
Android API to Render PS to TXT
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 PS File in Android Apps
Aspose.PDF for Android via Java allows you to access a PS file’s XMP metadata. In order to get the metadata, create a Document object and open the input PS 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 TXT Document in Android via Java
Aspose.Cells for Android via Java supports protecting your TXT 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"); |