I’m struggling with running docx conversion using command line, i need to disable exporting form fields. I’ve found command filter parameters in docs and whole command works perfectly on windows:
soffice.exe --convert-to pdf:writer_pdf_Export:{\"ExportFormFields\":{\"type\":\"boolean\",\"value\":\"false\"}} TV278343.docx --norestore --writer --headless --outdir pdf
On windows i’m using portable version 24.8.2
When i’m trying to invoke the same command in alpine linux based docker image:
libreoffice --convert-to 'pdf:writer_pdf_Export:{"ExportFormFields": {"type":"boolean","value":"false"}}' --headless /tmp/TV278343.docx --outdir /tmp
i can see in stdout following info:
convert /tmp/TV278343.docx as a Writer document -> /tmp/TV278343.pdf using filter : writer_pdf_Export:{ExportFormFields: {type:boolean,value:false}}
however exported pdf contains forms so it looks like parameters are completely ommited
So i’ve even tried to check simplest parameter to export only one page:
libreoffice --convert-to 'pdf:writer_pdf_Export:{"PageRange":{"type":"string","value":"2"}}' --headless /tmp/TV278343.docx --outdir /tmp
And it also didn’t work as all pages were exported, for docker on alpine following package is installed: libreoffice~7.6
Do you have any idea why it’s working on windows and on alpine not? And what could i change to make it work?