Pdf to word in LINUX servers | Community
Skip to main content
August 20, 2021
Question

Pdf to word in LINUX servers

  • August 20, 2021
  • 1 reply
  • 730 views

Could you please provide if there is any solution available to convert pdf to word using aem forms 6.5 for linux platform. 

We have tried using export PDF component but it works only for windows servers. Could you please let us know if similar component is available for linux servers. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Asutosh_Jena_
Community Advisor
Community Advisor
August 20, 2021

Hi @jayashreevenkatesan 

 

Linux is an OS where your AEM instance will be running. So you can use any Java API which can run on AEM and can convert PDF to DOC. Having said that you need to see if the application has any licensing obligations!

 

Here is an API which can be used to convert PDF to DOC.

<!-- https://mvnrepository.com/artifact/com.aspose/aspose-pdf -->
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-pdf</artifactId>
<version>16.11.0</version>
</dependency>
// Load source PDF file
Document doc = new Document("input.pdf");

// Save resultant DOC file
doc.save("output.doc", SaveFormat.Doc);

https://gist.githubusercontent.com/aspose-com-gists/6b3fd2f622633cffc7e000b4d33bb027/raw/916b3112f72c4bae21a25fd61472e069a70db641/convert-pdf-to-doc.java

 

Please see the below link for more info:

https://blog.aspose.com/2020/01/17/convert-pdf-to-word-doc-docx-in-java/

 

Thanks!