'Convert pdf to docx and vice versa without breaking the format of file

I tried few ways to convert the pdf file to docx or docx to pdf file . I tried via python and its working too . But the format breaks suppose the pdf file has tables with rows and columns . this image shows pdf enter image description here

This image shows after conversion to docx , how things are broken enter image description here

I want the format to not break . Is there any help available . Any third party tool or python library can also help . I used this python lib pdf2docx to convert pdf to docx.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source