If you want to have a nice easy way for using or existing word processor templates adding a stationary PDF - here is what you can do:
Preparations:
sudo apt-get install nautilus-actions
sudo apt-get install pdftk
Then create a new action as:
Path: /bin/sh
Parameters: /home/username/stationary.sh '%d/%f'
And here is the content of script stationary.sh (don't forget to make it executable):
#!/bin/sh
pdftk "$1" background /home/username/stationary.pdf output "$1.new.pdf"
if [ -f "$1.new.pdf" ]
then
rm -f "$1"
mv "$1.new.pdf" "$1"
fi
And all what you need now is to put save your stationary as PDF to /home/username/stationary.pdf
Related post: Document file format, Virus scanning on Ubuntu.
1 comment:
With Ubuntu Karmic there came a change - at least it seems: When defining the parameters you need to omit the single quotation marks, so it must be:
/home/username/stationary.sh %d/%f
Post a Comment