Shapes/text box gets removed after converting docx to pdf in java

82 Views Asked by At

I tried with this solution (with apache poi) to convert docx to pdf and it converts it but my docx file contains some shapes/text boxes and after conversion it removes them. I cant use MS Office as my code is hosted on cloud.

Also, tried other solutions from above link but they are not working as expected.

This is the result I get after running the code. The content in the text-box(2nd image) is removed. Contents in docx: docx

Contents in pdf after conversion: pdf

0

There are 0 best solutions below