Cookbook

Convert PDF files to DOCX

MS Word 2013 included a highly anticipated feature: the chance to open PDF files and convert them to DOCX.

If you need to export PDF files to DOCX, javadocx lets you achieve it with the transformDocxUsingMSWord method. The requisites to perform this transformation are: a Windows server, MS Word 2013 or higher and Java with support for the COM extension (http://php.net/manual/en/class.com.php).

Once all the requisites are met, perform the transformation of the document with this Java code: