Skip to content

Syncfusion Java Word library is used to create, read, edit and convert Word documents without Microsoft Word or interop.

Notifications You must be signed in to change notification settings

SyncfusionExamples/JavaWordExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syncfusion Java Word Library

The Syncfusion DocIO is a Java Word library 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.

Take a moment to peruse the documentation, where you can find basic Word document processing options along with the features like mail merge, merge, find and replace text in the Word document, protect the Word documents and most importantly, RTF, Text, and HTML conversions with code examples.

Key Features

  • Support to create Word document from scratch.
  • Support to open, modify and save the existing Word documents.
  • Advanced Mail merge support with different data sources.
  • Ability to create or edit Word 2007 and later version documents (DOCX), and convert them to commonly used file formats such as WordMLTXTHTML and vice versa.
  • Ability to create and manipulate  Shapes, and Group shape in DOCX and WordML format documents.
  • Ability to read and write Built-In and Custom Document Properties.
  • Support to insert and edit the form fields.
  • Ability to insert Bookmarks and navigate corresponding bookmarks to insert, replace, and delete content.

Compatible Microsoft Word Versions

  • Microsoft Word 2007
  • Microsoft Word 2010
  • Microsoft Word 2013
  • Microsoft Word 2016
  • Microsoft Word 2019
  • Microsoft 365

Supported File Formats

How to run the examples

How to run in Command Prompt

  • Clone this repository.
  • Open the command prompt and navigate to the samples root directory.
  • Set the Java path using below command

Syntax: set path=<jdk_installed_location>

Example: set path=C:\Program Files\Java\jdk-12.0.1\bin

  • Compile the sample with the dependent jars file using below command

Syntax: javac -cp “<jar_file1_location>;.;”<jar_file2_location>” sampleFolder/*.java

Example: javac -cp "D:\Jars\syncfusion-docio-21.2.10.jar";.;"D:\Jars\syncfusion-javahelper-21.2.10.jar";.;"D:\Jars\syncfusion-licensing-21.2.10.jar" examples\helloworld\HelloWorld.java

  • Run the sample using below command

Syntax: java -cp “<jar_file1_location>;.;”<jar_file2_location>” sampleFolder.JavaFile

Example: java -cp "D:\Jars\syncfusion-docio-21.2.10.jar";.;"D:\Jars\syncfusion-javahelper-21.2.10.jar";.;"D:\Jars\syncfusion-licensing-21.2.10.jar" examples.helloworld.HelloWorld

How to run in Eclipse

  • Open Eclipse IDE
  • Create a new Java Project.

Create-Project

  • Select the src and import code examples folder

Add-examples-folder

  • Select the project and import the resources folder

Add-resources-folder

  • Add the respective jars

Apply-Jars

  • Run the application

Resources

Support and feedback

For any other queries, reach our Syncfusion support team or post the queries through the community forums.

Request new feature through Syncfusion feedback portal.

License

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. You can purchase a licnense here or start a free 30-day trial here.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 29,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1700+ components and frameworks for web (BlazorASP.NET CoreASP.NET MVCASP.NET WebFormsJavaScriptAngularReactVue, and Flutter), mobile (XamarinFlutterUWP, and JavaScript, .NET MAUI) and desktop development (WinFormsWPFWinUIFlutterUWP, and .NET MAUI) a. We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.

About

Syncfusion Java Word library is used to create, read, edit and convert Word documents without Microsoft Word or interop.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages