https://bugs.documentfoundation.org/show_bug.cgi?id=166470

Buovjaga <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilmari.lauhakangas@libreoff
                   |                            |ice.org
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Buovjaga <[email protected]> ---
I used this as a guideline in testing
https://help.libreoffice.org/latest/en-US/text/shared/guide/pdf_params.html

Per that help page, the command you gave was in invalid form. You were missing
a closing curly brace, your quotes were not escaped and you had a space in the
parameters (although this space detail is not mentioned in Help).

This is a working command when using the Command Prompt:
"C:\Program Files\LibreOffice\program\soffice.exe" --headless --convert-to
pdf:writer_pdf_Export:{\"ExportFormFields\":{\"type\":\"boolean\",\"value\":\"true\"}}
"C:\path_to\BadFields.ott"

With Powershell you don't have to worry about the space in the params, I guess
because the whole bit is enclosed in single quotes:
& 'C:\Program Files\LibreOffice\program\soffice' --headless --convert-to
'pdf:writer_pdf_Export:{"ExportFormFields":{"type":"boolean", "value":"true"}}'
"C:\path_to\BadFields.ott"

On Linux, this works:
instdir/program/soffice --headless --convert-to
'pdf:writer_pdf_Export:{"ExportFormFields":{"type":"boolean", "value":"true"}}'
/path/to/BadFields.ott

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to