Spire.Office for Java is a combination of Enterprise-Level Office Java APIs offered by E-iceblue. It includes Spire.Doc for Java, Spire.XLS for Java, Spire.Presentation for Java, Spire.PDF for Java and Spire.Barcode for Java.
Developers can use Spire.Office for Java to perform a wide range of office document operations in Java applications, such as opening, creating, modifying, converting and printing Word, Excel, PowerPoint and PDF documents, generating and scanning 1D&2D barcodes.
As an independent Office Java library, Spire.Office for Java doesn't need Microsoft Office to be installed on either the development or target systems.
Here is a brief summary of Spire.Office for Java features.
File Formats Supported
Word 97-2003, Word 2007, Word 2010, Word 2013 and Word 2016 (.doc, docx, .dot) format.
Excel 97-2003 format (.xls), Excel 2007, Excel 2010, Excel 2013, Excel 2016 (.xlsx, .xlsb, .xlsm) and Open Office (.ods) format
PDF 1.2 to PDF 1.7, PDF/A-1b, PDF/x1a
PPT, PPS, PPTX, PPSX
Barcode Bitmap, JPG, PNG, EMF, TIFF, GIF and WMF.
Converting
Convert Word to RTF (Rich Text Format) and vice versa.
Convert Word to TXT (Plain Text)
Convert Word to HTML file
Convert Word to XML
Convert Word to XPS document.
Convert Word to EPUB (Digital Publishing).
Convert Word to PDF
Convert Excel to HTML/XML/CSV
Convert XML/CSV to Excel
Convert Excel to Image
Convert Excel to Text
Convert Excel to PDF
Convert Excel to XPS
Convert Excel to SVG
Convert PDF to PDF/A
Convert PDF to Image
Convert PDF to SVG
Convert PDF to XPS
Convert XPS to PDF
Convert PDF to Word
Convert PDF to HTML
Convert PPT/PPTX to Image
Convert PPT/PPTX to PDF
Convert PPT/PPTX to SVG
Convert PPT/PPTX to XPS
Operation
Insert Hyperlinks in Word in Java
Add Text Watermark and Image Watermark to Word Document
Extract Text and Images from Word in Java
Encrypt and Decrypt Word Document in Java
Insert Image into Word Document in Java
Set Page Margins and Page Borders for Word Document
Insert Header and Footer to Word in Java
Print Word
Create and Edit Excel, charts, auto filters, Pivot Tables
Find and Replace Data in Excel
Print excel files
Import/Export data from a DataTable, DataView, Array, DataGrid etc.
Save Excel to file/Stream or as web response
Create Read and write hyperlinks in Excel
Implement Data Sorting, Data Validations
Merge/Unmerge Cells and files
Group/UnGroup Rows and Columns
Insert/Delete or Hide Rows, Columns and Sheets
Calculate Complex Excel Formula
Insert Hyperlinks to link data
Protect/Unprotect Worksheets
Insert Text Watermark to Presentation Slides
Insert and Extract Images from a PowerPoint Document
Read/Extract Text from a PowerPoint Document
Modify and Apply Slide Masters in PowerPoint
Merge and Split Table Cells in PowerPoint
Add Hyperlinks to a PowerPoint Slide
Insert Audio/Video in PowerPoint
Merge/Split PDF Files
Create Fillable Form Fields in PDF
Set Background Color and Background Image for PDF
Insert Text Watermark/ Image Watermark to PDF
Encrypt and Decrypt PDF
Add Header and Footer to PDF
Print PDF Document
Create Barcode
Generate QR Code
Scan Barcode
Here is a list of changes made in this release | ||
Spire.Doc for Java | ||
Category | ID | Description |
New feature | SPIREDOC-9700 | Optimizes the mechanism for reading documents with existing issues, so that the program throws an exception and terminates when reading such a document to avoid causing memory overflow. |
Bug | SPIREDOC-9156 | Fixes the issue that finding text using regular expressions failed. |
Bug | SPIREDOC-9261 | Fixes the issue that the emphasis marks were lost when converting Word to PDF. |
Bug | SPIREDOC-9560 | Fixes the issue that tag in HTML did not take effect when converting HTML to Docx. |
Bug | SPIREDOC-9752 | Fixes the issue that fonts were not correct when converting Word to HTML. |
Bug | SPIREDOC-9815 | Fixes the issue that the chart data in the result file was not correct when converting Word to PDF. |
Spire.PDF for Java | ||
Category | ID | Description |
New feature | SPIREPDF-6082 | Provides the XlsxSpecialTableLayoutOptions interface to optimize formatting when converting PDF with tables to Excel. |
SPIREPDF-6178 | PdfDocument document=new PdfDocument(); | |
SPIREPDF-6220 | document.loadFromFile("input.pdf"); | |
XlsxSpecialTableLayoutOptions options=new XlsxSpecialTableLayoutOptions(false, false, false); | ||
document.getConvertOptions().setPdfToXlsxOptions(options); | ||
document.saveToFile("output.pdf", FileFormat.XLSX); | ||
New feature | SPIREPDF-6247 | Supports converting PDF to SVGZ. |
document.saveToFile("output.svgz", FileFormat.SVGZ); | ||
New feature | SPIREPDF-6249 | Synchronized the function of comparing the contents of PDF documents to JAVA. |
PdfDocument pdf1 = new PdfDocument(inputFile_1); | ||
PdfDocument pdf2 = new PdfDocument(inputFile_2); | ||
PdfComparer compare = new PdfComparer(pdf1, pdf2); | ||
compare.getOptions().setPageRanges(0, pdf1.getPages().getCount() - 1, 0, pdf2.getPages().getCount() - 1); | ||
compare.compare(outputFile); | ||
Bug | SPIREPDF-6252 | Fixes the issue that the page size is inconsistent after converting PDF to SVG. |
Bug | SPIREPDF-6276 | Fixes the issue that the text is duplicated after converting PDF to PPTX. |
Bug | SPIREPDF-6280 | Fixes the issue that the program threw "PDF file structure is not valid" when loading PDF documents. |
Bug | SPIREPDF-6281 | Fixes the issue that the program threw "NullPointerException" when signing PDF. |
Spire.Presentation for Java | ||
Category | ID | Description |
New feature | SPIREPPT-2366 | Supports specifying the number of pages when converting PPTX to other document formats. |
ppt.saveToFile(2,5,outputFile, FileFormat.PDF); | ||
Bug | SPIREPPT-2282 | Fixes the issue that the application threw a "DocumentEditException" exception when splitting PPTX file. |
Bug | SPIREPPT-2336 | Fixes the issue that the application threw a "Comment by nonexistent author" exception when loading PPTX file. |
Bug | SPIREPPT-2339 | Fixes the issue that the application threw a "NullPointerException" exception when loading PPT file. |
Bug | SPIREPPT-2340 | Fixes the issue that the base64 image data was lost after converting HTML to PPTX. |
Bug | SPIREPPT-2344 | Fixes the issue that the image turned black after converting PPTX to PDF. |
Bug | SPIREPPT-2347 | Fixes the issue that the path of video and image was incorrect after converting PPTX to HTML. |
Bug | SPIREPPT-2348 | Fixes the issue that the application threw an exception and the document format was incorrect after converting PPTX to SVG. |