File: help_printcmd.txt

package info (click to toggle)
pfm 1.5.4-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 2,952 kB
  • ctags: 500
  • sloc: sh: 6,071; sql: 4,835; tcl: 3,230; makefile: 28
file content (57 lines) | stat: -rw-r--r-- 2,403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
The print command issued by pfm when printing reports or results from
queries.

It must be a command that calls an application that accepts plain text
as input. It can be either a printer program that directly sends the
text to a printer, or a text editor or word processor that accepts the
text generated by pfm as input and that offers you the possibility to
choose things such as font, font size, margins, page orientation
etc. before sending it to a printer from there on.

'%s' in the command is a placeholder for the name of the temporary
file in which pfm stores the text to be printed. If the command does
not contain '%s', pfm does not use a temporary file and sends the text
to the 'standard input' of the application being called (works only on
UNIX with certain applications such as lpr, a2ps, etc.)

The command may also contain parameters for which the user is prompted
to provide a value when the command is called. The syntax is as
follows:

$(parameter_name=default_value)

where '=default_value' is optional.

Examples:

    - UNIX: a2ps --printer=display --$(portrait_or_landscape=portrait) 
            --rows=$(nr-of-rows=1) --columns=$(nr-of-columns=1)
            --major=rows --chars-per-line=$(nr_of_chars_per_line=90)
            --center-title=$(title=Report)

            This command accepts text on 'standard input' (no '%s' in
            command) and it contains several paramters such as
            'nr-of-chars-per-line', for wich the user can provide
            values when the command is called.

    - Windows:

      {C:/Program Files/Windows NT/Bureau-accessoires/wordpad.exe} %s

            Since the command contains '%s', pfm creates a temporary
            text file containing the text to be printed and then lets
            'Wordpad' load that temporary file. In Wordpad you can
            then choose the font, margin, page orientation etc.

            Remark the curly braces enclosing the full filename of
            wordpad.exe. They are necessary because of the spaces
            within the filename.

            Notes:

               - This command is also the default for Windows
                 platforms, but the full filename may differ from
                 system to system. Use the 'Paste filename' button to
                 paste a new filename into the option.

               - Use '/' instead of '\' as directory name separator.