You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-12Lines changed: 6 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,14 @@
3
3
This repository contains examples that illustrates how to find and replace text in Word documents programmatically in Java using [Syncfusion’s Java Word library](https://www.syncfusion.com/document-processing/word-framework/java/word-library?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) (Essential DocIO) without Microsoft Word or Office interop dependencies.
4
4
5
5
## Find and replace text in Word documents using Java
The Syncfusion Java Word library (Essential DocIO) provides comprehensive APIs to find and replace text in a Word document with any desired text, image, hyperlink, paragraph, table, and part of a document or an entire document. It provides options to find text by matching case and whole words. You can find each occurrence one by one or all the occurrences of a text in the document. It saves your efforts and time by helping you to automate find and replace a pattern of text in a Word document using Regex. It allows you to save the resultant document as Word document (DOCX, WordML), HTML, RTF.
8
8
9
9
## Jar files
10
-
------------
11
10
12
11
You can download the jars from the Syncfusion [maven repository](https://jars.syncfusion.com/?_ga=2.177721445.1332356717.1617771042-23317178.1569844681) to use our artifacts in your projects. It helps you to use the Syncfusion Java packages without installing Essential Studio or platform installation to development with Syncfusion controls.
13
12
14
13
## Key Features
15
-
--------------
16
14
17
15
-[Find and highlight text in Java](findandhighlighttext/) - Find text from a Word document and format or highlight it.
18
16
@@ -49,14 +47,13 @@ You can download the jars from the Syncfusion [maven repository](https://jars.sy
49
47
</p>
50
48
51
49
## Syncfusion Java Word Library
52
-
------------------------------
53
50
54
51
The Syncfusion DocIO is a [Java Word library](https://www.syncfusion.com/document-processing/word-framework/java/word-library?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) allows you to add advanced Word document processing and does not require Microsoft Word application to be installed in the machine. It is a non-UI component that provides a full-fledged document instance model similar to the Microsoft Office COM libraries to iterate with the document elements explicitly and perform necessary manipulation.
55
52
56
-
Take a moment to peruse the [documentation](https://help.syncfusion.com/file-formats/docio/getting-started?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), where you can find basic Word document processing options along with the features like [mail merge](https://help.syncfusion.com/file-formats/docio/working-with-mail-merge?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [merge](https://help.syncfusion.com/file-formats/docio/word-document/merging-word-documents?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [split](https://help.syncfusion.com/file-formats/docio/word-document/split-word-documents?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) and [compare documents](https://help.syncfusion.com/file-formats/docio/word-document/compare-word-documents?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [find and replace](https://help.syncfusion.com/file-formats/docio/working-with-find-and-replace?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) text in the Word document, [protect](https://help.syncfusion.com/file-formats/docio/working-with-security?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) the Word documents, and most importantly, the [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) and [Image](https://help.syncfusion.com/file-formats/docio/word-to-image?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) conversions with code examples.
53
+
54
+
Take a moment to peruse the [documentation](https://help.syncfusion.com/java-file-formats/word-library/getting-started?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), where you can find basic Word document processing options along with the features like [mail merge](https://help.syncfusion.com/java-file-formats/word-library/working-with-mail-merge?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [merge](https://help.syncfusion.com/java-file-formats/word-library/working-with-word-document?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#merging-word-documents), [find and replace](https://help.syncfusion.com/java-file-formats/word-library/working-with-find-and-replace?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) text in the Word document, [protect](https://help.syncfusion.com/java-file-formats/word-library/working-with-security?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) the Word documents and most importantly, [RTF](https://help.syncfusion.com/java-file-formats/word-library/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Text](https://help.syncfusion.com/java-file-formats/word-library/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [HTML](https://help.syncfusion.com/java-file-formats/word-library/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) conversions with code examples.
57
55
58
56
## Compatible Microsoft Word Versions
59
-
----------------------------------
60
57
61
58
* Microsoft Word 97-2003
62
59
* Microsoft Word 2007
@@ -67,35 +64,32 @@ Take a moment to peruse the [documentation](https://help.syncfusion.com/file-for
67
64
* Microsoft 365
68
65
69
66
## Supported File Formats
70
-
----------------------
71
67
72
-
* Creates, reads, and edits popular text file formats like [DOC](https://help.syncfusion.com/file-formats/docio/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#doc-to-docx-and-docx-to-doc), DOT, [DOCM](https://help.syncfusion.com/file-formats/docio/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#macros), DOTM, [DOCX](https://help.syncfusion.com/file-formats/docio/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#doc-to-docx-and-docx-to-doc), [DOTX](https://help.syncfusion.com/file-formats/docio/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#templates), [HTML](https://help.syncfusion.com/file-formats/docio/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [RTF](https://help.syncfusion.com/file-formats/docio/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [TXT](https://help.syncfusion.com/file-formats/docio/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [XML (WordML)](https://help.syncfusion.com/file-formats/docio/word-file-formats#word-processing-xml-xml?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
73
-
* Converts Word documents also to [PDF](https://help.syncfusion.com/file-formats/docio/word-to-pdf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Image](https://help.syncfusion.com/file-formats/docio/word-to-image?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [ODT](https://help.syncfusion.com/file-formats/docio/word-to-odt?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) files.
68
+
* Creates, reads, and edits popular text file formats like [DOCX](https://help.syncfusion.com/java-file-formats/word-library/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#word-open-xml-formats-2007--later), [DOTX](https://help.syncfusion.com/java-file-formats/word-library/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#templates), DOTM, [DOCM](https://help.syncfusion.com/java-file-formats/word-library/word-file-formats?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples#macros), [WordML](), [RTF](https://help.syncfusion.com/java-file-formats/word-library/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Text](https://help.syncfusion.com/java-file-formats/word-library/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [HTML](https://help.syncfusion.com/java-file-formats/word-library/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
69
+
* Converts Word documents also to [RTF](https://help.syncfusion.com/java-file-formats/word-library/rtf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), [Text](https://help.syncfusion.com/java-file-formats/word-library/text?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples), and [HTML](https://help.syncfusion.com/java-file-formats/word-library/html?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
74
70
75
71
## How to run the examples
76
-
-------------------------
77
72
78
73
- Download this project to a location in your disk.
79
74
- Open the solution file using Visual Studio.
80
75
- Rebuild the solution to install the required NuGet packages.
81
76
- Run the application.
82
77
83
78
## Resources
84
-
------------
85
79
86
80
-**Product page:**[Syncfusion Java Word Framework](https://www.syncfusion.com/document-processing/word-framework/java?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
87
81
-**Documentation:**[Find and Replace using Syncfusion Java Word library](https://help.syncfusion.com/java-file-formats/word-library/working-with-find-and-replace?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
88
82
-**GitHub Examples:**[Syncfusion Word library examples](https://github.com/SyncfusionExamples/DocIO-Examples?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
89
83
-**Online demo:**[Syncfusion Word library - Online demos](https://ej2.syncfusion.com/aspnetcore/DocIO/SalesInvoice?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples)
90
84
91
85
## Support and feedback
92
-
-----------------------
93
86
94
87
For any other queries, reach our [Syncfusion support team](https://support.syncfusion.com/?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) or post the queries through the [community forums](https://www.syncfusion.com/forums?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
95
88
96
89
Request new feature through [Syncfusion feedback portal](https://www.syncfusion.com/feedback?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
97
90
98
91
## License
92
+
99
93
This is a commercial product and requires a paid license for possession or use. Syncfusion's licensed software, including this component, is subject to the terms and conditions of [Syncfusion's EULA](https://www.syncfusion.com/license/studio/22.2.5/syncfusion_essential_studio_eula.pdf?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples). You can purchase a licnense [here](https://www.syncfusion.com/sales/products?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples) or start a free 30-day trial [here](https://www.syncfusion.com/account/manage-trials/start-trials?utm_source=github&utm_medium=listing&utm_campaign=github-docio-examples).
0 commit comments