In Windows 10,How to convert docx or pptx files to PDF format using soffice.exe on the command line?
Win 10 has a built-in virtual PDF printer software. I suppose it: you not need the LO (the PDF export feature of the LO) for this task.
good idear!
Just search this site for convert-to
.
One example for pptx:
Docx to pdf with parameters:
For really big numbers of files, working parallel:
thanks.
pptx/docx/xlsx->pdf
odp/odt/ods->pdf
soffice --headless --convert-to pdf:“impress_pdf_Export:ExportNotesPages=True” C:\Users\Administrator\Desktop\test.odp --outdir C:\Users\Administrator\Desktop
soffice --headless --convert-to pdf:“impress_pdf_Export:ExportNotesPages=True” C:\Users\Administrator\Desktop\test.pptx --outdir C:\Users\Administrator\Desktop
soffice --headless --convert-to pdf:“calc_pdf_Export:ExportNotesPages=True” C:\Users\Administrator\Desktop\test1.ods --outdir C:\Users\Administrator\Desktop
soffice --headless --convert-to pdf:“calc_pdf_Export:ExportNotesPages=True” C:\Users\Administrator\Desktop\test1.xlsx --outdir C:\Users\Administrator\Desktop
soffice --headless --convert-to pdf:“writer_pdf_Export:ExportNotesPages=True” C:\Users\Administrator\Desktop\test1.odt --outdir C:\Users\Administrator\Desktop
soffice --headless --convert-to pdf:“writer_pdf_Export:ExportNotesPages=True” C:\Users\Administrator\Desktop\test.docx --outdir C:\Users\Administrator\Desktop
soffice --headless --convert-to pdf:draw_pdf_Export:{“SelectPdfVersion”:{“type”:“long”,“value”:“14”}} --outdir C:\Users\Administrator\Desktop C:\Users\Administrator\Desktop\test.pptx
soffice --headless --convert-to pdf:draw_pdf_Export:{“SelectPdfVersion”:{“type”:“long”,“value”:“14”}} --outdir C:\Users\Administrator\Desktop C:\Users\Administrator\Desktop\test.docx
soffice --headless --convert-to pdf:draw_pdf_Export:{“SelectPdfVersion”:{“type”:“long”,“value”:“15”}} --outdir C:\Users\Administrator\Desktop C:\Users\Administrator\Desktop\test1.xlsx
soffice --headless --convert-to pdf:draw_pdf_Export:{“SelectPdfVersion”:{“type”:“long”,“value”:“15”}} --outdir C:\Users\Administrator\Desktop C:\Users\Administrator\Desktop\test.pptx
soffice --headless --convert-to pdf:draw_pdf_Export:{“SelectPdfVersion”:{“type”:“long”,“value”:“15”}} --outdir C:\Users\Administrator\Desktop C:\Users\Administrator\Desktop\test1.ods
soffice --headless --convert-to pdf:draw_pdf_Export:{“SelectPdfVersion”:{“type”:“long”,“value”:“15”}} --outdir C:\Users\Administrator\Desktop C:\Users\Administrator\Desktop\test1.odp
@changxin you posted some (many) command lines. (They are wrong, by the way, because they do not escape quotes on Windows.) What are they expected to demonstrate?
The above command line can run well on my computer.
… but will not select PDF version.