unoconv / unoconv

Universal Office Converter - Convert between any document format supported by LibreOffice/OpenOffice.
http://dag.wieers.com/home-made/unoconv/
GNU General Public License v2.0
2.55k stars 373 forks source link

Docx to pdf link conversion error #516

Closed erild closed 4 years ago

erild commented 4 years ago

Hello, When i try to convert a docx file with relative file links inside, using the command unoconv -f pdf testing.docx, the link is corrupted. The / are interpreted as an html spécial char %2F.

If i open the docx, the links are apparently recognized as web link, not as file links, which may cause the issue. Anyone as any idea if there is an option to prevent the encoding of the link ? or i am missing something in the OOXML ?

I am joining the docx and resulting pdf Testing.pdf Testing.docx

erild commented 4 years ago

In case someone has the same issue, the problem can be avoided by removing all the spaces in the name of the file (or replacing them by _)