DOCX Export to PDF Updates the File Link in the Footer

asked 2018-12-04 10:13:20 +0200

Vaughan gravatar image


When I issue the following linux command to convert a DOCX to PDF:

soffice --convert-to pdf --outdir /tmp /tmp/a1.docx

the DOCX {FileName} field updates from the Windows drive location in the original DOCX to the Linux directory of the converted PDF.

e.g. from the DOCX footer {FileName} field

Original DOCX value = D:\documents\a1.docx

Converted PDF value = /tmp/a1.docx

How can I retain the original DOCX {FileName} value without updating it during the PDF conversion process

i.e keep the footer {FileName} as D:\documents\a1.docx in the PDF?


edit retag flag offensive close merge delete