Java Line2PDF Plus Command Options

Command line syntax
java line2pdf [options] input-file output-file

For example:

  • For Windows: java line2pdf c:\linedata.txt c:\linedata.pdf
  • For other operating systems: java line2pdf /linedata.txt /linedata.pdf

or
java line2pdf [options] output-file < input-file 

For example:

  • For Windows: java line2pdf c:\linedata.pdf < c:\linedata.txt
  • For other operating systems: java line2pdf /linedata.pdf < /linedata.txt

Options:

—g
Specifies an input configuration file that defines channels.
Usage note:
  • The first line of the channel control file is [CHANNEL INFO], followed by 12 entries consisting of numbers that specify the landing line number where “Skip to channel n" should print. Default values:
    [CHANNEL INFO]
    1
    7
    13
    19
    25
    31
    37
    43
    63
    49
    61
—r
Replaces existing output file.
    Note:
  • The Line2PDF Plus Transform does not overwrite an existing output file by default.

To determine the outlook of the PDF file:

—wNNN
Specifies the width of the page to NNN. The units of this parameter are 72 units per inch.
Default value: 612.
—hNNN
Specifies the height of the page to NNN. The units of this parameter are 72 units per inch.
Default value: 792.
—n nnn
Specifies the lines per page to nnn.
—s n.n
Specifies the line spacing.
Default value: 1.0.
—p nn
Specifies the font size.
Default value: 12.
—f fn
Specifies a font from the following list:
  • Courier
  • Courier-Bold
  • Courier-Oblique
  • Courier-BoldOblique
  • Helvetica
  • Helvetica-Bold
  • Helvetica-Oblique
  • Helvetica-BoldOblique
  • Symbol
  • Times-Roman
  • Times-Bold
  • Times-Italic
  • Times-BoldItalic
  • ZapfDingbats
Default value: Courier.
—b nn
Specifies the border size. The units of this parameter are 72 units per inch.
Default value: 20.
—m lm tm bm
Specifies the page margins: lm for left margin, tm for top margin and bm for bottom margin. The units of this parameter are 72 units per inch.

To determine the type, format and line break for the line data:

—x nnn
Selects the type of carriage control.
  • 0: no carriage control character
  • 2: ANSI
  • 3: ANSI with TRC
  • 4: Machine CC
  • 5: Machine CC with TRC
—l nnn
Specifies a fix line length, in characters or bytes, where nnn=one of [ 0 | positive number[,[char|byte]] | record ]

  1. If nnn=0 (default), new line characters is applied as line break.
  2. If nnn>0, each line has nnn chars or bytes. Default value is specified in chars.

    For example:

    —1 80,char
    —1 80,byte

  3. If nnn=[record | record+ | record-], variable length record apply:

    The first 2 bytes of the record indicate the record length.

    • If nnn specifies the record or record+, the record length includes the length of the first 2 bytes.
    • If nnn specifies the record-, the record length excludes the length of the first 2 bytes.

—a nnn
Selects a code page or data format, where nnn=one of [ASCII|EBDIC|UTF8|UTF16|codepage number].
Default: ASCII.
  • If ASCII is specified, 437 is used for the code page.
  • If EBCDEC is specified, 500 is used for the code page.
—lm nnn
Specifies the maximum line length to convert.

Other options:

—user pass
Specifies the user password.
    Note:
  • For an encrypted output, —user pass and —pw:psca pass options must be used together with bcprov-jdk15on-jar file version .jar. Make sure to add the full path of the jar file to CLASSPATH. See Java Command Line for more information on setting CLASSPATH.
—pw:psca pass
Protects data with password and security flags.
a
Adds or modifies text annotations and interactive form fields.
c
Modifies the document contents.
p
Prints the document.
s
Copies the text and graphics from the document.
—bglogo fn
Applies the logo/preprint form, where fn is the PDF file name.
    Note:
  • If Client and Server are running on different machines, the fn used with the -bglogo option must be a path or a file name, or both, located on the Server machine, not on the Client machine.
—bglogo +''matrix'' fn
Applies matrix to logo/preprint form (6 numbers).
tm1 tm2 tm3 tm4 tm5 tm6

Specifies the linear transformation matrix values that define the origin, rotation, or scale of the appended PDF file. For example:

1 0 0 1 ox oy
Specifies origin changes, where:
ox
Specifies the distance to translate the horizontal dimension.
oy
Specifies the distance to translate the vertical dimension.
sx 0 0 sy 0 0
Specifies scaling changes, where:
sx
Specifies the scale factor (1.0-100%) for the horizontal direction.
sy
Specifies the scale factor (1.0-100%) for the vertical direction.
cos θ sin θ –sin θ cos θ 0 0
Specifies rotation changes by an angle θ counterclockwise.

The origin for this operation is the bottom left-hand corner of the page.

—bglogo: range fn
Specifies individual pages or a range of pages to apply the logo/preprint form.
The range value can include individual page numbers or a range of pages.
  • To separate pages and page ranges, use commas.
  • To specify a range of pages, use a hyphen between the first and last page.

    For example: 1,150,212-240,332.

—bglogo: range +''matrix'' fn
Specifies individual pages or a range of pages to apply the matrix to logo/preprint form.
For more information, see —bglogo +''matrix'' fn and —bglogo: range fn.

Return code
0: if no error.
Other numbers: if any error occurs.