Find and Highlight
Upload
Click here to browse files.Convert to
- Demo
- Java
- C# source
Conversion
Upload
Click here to browse files.Convert to
- Demo
- Java
- C# source
Add Watermark
Upload
Click here to browse files.Set text watermark
| Text: | |
| Font: | |
| Font Size: | |
| Color: | |
|
downloads
|
|
Set image watermark
| Image: |
Click here to browse files
|
![]() |
|
|
downloads
|
|
- Demo
- Java
- C# source
import com.spire.doc.Document;
import com.spire.doc.FileFormat;
import com.spire.doc.PictureWatermark;
import com.spire.doc.TextWatermark;
import com.spire.doc.documents.WatermarkLayout;
import java.awt.*;
import java.io.ByteArrayInputStream;
import java.util.UUID;
public class AddWatermark {
public void addWaterMark(String docFile, String WaterMarkType, String watermarkText, String imageFile, String resultFilePath) {
Document document = new Document();
document.loadFromFile(docFile);
switch (WaterMarkType) {
case "Text":
addTextWatermark(document, watermarkText);
break;
case "Image":
addImageWatermark(document, imageFile);
break;
}
document.saveToFile(resultFilePath, FileFormat.Docx);
}
private void addImageWatermark(Document doc, String imageFile){
PictureWatermark pictureWatermark=new PictureWatermark();
pictureWatermark.setPicture(imageFile);
pictureWatermark.setScaling(250);
pictureWatermark.isWashout(false);
doc.setWatermark(pictureWatermark);
}
private void addTextWatermark(Document doc, String watermarkText){
TextWatermark textWatermark=new TextWatermark();
textWatermark.setText(watermarkText);
textWatermark.setFontSize(14);
textWatermark.setColor(Color.RED);
textWatermark.setLayout(WatermarkLayout.Diagonal);
doc.setWatermark(textWatermark);
}
}
Spire.Doc for Java 4.10.3 supports loading and saving .wps and .wpt files
We are happy to announce the release of Spire.Doc for Java 4.10.3. This version supports loading and saving .wps and .wpt files. Moreover, it enhances the conversion from Word to PDF, Word to html, as well as Doc to Docx. In addition, it fixes the issues that the application threw error when merging Word files or loading a Word document. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | SPIREDOC-6743 | Supports loading and saving .wps and .wpt files.
Document document = new Document(); document.loadFromFile(inputFile, FileFormat.WPS); //document.loadFromFile(inputFile, FileFormat.WPT); document.saveToFile(outputFile, FileFormat.WPS); //document.saveToFile(outputFile, FileFormat.WPT); |
| Bug | SPIREDOC-5839 | Fixes the issue that the line break was incorrect after converting Word to PDF. |
| Bug | SPIREDOC-6107 SPIREDOC-6572 SPIREDOC-6671 SPIREDOC-6715 |
Fixes the issue that the comparison result was incorrect after comparing two Word documents. |
| Bug | SPIREDOC-5768 SPIREDOC-5768 |
Fixes the issue that the text across paragraphs could not be found when using regular expressions. |
| Bug | SPIREDOC-6171 | Fixes the issue that the charts were not rendered correctly after converting Word to PDF. |
| Bug | SPIREDOC-6379 SPIREDOC-6745 |
Fixes the issue that the field was not updated correctly after mail merge. |
| Bug | SPIREDOC-6391 | Fixes the issue that the image position was incorrect after converting Word to PDF. |
| Bug | SPIREDOC-6428 | Fixes the issue that it failed to set the value of the DocProperty field in the header. |
| Bug | SPIREDOC-6462 SPIREDOC-6559 SPIREDOC-6620 |
Fixes the issue that the content was incorrect after converting Word to PDF. |
| Bug | SPIREDOC-6546 | Fixes the issue that table border was not displayed correctly when opening the result file in WPS. |
| Bug | SPIREDOC-6552 | Fixes the issue that the changes markup was incorrect after converting Word to HTML and back to Word. |
| Bug | SPIREDOC-6581 | Fixes the issue that the image was missing after converting Word to PDF. |
| Bug | SPIREDOC-6583 SPIREDOC-6661 SPIREDOC-6767 SPIREDOC-6769 |
Fixes the issue that the content was incorrect after accepting the changes. |
| Bug | SPIREDOC-6589 | Fixes the issue that the application threw the error "IllegalArgumentException" when loading a Word document. |
| Bug | SPIREDOC-6614 | Fixes the issue that the text overlapped after converting Word to PDF. |
| Bug | SPIREDOC-6631 | Fixes the issue that the application threw the error "An element with the same key already exists in the dictionary" when merging Word files. |
| Bug | SPIREDOC-6647 | Fixes the issue that the application threw the error "ArrayIndexOutOfBoundsException" when accepting changes. |
| Bug | SPIREDOC-6662 | Fixes the issue that the application threw the error "NullPointerException" when getting bookmarks after accepting changes. |
| Bug | SPIREDOC-6663 | Fixes the issue that the table borders were missing when opening result file in WPS after converting Doc to Docx. |
| Bug | SPIREDOC-6669 | Fixes the issue that the application threw the error "IllegalArgumentException" when converting Word to HTML. |
| Bug | SPIREDOC-6670 | Fixes the issue that there was extra image after converting Word to HTML and back to Word. |
| Bug | SPIREDOC-6672 | Fixes the issue that the result file couldn't be printed in Mac OS after converting Word to PDF. |
| Bug | SPIREDOC-6702 | Fixes the issue that the application threw the error "Value was either too large or too small for an Int32" when loading a Word document. |
| Bug | SPIREDOC-6703 | Fixes the issue that the table width was changed after converting Word to PDF. |
| Bug | SPIREDOC-6704 | Fixes the issue that there were extra images after converting Word to PDF. |
| Bug | SPIREDOC-6705 | Fixes the issue that the application threw the error "'span' is expected Line 1, position 67" when loading a Word document. |
| Bug | SPIREDOC-6712 | Fixes the issue that the application threw the error "StackOverFlowError" when updating the TOC. |
| Bug | SPIREDOC-6753 | Fixes the issue that the application threw the error "Input String was not in the correct format" when updating the TOC. |
| Bug | SPIREDOC-6792 | Fixes the issue that the application threw the error "No have this value 104" when loading a Word document. |
| Bug | SPIREDOC-6797 | Fixes the issue that the application threw the error "No have this value 5" when loading a Word document. |
Spire.Presentation for Java 4.10.1 enhances the conversion from PPT to images
We are happy to announce the release of Spire.Presentation for Java 4.10.1. This version enhances the conversion from PPT to images and also fixes the issue occurred in the process of loading PPT files. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| Bug | SPIREPPT-1688 | Fixes the issue that the application threw an error “Invalid format string” when loading a PPT file. |
| Bug | SPIREPPT-1689 | Fixes the issue that the application hanged when converting a PPT to images. |
E-iceblue has a 7-Day National Holiday during 01/10/2021-07/10/2021
Due to China's National Day Holiday, our office will be closed from 01/10/2021 to 07/10/2021(GMT+8:00).
During the holiday, your email will be received as usual and the urgent problems will be solved as soon as possible by the staffs on duty.
Note: The purchase system will remain available 24 hours a day and 7 days a week. Once you process the order online and finish the payment, the license file will be sent to you automatically by our system.
If you want to obtain a temporary license file to have a better evaluation on our products, please Request a Temporary License for yourself. If you could not request it successfully, please send an email to sales team.
Sorry for any inconveniences caused by us and we appreciate your support and understanding.
Please feel free to contact us via the following Emails:
- Support Team: support@e-iceblue.com
- Sales Team: sales@e-iceblue.com
Useful Links Related to Purchase:
Spire.Email 4.7 fixes a filter condition problem
We are happy to announce the release of Spire.Email 4.7. This version fixes a filter condition problem. View the following for more information.
Here is a list of changes made in this release
| Category | ID | Description |
| Bug | SPIREEMAIL-43 | Fixes the issue that the program threw an error of "System.InvalidOperationException" when using filter conditions to query emails. |
Spire.SpreadSheet 5.6.1 fixes the display issues of text and images
We are happy to announce the release of Spire.SpreadSheet 5.6.1. This update mainly fixes the display issues of text and images. More details are listed as follows.
Here is a list of changes made in this release
| Category | ID | Description |
| Bug | SPREADSHEET-175 | Fixes the issue that the text was incorrect when viewing excel files. |
| Bug | SPREADSHEET-186 SPREADSHEET-187 |
Fixes the issue that text and images were incorrect when viewing excel files. |
Spire.PDFViewer 6.8.6 is released
We are happy to announce the release of Spire.PDFViewer 6.8.6. In this version, the ASP.NET control supports rotating pages as well as finding and highlighting text. Moreover, this update also fixes the issue occurred in the process of displaying PDF files. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | SPIREPDFVIEWER-514 | The ASP.NET control supports rotating pages.
input type=button id=PdfDocumentViewer1_btnRotate onfocus=this.blur() onclick=pdfdocumentviewer1.Rotate(pdfdocumentviewer1.RotateAngle + 270); value=rotate_270 |
| New feature | SPIREPDFVIEWER-515 | The ASP.NET control supports finding and highlighting text.
input type=text id=PdfDocumentViewer1_txtFindText onkeydown=if(event.keyCode==13){pdfdocumentviewer1.SearchText(this.value,true);return false;} value=
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.PdfDocumentViewer1.FindTextHighLightColor = System.Drawing.Color.FromArgb(125, 255, 0, 0);
this.PdfDocumentViewer1.LoadFromFile(input.pdf);
}
}
|
| Bug | SPIREPDFVIEWER-369 SPIREPDFVIEWER-433 SPIREPDFVIEWER-508 |
Fixes the issue that the display content of the PDF was incorrect. |
| Bug | SPIREPDFVIEWER-491 | Fixes the issue that Chinese characters in PDF file were displayed incorrectly. |
| Bug | SPIREPDFVIEWER-504 | Fixes the issue that the ASP.NET control poped up an error message when no PDF file was loaded. |
| Bug | SPIREPDFVIEWER-506 | Fixes the issue that the image covered the text content. |
| Bug | SPIREPDFVIEWER-513 | Fixes the issue that the display content of the PDF was blurred. |
Spire.OfficeViewer 6.6 fixes the display issue of watermark
We are happy to announce the release of Spire.OfficeViewer 6.6. This update mainly fixes the issue that the watermark was displayed incomplete after opening Word files. More information is listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| Bug | SPIREOFFICEVIEWER-23 | Fixes the issue that the watermark was displayed incomplete after opening Word files. |
