[Gllug] PDF creation
Mark Preston
mark at markpreston.co.uk
Thu Jun 25 22:33:34 UTC 2009
On Wed, Jun 24, 2009 at 11:21:30AM +0100, John Winters wrote:
> Can you provide any pointers on how to get started using OOo in a headless
> way? I don't think I've come across any clues about how to do it and it
> could be useful.
Hi John,
I have a script that I've used to print a load of OpenOffice envelope
files that might be a useful example:
#!/bin/bash
DIRECTORY="/home/mark/Envelopes/"
for file in $DIRECTORY/*
do
soffice -pt "oj1" $file
echo "printed $file"
done
echo "Done."
exit 0
Can't remember where I came across it first, but it was years ago. It
should work for any OpenOffice files.
--
Regards,
Mark Preston
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list