LF tip: Using Acrobat 7 with kde and kprinter
ArticleCategory: [Choose a category, translators: do not
translate this, see list below for available categories]
AuthorImage:[Here we need a little image from you]
TranslationInfo:[Author + translation history. mailto: or
original in en Gerrit Renker
AboutTheAuthor:[A small biography about the author]
Gerrit didn't like any computers at all until he tried C and
Abstract:[Here you write a little summary]
This is a small tip. From now on LinuxFocus will have at least
one new tip every month. If you have some ideas for a new tip
then send them to guido("at"sign)linuxfocus.org
ArticleIllustration:[One image that will end up at the top
of the article]
ArticleBody:[The main part of the article]
Acrobat 7 is available and is a nice PDF viewer.
Unfortunately, when printing it removes the output file before
the KDE system (kprinter) has completed the print job.
Put a script in between which creates a temporary file for the
postscript output and removes it afterwards.
# save this as /usr/local/bin/printerScript
# and make it executable with: chmod 755 /usr/local/bin/printerScript
## create temporary file
[ -f "$tmp" ] && exit 1
## save the file to a new name which will not be deleted by acroread.
## the first argument is the file name of the postscript file
cp "$1" $tmp
## start the KDE printer frontend on this file
## clean up afterwards
rm -f $tmp
Here is a screenshot of the printer config panel in acroread: