<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <meta name="generator" content=
    "HTML Tidy for Linux/x86 (vers 1st February 2002), see www.w3.org">
<style type="text/css">
<!--
  pre { font-family:monospace,Courier }
  pre.code { font-family:monospace,Courier;background-color:#aedbe8; }
  p.code { width:80%; alignment:center; background-color:#aedbe8; 
        border-style:none; border-width:medium; border-color:#aedbe8; 
        padding:0.1cm ; text-align:left }
-->
  
</style>

    <title></title>
  </head>

  <body>
    <h1>Truc LF: Utiliser Acrobat 7 avec KDE et kprinter</h1>

    <h4>ArticleCategory: [Choose a category, translators: do not
    translate this, see list below for available categories]</h4>
    SystemAdministration 

    <h4>AuthorImage:[Here we need a little image from you]</h4>
    <img title="Dat is me :)" src=
    "../../common/images2/GerritRenker.jpg" alt="Gerrit photo"
    width="100" height="122"> 

    <h4>TranslationInfo:[Author + translation history. mailto: or
    http://homepage]</h4>

    <p>original in en <a href=
    "nospam:gerrit.renker(at)gmx.de">Gerrit Renker</a></p>
    <p>en to fr <a href="nospam:kouran(at)linuxmail.org">Laurent Richard</a></p>

    <h4>AboutTheAuthor:[A small biography about the author]</h4>
    Gerrit avait horreur des ordinateurs avant qu'il ne connaisse le C et Linux. 

    <h4>Abstract:[Here you write a little summary]</h4>
    Voici une petite astuce. A partir de maintenant, il y en aura au moins une 
tous les mois dans LinuxFocus. Si vous avez des idées pour une nouvelle astuce, 
envoyez-la à guido("at" sign)linuxfocus.org

     

    <h4>ArticleIllustration:[One image that will end up at the top
    of the article]</h4>
    <img alt="[Illustration]" src="../../common/images2/lftip_ideatux.jpg" hspace="10" width="163" height="198"> 

    <h4>ArticleBody:[The main part of the article]</h4>

    <h2>Problem</h2>
    Acrobat 7, qui se trouve être une chouette visionneuse de PDF est enfin 
disponible. Malheureusement, lors de l'impression, elle supprime le fichier de sortie
avant que le système de KDE (kprinter) ne termine le travail d'impression. 

    <h2>Solution</h2>
    Mettre un script entre acroread et kprinter. Ce script va créer un fichier 
temporaire pour la sortie postscript et le supprimer ensuite. 
<pre class="code">
#!/bin/sh
# enregistrez-le sous /usr/local/bin/printerScript
# et rendez-le exécutable avec : chmod 755 /usr/local/bin/printerScript
## crée le fichier temporaire
tmp="/tmp/postscript-print-$$.ps"
[ -f "$tmp" ] &amp;&amp; exit 1
## sauvegarde le fichier sous un nouveau nom qui ne sera pas supprimé par
acroread.
## le premier argument est le nom du fichier du fichier postscript
cp  "$1"  $tmp
## lance l'interface d'impression de KDE sur ce fichier
kprinter  $tmp
## nettoyage après coup
rm -f     $tmp
##
</pre>
    Voici une capture d'écran du panneau de configuration de l'imprimante dans
acroread :
    <br>
<center>
    <img alt="[acroread printer config panel]" src="../../common/images2/article380.png" hspace="10" title="panneau de configuration de l'imprimante dans acroread" width="359" height="462"> <br>
</center>
  </body>
</html>

