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

--- Comment #12 from Mike Kaganski <[email protected]> ---
Please ignore my comment #11 - I was not paying due attention to the exported
result.

So, using PowerShell 5.1, the following command seems to work for me (note that
the leading & is part of the command, allowing to use the syntax as is, without
start-process):

> & 'C:\Program Files\LibreOffice\program\soffice.com' --convert-to 
> 'pdf:writer_pdf_Export:{\"PageRange\":{\"type\":\"string\",\"value\":\"3-4\"}}'
>  --outdir C:\Downloads\ C:\Downloads\file.odt

For PowerShell 7.5.4, this works:

> & 'C:\Program Files\LibreOffice\program\soffice.com' --convert-to 
> 'pdf:writer_pdf_Export:{"PageRange":{"type":"string","value":"3-4"}}' 
> --outdir C:\Downloads\ C:\Downloads\file.odt

i.e., the single quotes escape inner double quotes.

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

Reply via email to