<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="commandline" xml:lang="fr">

  <info>
    <link type="guide" xref="index#advanced"/>
    <title type="sort">Ligne de commande</title>
    <desc>La commande <cmd>papers</cmd> peut ouvrir n’importe quel nombre de fichiers, à la page désirée et dans divers modes.</desc>
    <revision pkgversion="3.2" version="0.1" date="2011-09-05" status="final"/>
    <revision pkgversion="3.24" version="0.2" date="2017-09-17" status="final"/>
    <credit type="author">
      <name>Phil Bull</name>
      <email>philbull@gmail.com</email>
    </credit>
    <credit type="editor">
    <name>Tiffany Antopolski</name>
    <email>tiffany@antopolski.com</email>
    </credit>
    <license>
      <p>Creative Commons Paternité-Partage des Conditions Initiales à l’Identique 3.0</p>
    </license>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Jonathan Ernst</mal:name>
      <mal:email>jonathan@ernstfamily.ch</mal:email>
      <mal:years>2006, 2007</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Claude Paroz</mal:name>
      <mal:email>claude@2xlibre.net</mal:email>
      <mal:years>2006-2008</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Bruno Brouard</mal:name>
      <mal:email>annoa.b@gmail.com</mal:email>
      <mal:years>2011-2012</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Mickael Albertus</mal:name>
      <mal:email>mickael.albertus@gmail.com</mal:email>
      <mal:years>2012-2013</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Michael Scherer</mal:name>
      <mal:email>misc@zarb.org</mal:email>
      <mal:years>2014</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Leonor Palazzo</mal:name>
      <mal:email>leonor.palazzo@gmail.com</mal:email>
      <mal:years>2015</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Guillaume Bernard</mal:name>
      <mal:email>associations@guillaume-bernard.fr</mal:email>
      <mal:years>2018</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>J-Paul Bérard</mal:name>
      <mal:email>arverne@wanadoo.fr</mal:email>
      <mal:years>2019</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Charles Monzat</mal:name>
      <mal:email>charles.monzat@free.fr</mal:email>
      <mal:years>2020-2021</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Irénée Thirion</mal:name>
      <mal:email>irenee.thirion@e.email</mal:email>
      <mal:years>2023-2025</mal:years>
    </mal:credit>
  </info>

<title>La ligne de commande</title>
<p>
To start <app>Document Viewer</app> from the command line, type <cmd>papers</cmd>. You
can open a specific file by typing the filename after the papers command:
</p>

<screen>papers fichier.pdf</screen>
<p>Vous pouvez ouvrir plusieurs fichiers en saisissant les noms des fichiers après la commande <cmd>papers</cmd>, en les séparant par un espace :</p>
<screen>papers fichier1.pdf fichier2.pdf</screen>
<p>
<app>Document Viewer</app> also supports the handling of files on the web.  For example, after the papers command you can give the location of a file on the web:
</p>
<screen>papers http://www.claymath.org/millennium/P_vs_NP/pvsnp.pdf</screen>
<section id="open">
    <title>Ouverture d’un document à une page précise</title>
    <p>Vous pouvez utiliser l’option <cmd>--page-label</cmd> pour ouvrir un document à une page précise. Par exemple, pour ouvrir un document à la page 3, vous devez saisir :</p>
    <screen>papers --page-label=3 fichier.pdf</screen>
    <p>
    The page label should be in the same format as the page number displayed in
    the <app>Document Viewer</app> header bar.
    </p>
</section>
<section id="fullsreen">
    <title>Ouverture d’un document en mode plein écran</title>
    <screen>papers --fullscreen fichier.pdf</screen>
</section>
<section id="presentation">
    <title>Ouverture d’un document en mode présentation</title>
    <screen>papers --presentation fichier.pdf</screen>
</section>
<section id="preview">
    <title>Ouverture d’un document en mode prévisualisation</title>
    <screen>papers --preview fichier.pdf</screen>
</section>
</page>
