This script converts a PDF file containing slides for a presentation into the OpenDocument Presentation format (.odp).
pdf2ooimpress [--size=NNNxMMM] inputfile.pdf outputfile.odp
(default size is 1024x768 pixels)
The pdf2ooimpress
script uses the modules Getopt::Long
, File::Temp
,
OpenOffice::OODoc
, Image::Magick
, and PDF::API2
. The first two are
standard in Perl and the later three can be installed like this, in
Debian-based distributions:
apt install libimage-magick-perl
apt install libopenoffice-oodoc-perl
apt install libpdf-api2-perl
make install
The pdf2ooimpress
script is installed by default into /usr/local/bin
.
Another destination directory can be specified like this:
make BINDIR=/path/to/installation/directory install
Based on a script written by K.-H. Herrmann June 2005 (https://linuxgazette.net/116/misc/herrmann/img2ooImpress.pl.txt)
Thanks to Ben Okopnik for the suggestions to improve this script.
Copyright (C) 2018, 2019 Rafael Laboissiere ([email protected])
Released under the GNU General Public License, version 3 or later. No warranties.