olefs

command line tools to extract data from OLE documents like doc, ppt, xls, msg
git clone https://logand.com/git/olefs.git/
Log | Files | Refs

commit 4bf4078f1f14376874ae6804e5cadc62925e3001
parent eb117a980e2fa75c0495dfcf193aaee474a6f48f
Author: Tomas Hlavaty <tom@logand.com>
Date:   Mon, 27 Jun 2011 21:26:55 +0200

pptdump.sh and pptview.sh added

Diffstat:
Apptdump.sh | 12++++++++++++
Apptview.sh | 4++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/pptdump.sh b/pptdump.sh @@ -0,0 +1,12 @@ +#!/bin/sh +FILE=$(realpath $1) +DIR=$2 +FS=$(mktemp -d -q /tmp/pptdump-XXXXXX) +PIC=$(mktemp -d -q /tmp/pptdump-XXXXXX) +cfbfs "$FILE" "$FS" +odrawfs "$FS/Root Entry/Pictures" "$PIC" +ppt2html "$FS/Root Entry/PowerPoint Document" >"$DIR/index.html" +cp "$PIC"/* "$DIR" +fusermount -u "$FS" +fusermount -u "$PIC" +rmdir "$FS" "$PIC" diff --git a/pptview.sh b/pptview.sh @@ -0,0 +1,4 @@ +#!/bin/sh +DIR=$(mktemp -d -q /tmp/pptview-XXXXXX) +pptdump.sh "$1" "$DIR" +gnome-open "$DIR"/index.html