bash-tutorial/tutorial/convertppt2pdf.org

28 lines
676 B
Org Mode

#+options: toc:nil num:nil author:nil
* 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:
#+begin_example sh
libreoffice --headless --convert-to pdf Presentation.pptx
#+end_example
Then from a pdf you can use 'pdftotext' command to transform the pdf file to any
plain text format:
#+begin_example sh
pdftotext Presentation.pdf Presentation.txt
#+end_example
** One more example: convert odf files to pdf using libreoffice
Convert odt file "tcl_online3.odt" to pdf
#+begin_src bash
libreoffice --headless --convert-to pdf tcl_online3.odt
#+end_src