AlJohri / docx2pdf

MIT License
506 stars 96 forks source link

docx2pdf doesn't preserve any links in the final pdf on Mac #38

Closed aeltanawy closed 2 years ago

aeltanawy commented 3 years ago

I'm using docx2pdf to do a bulk conversion from docx to pdf and it looks like the final pdf, while it is preserving the link font styling, the hyperlink itself is gone. This is only observed on Mac as when I run the same script on a Windows machine, everything is working as expected.

If it is at all useful, I'm using docx2pdf v.0.1.7, Python v.3.8.2, word v.16.51, and Mac v.11.5.1

AlJohri commented 3 years ago

I don't have a solution for you but this might be the underlying issue from Issue https://github.com/AlJohri/docx2pdf/issues/30 which revolved around TOC links.

AlJohri commented 3 years ago

On further reading, yeah I think this issue is identical. If you have the time, I'd love to hear if any of the potential solutions described here work for your use case: https://github.com/AlJohri/docx2pdf/issues/30#issuecomment-815811946

aeltanawy commented 3 years ago

For real @AlJohri ! I tried haakonstorm solution here and now the pdf has the full links! Changing this option once with saving as a pdf preserves the choice for any subsequent savings as a pdf event so this resolves the issue!

Thanks for looking into it!