Aufruf des Druckmoduls als Kommandozeilenprogramm

  Windows:
    xPrinter.cmd
      -FORMULAR fofile [-DATA xmlfile] -PRINT outprinter | default | dialog
      -FORMULAR fofile [-DATA xmlfile] -PDF outfile
      -FORMULAR fofile [-DATA xmlfile] -RTF outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -HTML outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -GIF outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -BMP outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -PIC outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -PNG outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -TGA outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] [-COMPRESSION mode] -TIF outfile
      -FORMULAR fofile [-DATA xmlfile] -FO outfile
      -FORMULAR fofile [-DATA xmlfile] -PS outfile
      -FORMULAR fofile [-DATA xmlfile] -PCL outfile
      -FORMULAR fofile [-DATA xmlfile] -TEXT outfile
      -FORMULAR fofile [-DATA xmlfile] -XML outfile
      -FORMULAR fofile [-DATA xmlfile] -SVG outfile

  Unix:
    xPrinter.sh
      -FORMULAR fofile [-DATA xmlfile] -PRINT outprinter | default | dialog
      -FORMULAR fofile [-DATA xmlfile] -PDF outfile
      -FORMULAR fofile [-DATA xmlfile] -RTF outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -HTML outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -GIF outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -BMP outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -PIC outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -PNG outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] -TGA outfile
      -FORMULAR fofile [-DATA xmlfile] [-DPI dpi] [-COMPRESSION mode] -TIF outfile
      -FORMULAR fofile [-DATA xmlfile] -FO outfile
      -FORMULAR fofile [-DATA xmlfile] -PS outfile
      -FORMULAR fofile [-DATA xmlfile] -PCL outfile
      -FORMULAR fofile [-DATA xmlfile] -TEXT outfile
      -FORMULAR fofile [-DATA xmlfile] -XML outfile
      -FORMULAR fofile [-DATA xmlfile] -SVG outfile



Dieser Befehl füllt ein einzelnes Dokument mit Daten und druckt oder konvertiert es. Der erste Parameter muss das Eingabedokument im Formatting- Objects- Format sein.
Optional kann mit '-DATA ' ein Eingabedatenstrom angegeben werden, der in das Formular eingemischt wird (für das Format des Eingabestroms kann im Designer mit dem Menüpunkt 'Beispieldaten exportieren' ein Template erzeugt werden).
Des Weiteren wird eine Ausgabedatei (bei allen Dateiformaten) oder ein Drucker (einer der mit showPrinter ermittelten Drucker) benötigt. Als Drucker kann auch 'default' oder 'dialog' angegeben werden. Bei 'default' wird auf den voreingestellten Drucker ausgegeben. Bei 'dialog' wird der Druckdialog des Systems angeboten, in dem ein Drucker ausgewählt werden kann.
Der Parameter '-DPI', der bei Html- oder Imageausgabe gesetzt werden kann, dient dazu die Bildgröße zu bestimmen. Um im Browser angezeigt zu werden ist in der Regel ein Wert von 144 oder 100 sinnvoll. Der Parameter -COMPRESSION bestimmt die Komprimierung für TIFF- Generierung M”gliche Modi sind: 0=unkomprimiert, 1=Group3 1D, 2=Group3 2D, 3=Group4 3D, 5=Jpeg ttn2, 6=Packbits.


Beispiel:
  rnPrinter.cmd -FORMULAR c:/Temp/test.fo -DATA c:/Temp/data.xml -PDF c:/Temp/result.pdf
oder
  rnPrinter.cmd -FORMULAR c:/Temp/test.fo -DATA c:/Temp/data.xml -PRINT "Printername"

oder
  rnPrinter.cmd -FORMULAR c:/Temp/test.fo -DATA c:/Temp/data.xml -TIF c:/Temp/result.tif -DPI 300 -COMPRESSION 3
Siehe auch:
  - Übersicht
  - showPrinter