bash-tutorial/tutorial/convertppt2pdf.org

28 lines
676 B
Org Mode
Raw Normal View History

2022-07-18 14:23:28 +02:00
#+options: toc:nil num:nil author:nil
2022-07-03 21:06:29 +02:00
* How to convert office documents to text
2022-07-18 14:23:28 +02:00
** From office document to pdf and then to plain text
You may use libreoffice from terminal to transform the file in pdf:
2022-07-03 21:06:29 +02:00
#+begin_example sh
libreoffice --headless --convert-to pdf Presentation.pptx
#+end_example
2022-07-18 14:23:28 +02:00
Then from a pdf you can use 'pdftotext' command to transform the pdf file to any
plain text format:
2022-07-03 21:06:29 +02:00
#+begin_example sh
pdftotext Presentation.pdf Presentation.txt
#+end_example
2022-07-18 14:23:28 +02:00
** 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