This may sound harsh, but coming from the Linux world, to put it bluntly, they are just a pain in my tush! So every time I open a ppt slideshow with LibreOffice, and then it is in an editable mode, and that is no good. But then I can "Export" it as a pdf file. (PIMA) but by rooting around on the Internet today I found I can run LibreOffice in a headless mode.
libreoffice --headless --invisible --convert-to pdf .pdf
So I can now put it together in a little shell script and save it to my Desktop:
#! /bin/bash echo "This is a PowerPoint (ppt) to (pdf)" echo "looking for the form of *123.ppt not *.ppt" echo "Enter Filename: " read filename echo $filename libreoffice --headless --invisible --convert-to pdf $filename /usr/local/bin/libreoffice --headless --invisible --convert-to pdf $filename |
You will now have to make it executable. You can do this two ways:
- Find the ppt-2-pdf.sh and right-click on it and open the property's dialog and make it executable.
- If you are in your shell you can chmod it. $chmod +x ppt-2-pdf.sh The +x made it executable.
Now here it is in action:
harrison@Whirlwind /mnt/MyData/home/harrison/school/Design News $ ../../Desktop/ppt-2-pdf.sh This is a Power Point (ppt) to (pdf) looking for the form of *123.ppt not *.ppt Enter Filename: *1.ppt DN-CEC-Mastering-the-Embedded-Design-Cycle-Day1.ppt convert /mnt/MyData/home/harrison/school/Design News/DN-CEC-Mastering-the-Embedded-Design-Cycle-Day1.ppt -> /mnt/MyData/home/harrison/school/Design News/DN-CEC-Mastering-the-Embedded-Design-Cycle-Day1.pdf using filter : impress_pdf_Export Overwriting: /mnt/MyData/home/harrison/school/Design News/DN-CEC-Mastering-the-Embedded-Design-Cycle-Day1.pdf |
Keep Tuned in, More to Come
UPDATE 9JUN2k16:
I have a /usr/local/scripts file and that's where I put it. but it didn't work
I had to change the last line
FROM: libreoffice --headless --invisible --convert-to pdf $file
TO: /usr/local/bin/libreoffice --headless --invisible --convert-to pdf $filename
Top Comments