Expand my Community achievements bar.

Pdf to word in LINUX servers

Avatar

Level 1

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. 

1 Reply

Avatar

Community Advisor

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/916b3112f72...

 

Please see the below link for more info:

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

 

Thanks!