Java: Convert Word to PCL

Import JAR Dependency

<repositories>
<repository>
<id>com.e-iceblue</id>
<name>e-iceblue</name>
<url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>e-iceblue</groupId>
<artifactId>spire.doc.free</artifactId>
<version>3.9.0</version>
</dependency>
</dependencies>

Convert Word to PCL

import com.spire.doc.Document;
import com.spire.doc.FileFormat;

public class ConvertWordToPCL {
public static void main(String[] args){
//Create a Document instance
Document document= new Document();
//Load a Word document
document.loadFromFile("Sample.docx");

//Save the document to PCL
document.saveToFile("ToPCL.pcl", FileFormat.PCL);
}
}

--

--

--

Sharing Java Code

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

2.5 platform game setup with Unity

Tutorial Fuzzy Logic Mamdani for Arduino

Tutorial Fuzzy Logic Mamdani for Arduino

Adding Sign In with Apple to your app in under 5mins with ZERO code

Python : Threading vs Multiprocessing

Code Smell 05 — Comment Abusers

FreePascal REST API’s — Authenticating requests with Basic Auth

Updating the Mac Pro 5.1 in 2021. Episode 2: installing Catalina.

Code inspection with SonarQube and Docker

SonarQube dashboard

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrew Wilson

Andrew Wilson

Sharing Java Code

More from Medium

Fork Join Framework in Java

How to prevent IDOR attacks by using AOP on Java

How to install Java on Linux

Spring Integration — Message