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

$VOTX Token— Staking & Farming Details

Accessing Messages in iOS, not beyond reach anymore

Kotlin WebSocket Chat using SparkJava

Single Node K3S Installation with Cilium and Hubble

Everything should be real and natural

InvArch: the world's first IP Ownership, Utility, & Cross-Consensus Authentication Protocol for Web…

Best Practices for Image Processing & Computer Vision

Graceful shutdown using Simple Sytems Manager and Terraform on AWS

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

First Java Program

Sorter in Java

JAVA & Git-Hub

How to Build Java Applications Today #61