bash-tutorial/tutorial/convertppt2pdf.org

676 B

How to convert office documents to text

From office document to pdf and then to plain text

You may use libreoffice from terminal to transform the file in pdf:

  libreoffice --headless --convert-to pdf Presentation.pptx

Then from a pdf you can use 'pdftotext' command to transform the pdf file to any plain text format:

  pdftotext Presentation.pdf Presentation.txt

One more example: convert odf files to pdf using libreoffice

Convert odt file "tcl_online3.odt" to pdf

  libreoffice --headless --convert-to pdf tcl_online3.odt