Anda di halaman 1dari 356

bc

Adobe Central Output Server


Version 5.7

Print Agent Reference


for Microsoft Windows

Print Agent Reference for Microsoft Windows


Edition 13.0, March 2009
2009 Adobe Systems Incorporated
All rights reserved.
As of April 12, 2002, Accelio Corporation (formerly JetForm Corporation) was purchased by Adobe Systems Incorporated. As of that
date, any reference to JetForm or Accelio shall be deemed to refer to Adobe Systems Incorporated.
Technical information contained herein is subject to change without notice.
The use and copying of this product are subject to a license agreement. Any other use is prohibited. No part of this publication may
be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form by any means without
the prior written consent of Adobe Systems Incorporated. Information in this publication is subject to change without notice and does
not represent a commitment on the part of the vendor. Any reference to company names, persons, or data in this documentation is
for demonstration purposes only and is not intended to refer to any actual organization, person, or data.
Adobe Systems Incorporated does not warrant that Adobe Central Output Server will function properly in every hardware/software
environment.

Trademarks
Adobe, Reader, and PostScript are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States
and/or other countries.
Apple and Macintosh are trademarks of Apple Computer, Inc., registered in the United States and other countries.
Hewlett-Packard and HP are registered trademarks of Hewlett-Packard Company.
Microsoft, Windows, MS-DOS, and OpenType are either registered trademarks or trademarks of Microsoft Corporation in the United
States and/or other countries.
UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd.
All other product names are trademarks or registered trademarks of their respective trademark holders.

Contents
1

Overview.......................................................................................................... 13
Print Agent Output ........................................................................................................... 14
Print Agent Commands ................................................................................................... 15
Print Agent Samples........................................................................................................15
Related Documentation ................................................................................................... 15
About This Guide............................................................................................................. 16

Configuring Print Agent ................................................................................. 17


Downloaded Templates Cache ....................................................................................... 20
Print Agent Configuration File..........................................................................................21

Running Print Agent ....................................................................................... 22


JFMERGE Task Table Entry ........................................................................................... 23
Return Parameters.................................................................................................... 26

Print Agent Processing .................................................................................. 27


Data Formats................................................................................................................... 27
Field-Nominated Format ........................................................................................... 27
Example of Field-Nominated Processing ........................................................... 29
Extensible Markup Language (XML)......................................................................... 32
Example of XML Processing .............................................................................. 34
Mixed Symbol Set Processing......................................................................................... 36
Just-in-Time Macro Processing ....................................................................................... 36
Just-in-Time Font Processing..........................................................................................37
Server Licensing for Fonts............................................................................................... 37
Multiple Currency Support ............................................................................................... 38
Using Generic Presentment Targets ............................................................................... 39
Global Field Processing................................................................................................... 40
Outputting Global Data Using an XML Data File.......................................................42
PDF Output......................................................................................................................42
Considerations for PDF Output ................................................................................. 42
Creating PDF Output.................................................................................................43
Setting Initial Display Values for PDF Output............................................................ 44
Adding Security Features to PDF Output.................................................................. 44
Graphic Considerations for PDF Output ................................................................... 44
Creating Bookmarks for PDF Output ........................................................................ 45
PDF Example ............................................................................................................ 47
Staple Document Support ............................................................................................... 52
Defining Custom Finish Options ...................................................................................... 53
Printing Using Custom Finish Options ...................................................................... 55
Collation Support ............................................................................................................. 56
Print Agent Dictionaries ................................................................................................... 57

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

DocVar Dictionary ..................................................................................................... 57


Environment Dictionary ............................................................................................. 58
Fax Dictionary ........................................................................................................... 58
Global Dictionary....................................................................................................... 59
Group Dictionary ....................................................................................................... 60
INI Dictionary............................................................................................................. 60
Sys Dictionary ........................................................................................................... 61
User Dictionary.......................................................................................................... 61
Security Considerations................................................................................................... 62

Command Line Options ................................................................................. 63


Command Line Syntax .................................................................................................... 63
Format Options................................................................................................................ 64
Field-Nominated Format ........................................................................................... 64
XML Format .............................................................................................................. 64
Fixed Record Format ................................................................................................ 64
-d (Comma-Delimited Format) .................................................................................. 65
Processing Options ......................................................................................................... 65
-aafgd (Allow Field Global Data) ............................................................................... 66
-aafge (Allow Field Global Events)............................................................................66
-aafgfd (Allow Field Global Flag Data) ...................................................................... 66
-aap (Print All Pages) ................................................................................................ 66
-aat (Use Printer Association Table) ......................................................................... 67
-abmk (Bookmark File).............................................................................................. 68
-abms (Bookmark Section)........................................................................................ 69
-acollate (Collate Output) ..........................................................................................69
-acs (Century Split) ................................................................................................... 69
-acu (Currency Formatting) ....................................................................................... 70
cs (Currency Symbol) ......................................................................................... 71
cc (Thousands Separator) .................................................................................. 71
cd (Decimal Separator)....................................................................................... 72
cr (Credit Symbol)............................................................................................... 72
cic (Incoming Thousands Separator).................................................................. 72
cid (Incoming Decimal Separator) ...................................................................... 73
db (Debit Symbol)............................................................................................... 73
cp (Currency Parenthesis).................................................................................. 74
cl (Currency Symbol Location) ........................................................................... 74
-adp (Data Path)........................................................................................................74
-adu (Duplex Printing) ............................................................................................... 76
off........................................................................................................................ 76
on........................................................................................................................ 76
left....................................................................................................................... 77
long..................................................................................................................... 77
top....................................................................................................................... 78
short.................................................................................................................... 78
*ptrstring ............................................................................................................. 78
+encoded-ptrstring.............................................................................................. 79

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

-adv (Define Dictionary Variable) .............................................................................. 79


-aeb (Set Extended Barcode Processing)................................................................. 80
-afdf (Format Hard Disk Drive) .................................................................................. 81
-afinish (Specify Finish Option) ................................................................................. 81
-afmf (Format Nonvolatile Memory) .......................................................................... 82
-afp (Template Path) .................................................................................................82
-afr (Set Field Attributes) ........................................................................................... 84
-afx (Discard Unknown Fields) .................................................................................. 84
-agsb (Gray-scale Brightness) .................................................................................. 85
-agsc (Gray-scale Contrast) ...................................................................................... 85
-agsm (Gray-scale Method) ...................................................................................... 86
-agst (Gray-scale Threshold) .................................................................................... 86
-agv (Initialize Global Fields)..................................................................................... 87
-aifgf (Ignore Global Field Flag) ................................................................................ 87
-aii (Configuration File Name) ...................................................................................87
-aip (Start Print at Page Specified)............................................................................88
-aitc (Set Inline Text Control) .................................................................................... 88
-ajitf (Just-in-Time-Fonts) ..........................................................................................88
-ajitm (Just-in-Time Macros) ..................................................................................... 89
-ajutf (Just-in-Time Fonts) ......................................................................................... 89
-ajutm (Just-in-Time Macros) .................................................................................... 89
-all (Log File Name)................................................................................................... 89
-alp (Logo Path) ........................................................................................................91
-amaxeventloop (Maximum Event Loop) .................................................................. 92
-amaxicodeeol (MaxiCode End of Line Character) ................................................... 93
-amaxicodeifs (MaxiCode Input Field Separator)...................................................... 93
-amaxicodehdr (MaxiCode Message Header) .......................................................... 94
-amaxicodetrlr (MaxiCode Message Trailer) ............................................................. 95
-amaxpagestoprint (Maximum Surfaces to Print)...................................................... 95
-amq (Managed Memory Quota)............................................................................... 96
-ams (Macro Status Table File Location) .................................................................. 96
-anf (New Field Character)........................................................................................ 96
-anl (Alternate Newline Character)............................................................................97
-aob (Use Older Font Baseline) ................................................................................ 97
-aopl (Use Older Page Length) ................................................................................. 98
-apcc (Dynamic Merge Command Prefix Character) ................................................98
-apcd (Dictionary Name Separator Prefix Character) ............................................... 99
-apce (Event Name Separator Prefix Character) .................................................... 100
-apci (Inline Text Control Command Prefix Character) ........................................... 100
-apcv (Variable Substitution Prefix Character) ........................................................ 101
-apdf417bc53 (Newline Character Handling) .......................................................... 102
-apdf417conv (Data Symbol Set) ............................................................................ 102
-apdf417eol (End of Line Character)....................................................................... 103
-apdfm (Inline PDF Macros) .................................................................................... 103
-apdfallowadd (Allow Adding Content to a PDF Document) ................................... 104
-apdfallowcopy (Allow Copying of PDF Document) ................................................ 104
-apdfallowmod (Allow Modification of PDF Document) ........................................... 105

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

-apdfencryptionlevel (PDF Encyrption Level).......................................................... 106


-apdflock (Activate PDF Security Features) ............................................................106
-apdfowner (Allow Access to PDF Security Settings) ............................................. 107
-apdfprint (Allow Printing of PDF Document) .......................................................... 108
-apdfuser (Allow Access to PDF Document)........................................................... 108
-apdflayout (Specify PDF Initial Page Layout) ........................................................ 109
User Input Values ............................................................................................. 110
-apdfopentopage (Specify PDF Initial Page Number) ............................................. 110
-apdfzoom (Specify PDF Initial Page Magnification)............................................... 111
-apf (Picture Formatting) ......................................................................................... 111
-apg (Print Subset of Pages)................................................................................... 112
-apm (Print Fax Mode) ............................................................................................ 113
-apr (Preamble File) ................................................................................................ 113
-aqrcodeeol (End of Line Character)....................................................................... 114
-arc (Replace Characters)....................................................................................... 114
-arg (Reformat Global Field Data)........................................................................... 115
-arx (Response File)................................................................................................ 115
-asc (Skip Characters) ............................................................................................ 116
-asj (Secure Job)..................................................................................................... 116
-asl (Skip Lines) ......................................................................................................116
-asp (Select Presentment Target) ........................................................................... 117
-ass (Select Symbol Set)......................................................................................... 117
-atf (Trace File Name) ............................................................................................. 119
NumberPages Variable .................................................................................... 121
-ati (Input Tray)........................................................................................................ 121
-atj (Interpret Input Tray Numbers)..........................................................................124
-ato (Output Tray).................................................................................................... 124
-att (Translation Table File) ..................................................................................... 125
-auspsimbifs (USPS Intelligent Mail Barcode Input Field Separator)...................... 125
-autf8 (Convert Data to UTF-8) ............................................................................... 126
-autfss (Automatic Font Symbol Set Switching) ...................................................... 126
-auwp (Unicode Windows Printing) ......................................................................... 127
-avl (Set Variable Leading)...................................................................................... 128
f (Fixed Leading)...............................................................................................128
v (Variable Leading) ......................................................................................... 128
fv (Fixed Variable Leading)............................................................................... 128
-avnh (Hard Disk Volume Number) ......................................................................... 128
-avnr (Nonvolatile Memory Volume Number).......................................................... 129
-avs (Set Variable Substitution)............................................................................... 129
-axml (Process as XML).......................................................................................... 130
-axpf (Execute Preamble Upon Processing ^form) ................................................. 131
-axps (Execute Preamble at Start-up)..................................................................... 131
-axusetempfile (Use Temporary File)...................................................................... 132
-azc (Zebra Hex Indicator Character)...................................................................... 132
-c (Number of Copies)............................................................................................. 133
-f (File Name Override) ........................................................................................... 133
-i (Record Length Initial Value)................................................................................ 134

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

-j (Suppress Banner) ...............................................................................................134


-l (Template Already Loaded).................................................................................. 134
-m (Download Macro to Printer) .............................................................................. 135
-n (Event Trace Level)............................................................................................. 138
-p (Printer Offset) .................................................................................................... 139
-q (Quiet Download) ................................................................................................ 139
-r (Reformat Data) ................................................................................................... 139
yes ....................................................................................................................140
no...................................................................................................................... 143
fold....................................................................................................................144
off...................................................................................................................... 146
clip ....................................................................................................................148
trunc.................................................................................................................. 150
-s (Starting Page Number) ...................................................................................... 152
-v (Message Display) .............................................................................................. 152
-z (Direct Output)..................................................................................................... 153
@parmfile (Parameter File)..................................................................................... 157
XML Options.................................................................................................................. 158
-axattributes (Map Attributes).................................................................................. 158
-axaxsl (Apply XSLT Stylesheet)............................................................................. 159
-axcodepage (Specify Code Page) ......................................................................... 159
-axendgroupprefix (End Group Prefix) .................................................................... 161
-axexclude (Exclude Namespaces)......................................................................... 161
-axflatten (Suppress Data Groups) ......................................................................... 163
-axincrementalload (Incremental Loading).............................................................. 164
-axorder (Output Order) .......................................................................................... 164
-axrecord (Specify Records) ................................................................................... 167
-axstartgroupprefix (Start Group Prefix) .................................................................. 169
-axstartnode (Specify Start Node)........................................................................... 169
-axuseendgroup (End Group) .................................................................................170
-axuseformcommand (Use ^form Command) ......................................................... 171

Command Reference .................................................................................... 173


Dynamic Merge Commands .......................................................................................... 173
^unrecognized-command (Unrecognized Command)............................................. 174
^comment (Insert Comment in Data Stream).......................................................... 174
^continue (Continue Record Structure)...................................................................175
^copies (Number of Copies).................................................................................... 176
^currency (Currency Formatting) ............................................................................ 176
^data (Change Active Record Definition) ................................................................ 179
^datagroup begin (Begin Data Group) .................................................................... 179
^datagroup end (End Data Group)..........................................................................180
^define (Assign Value to Dictionary Variable) ......................................................... 180
^defineresolve (Assign Resolved Value to Variable) ..............................................182
^duplex (Duplex Printing) ........................................................................................182
^eject (Send Formfeed to Printer) ........................................................................... 183
trayin................................................................................................................. 183

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

trayout............................................................................................................... 183
duplex ............................................................................................................... 184
^fax (Fax Data)........................................................................................................ 184
^field (Move to Specific Field) .................................................................................188
^file (Include File in Data)........................................................................................189
^form (Open Template) ........................................................................................... 191
^global (Define Global Field)................................................................................... 193
^graph (Print Logo or Raster Image)....................................................................... 194
^group (Execute Specified Group) ..........................................................................198
^inline (Activate Inline Text Control Processing) .....................................................199
{on|off} .............................................................................................................. 199
[fixed|variable|fixed variable] ............................................................................ 200
[novarsub|varsub] ............................................................................................. 200
[freset|nofreset]................................................................................................. 201
^inlinegraphbegin (Graphic Image Follows) ............................................................201
^inlinegraphend (Graphic Image Ends)...................................................................203
^key (Specify Record Type) .................................................................................... 203
^macro (Insert Macro at Current Position) .............................................................. 204
^newfield (New Field Character) ............................................................................. 204
^page (Move to New Page in Template)................................................................. 205
trayin................................................................................................................. 205
trayout............................................................................................................... 206
duplex ............................................................................................................... 206
^passthru (Send Data Directly to Output) ............................................................... 206
^popsymbolset (Restore Saved Symbol Set).......................................................... 207
^position (Change Placement of Data) ...................................................................207
[absolute] .......................................................................................................... 211
up|down ............................................................................................................ 213
relative .............................................................................................................. 214
left|right .............................................................................................................215
restore .............................................................................................................. 215
save .................................................................................................................. 215
^prefix (Prefix Character) ........................................................................................216
x........................................................................................................................ 216
dictvar x ............................................................................................................ 217
inline x .............................................................................................................. 217
varsub x ............................................................................................................ 218
^pushsymbolset (Save Current Symbol Set) .......................................................... 218
^record (Define Record Structure) ..........................................................................219
^reformat (Reformat Data) ...................................................................................... 220
^shell (Invoke an Operating System Command).....................................................220
^subform (Activate Subform)................................................................................... 221
^symbolset (Select Symbol Set) ............................................................................. 222
^tab (Set or Clear Horizontal Tab Stops) ................................................................ 225
[default].............................................................................................................225
[default] clear .................................................................................................... 226
^terminator (Alternate Newline Character).............................................................. 226

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

^trace (Trace Facility).............................................................................................. 227


^trayin (Input Tray) .................................................................................................. 227
^trayout (Output Tray) ............................................................................................. 230
^undefine (Clear Defined Variables) ....................................................................... 231
^$page (Page Number)........................................................................................... 231
Inline Text Control Commands ...................................................................................... 232
Syntax ..................................................................................................................... 232
\b (Set Bold Font) .................................................................................................... 235
\c (Select Color by Index Number) ..........................................................................235
\cn (Select Color by Name) ..................................................................................... 236
\dn (Lower Text from Baseline) ............................................................................... 237
\f (Select Font by Index Number) ............................................................................ 237
\fn (Select Font by Name) ....................................................................................... 238
\freset (Reset Field Attributes) ................................................................................ 238
\fs (Adjust Font Size)...............................................................................................239
\i (Set Italics Font) ................................................................................................... 239
\li (Indent Left Margin to Next Tab Stop) ................................................................. 240
\n (Insert Newline Character) .................................................................................. 240
\nofreset (Retain Field Attributes) ........................................................................... 241
\normal (Set Style Attributes Off) ............................................................................ 241
\off (Suspend Inline Text Control Processing)......................................................... 241
\on (Resume Inline Text Control Processing) ......................................................... 242
\pic (Picture Formatting).......................................................................................... 242
Date and Time Picture Specifiers ..................................................................... 245
Date Formats.................................................................................................... 247
Numeric Picture Specifiers ............................................................................... 248
Text Picture Specifiers...................................................................................... 250
Design Time Picture Clauses and \pic.............................................................. 251
Advanced Functions ......................................................................................... 251
\plain (Field Default Font)........................................................................................252
\pop (Restore Saved Font)...................................................................................... 252
\push (Save Current Font)....................................................................................... 252
\strike (Set Strikethrough) ....................................................................................... 253
\t (Move to Next Tab Stop) ...................................................................................... 253
\u+ (Insert Unicode Code Point).............................................................................. 254
\ui (Unindent Left Margin to Previous Tab Stop) .....................................................254
\ul (Set Underlining) ................................................................................................ 255
\up (Raise Text from Baseline)................................................................................ 255
Intelligent Pagination Commands.................................................................................. 256
\checksurface (Duplex Mode and Surface) ............................................................. 257
\defineresolve (Assign Resolved Value to Variable) ............................................... 258
\field (Move to Specific Field) .................................................................................. 259
\form (Open Template)............................................................................................ 260
\graph (Print Logo or Raster Image) ....................................................................... 262
\group (Execute Specified Group)........................................................................... 266
\page (Move to New Page in Template).................................................................. 267
trayin................................................................................................................. 267

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

10

trayout............................................................................................................... 268
duplex ............................................................................................................... 268
\position (Change Placement of Data) .................................................................... 268
[absolute] .......................................................................................................... 273
up|down ............................................................................................................ 274
relative .............................................................................................................. 275
left|right .............................................................................................................277
restore .............................................................................................................. 277
save .................................................................................................................. 277
\reserve (Reserve Space for Subform) ...................................................................278
n........................................................................................................................ 278
subform.............................................................................................................279
\subform (Activate Subform) ................................................................................... 279
\trace (Trace Facility) .............................................................................................. 280
\$page (Page Number)............................................................................................ 280
Variable Substitution......................................................................................................281
@variable (Replace a Variable) .............................................................................. 282
$currentx (Current Horizontal Position) ............................................................282
$currenty (Current Vertical Position) ................................................................ 282
$date (Current Date)......................................................................................... 283
$duplexsurface (Duplex Mode and Surface) .................................................... 284
$ffile (Current Path and File Name).................................................................. 286
$fieldx (Horizontal Distance to Field)................................................................ 286
$fieldy (Vertical Distance to Field) .................................................................... 286
$file (Current File Name) .................................................................................. 287
$page (Current Page Number) ......................................................................... 287
$printablebottomy (Bottom of Printable Area) .................................................. 288
$printableleftx (Left Limit of Printable Area) .....................................................288
$printablerightx (Right Limit of Printable Area) ................................................. 288
$printabletopy (Top of Printable Area).............................................................. 289
$time (Current Time) ........................................................................................289
fieldname (Global Field) ................................................................................... 290
{[dictionary-name]:}variable-name (Retrieve Variables from Dictionary) .......... 290
Special Variables .................................................................................................... 291
Calculation Expressions ................................................................................................ 292

Symbol Set Translation Tables ................................................................... 304

Intelligent Pagination ................................................................................... 306


Defining Groups and Events.......................................................................................... 307
Using Group Names That Start With !..................................................................... 308
The Group Dictionary .................................................................................................... 308
Group Event Handlers ................................................................................................... 309
groupname!DuplexBack (At Duplex Page Back) .................................................... 309
groupname!DuplexFront (At Duplex Page Front).................................................... 309
groupname!FldNotAvail (Field Not Available) ......................................................... 309
groupname!FldUsed (Field Used) ........................................................................... 310
groupname!OnBOF (At Bottom of Page) ................................................................ 311

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Contents

11

groupname!OnEntry (At Activation of Group) ......................................................... 311


groupname!OnExit (At Exit Current Group) ............................................................311
groupname!OnTOF (At Top of Page)...................................................................... 312
groupname!Simplex (At Simplex Mode).................................................................. 312
JfEndData!EndData (End Data Processing) ........................................................... 312
Field Event Handlers ..................................................................................................... 312
fieldname!FldUsed (Field Used).............................................................................. 313
fieldname!Format (Field Formatting)....................................................................... 313
fieldname!OnOverflow (Field Overflow) .................................................................. 315
fieldname!FldNotAvail (Field Not Available)............................................................316
!Replace! (Replace Line) ...............................................................................................316
End-of-Page Conditions ................................................................................................ 318

Numeric Character Values ........................................................................... 319


Single-Character Options .............................................................................................. 319
Printer Strings................................................................................................................321

Special Characters ....................................................................................... 322


` (New Field) ..................................................................................................................322
^ (Dynamic Merge Command Prefix)............................................................................. 322
: (Dictionary Name Separator)....................................................................................... 322
! (Event Name Separator).............................................................................................. 323
\ (Inline Text Control Command Prefix) ......................................................................... 323
@ (Variable Substitution Prefix) .................................................................................... 323
~ (Alternate Newline) ..................................................................................................... 324
Ctrl+A (Forced Space)................................................................................................... 324

Label Printers ................................................................................................ 325


Datamax Label Printers ................................................................................................. 325
All Datamax Label Printers...................................................................................... 325
Datamax DMX600................................................................................................... 326
Datamax Titan 6200................................................................................................ 326
Datamax Prodigy..................................................................................................... 326
Datamax Prodigy Plus............................................................................................. 326
Intermec Label Printers ................................................................................................. 327
TEC Label Printers ........................................................................................................ 328
Zebra Label Printers ......................................................................................................331
All Zebra Label Printers........................................................................................... 331
Zebra Stripe ............................................................................................................ 332
Zebra 170................................................................................................................ 332
Zebra 170 XiII.......................................................................................................... 332

Printing EAN-128 Barcodes ......................................................................... 333


Serial Number Application Identifier (with its data) ....................................................... 333
Production Date.............................................................................................................334
Purchase Order Number ...............................................................................................335

UPS Maxicode 2D Barcodes ........................................................................ 336

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

12

USPS Intelligent Mail Barcodes................................................................... 339


Index .............................................................................................................. 341

Overview
Print Agent, the output component of Adobe Central Output Server (Central), uses intelligent
merge technology to enable applications to output data, merged with electronic templates.
Output can be in print format, fax format, or PDF format. Central launches Print Agent when
one of the processing steps in a job involves an output task.
To output documents, Print Agent requires:

A transaction file. You can provide data to Print Agent from any application that can create
transaction files with a data format acceptable to Print Agent. See page 27 for the
acceptable data formats. Alternatively, if you have transaction files in a data format not
acceptable to Print Agent, you can use Transformation Agent to transform them to an
acceptable format. For details, see the guide, Advanced Transformations.

A template. The templates used by Print Agent must be created and compiled using Adobe
Output Designer. For details, see the guide, Developing Templates, which accompanies
your Output Designer software.

Command line options describing the required processing. Print Agent can run with a default
set of command line options from its configuration file. Options overriding those in the
configuration file can be included in the transaction file or included on the command line
used to launch Print Agent. For Print Agent command line options, see the chapter
Command Line Options on page 63.

This diagram shows the Print Agent process.


Print Agent Process

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Overview

14

PRINT AGENT OUTPUT


Print Agent outputs data in three formats: print, fax, and PDF. You choose the output format
when you compile your template in Output Designer:

For print output, compile the template for one or more printer presentment targets.

For fax output, compile the template for one or more fax presentment targets.

For PDF output, compile the template for the PDF presentment target.

At output time, use the -asp option (see page 117) to direct the output to a presentment target
other than the default presentment target, and the -apm option (see page 113) to restrict output
to either a printer or fax presentment target.
For fax output, either the transaction file must include a ^fax command (see page 184) or the
command line must contain the faxing parameters.
For PDF output (see page 42), the output destination must be to a PDF file. Use the -abmk
(see page 68) and -abms (see page 69) options to include bookmarks in the PDF file.
PDF output can be passed to Preview Agent, which routes the PDF file to a users workstation
for viewing. For details, see the guide, Previewing Central Output.

Print Blank Template


Print Agent output can also be a blank copy of all the pages of your template. This occurs only
when you do not provide a transaction file name as a command line option. Print Agent simply
sends the template to the printer using the macro number compiled into the template at design
time. If you specify the -mnn option that identifies the starting macro number for the template,
Print Agent loads the template into the printer memory using the macro number, and prints the
template. If you also include the -q option on the command line, Print Agent loads the template
into the printer memory quietly, that is, the template does not print. The -l option tells Print
Agent that the template is already downloaded to the printer. Including the -l and -mnn options
on the command line cause Print Agent to print the blank template from the printer memory
using the macro number specified on the command line.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Overview

15

PRINT AGENT COMMANDS


In addition to the options you can specify on the command line, four sets of commands may be
included in the data stream to direct the activity of Print Agent as it processes a template page
or subform:

Dynamic Merge commands are the base upon which Print Agent processes a transaction
file. These commands control field and template sequencing, data formats, and the
appearance of the templates. Using Dynamic Merge commands, Print Agent can print
multipage templates, multipart templates, or can build a template dynamically using
subforms.

Inline Text Control commands are an advanced feature of Print Agent. They provide greater
control over formatting from within a data stream, and permit you to control template paging
at run-time, based on the needs of the data.

Intelligent Pagination commands control the pagination for a static or dynamic template.
When you use Intelligent Pagination, your data must be in either field-nominated or XML
format.

Variable Substitution commands make data more flexible, by enabling you to substitute
values for variables as the data processes. The values are supplied by Print Agent, based
on such things as date and time, and template and field attributes.

For a complete list of Print Agent commands, see Command Reference on page 173.

PRINT AGENT SAMPLES


A number of samples accompany your Print Agent software, in the directory ...\exprint. These
samples demonstrate the features and capabilities of Print Agent. The file Print_samples,
available in either .pdf or .txt format in the ...\exprint directory, lists the samples and the files
each uses.

RELATED DOCUMENTATION
The documentation set that accompanies Output Designer and Central includes the following
guides, which are relevant to developing applications for processing by Print Agent:

Developing Templates, which provides conceptual information for using Output Designer.

Previewing Central Output, which introduces Preview Agent and describes how to preview
Central output before finalization.

Integrating XML with Central, for a complete description of how XML data is translated.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Overview

16

ABOUT THIS GUIDE


This guide incorporates template design functionality related to both Output Designer and its
predecessor, JetForm Design. For ease of reference, Output Designer is a generic name that
refers to both Output Designer and JetForm Design.
As well as the new features listed in the Whats New document, there are additional changes
throughout the guide. These symbols draw your attention to new and updated topics.
New - indicates a new topic in the Print Agent Reference guide.

W
NE

E
AT
PD

Updated - indicates an updated topic in the Print Agent Reference guide.


In addition to the symbol, updated text within the topic is marked with change
bars, like the one to the left of this text.

Configuring Print Agent


The configuration of Print Agent takes place automatically at installation. However, you may
wish to change one or more of the configuration options to suit the needs of your organization.
If you have access to Central Control, you can use that application to configure Print Agent.
To configure Print Agent with Central Control
1. On the Configuration menu, click Configure Central and Agents.

2. In the Available Processes box, select Print Agent and then click Edit File.

The descriptive name of the active Central appears within the title of Print Agent
Configuration dialog box.
3. Default values appear in each of the text boxes. You can change any of the values:
Message display controls the logging of trace, informational, warning, and error messages
to the log file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Configuring Print Agent

18

The message display values can be:


Value

Description

Displays all messages; this is the default.

10

Suppresses trace and informational messages.

20

Suppresses trace, informational, and warning messages.

30

Suppresses trace, informational, warning and error messages.

40

Suppresses all messages.

Form files - enter the path for templates (forms) referenced in the data stream. If the path
begins with http:, Print Agent will use it to build fully qualified URLs and retrieve templates
from an HTTP server. Otherwise, Print Agent will use it to build fully qualified file names and
retrieve templates from the file system.
Logo files - enter the path for logo files referenced in the data stream.
Data files - enter the path for transaction files referenced in the data stream.
The Browse command buttons open a common dialog box. Here you can select a target
drive and directory from the corresponding list boxes.
The Currency command button opens the Print Agent Currency Options dialog box.

The selections in this dialog box determine the way Print Agent handles currency formatting.
Thousands separator is the character used as a currency thousands separator. The default
is a , (comma).
Decimal character is the character used as a currency decimal separator. The default is a
. (period).
Credit symbol is the character used as a currency credit symbol. The default is CR
(credit).
Debit symbol is the character used as a currency debit symbol. The default is DB (debit).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Configuring Print Agent

19

Currency location allows you to change the location of the symbol used to indicate units of
currency. The available locations are left and right. The default currency symbol location is
left.
Currency symbol is the character used as a currency symbol. The default is a $ (dollar
sign).
Parenthesis for negative values is the pair of characters used as currency parentheses,
indicating negative values. The default is ( ) (left and right parenthesis).
Click OK to accept the changes or Cancel to close the dialog box without saving the
changes.
The Characters command button opens the Print Agent Special Characters dialog box.

The selections in this dialog box identify the characters that have a special meaning for Print
Agent.
Alternate newline identifier is the character, in addition to the newline character,
recognized by Print Agent as the end of a line in a multiline field or the end of a single line
field. The default is a ~ (tilde).
New field identifier is the character, in addition to the ^field and \field commands, that tells
Print Agent to end the current field and advance to the next field on the template. The default
is a ` (back quotation mark).
Dictionary name separator is the character recognized by Print Agent as a dictionary name
separator. The default is a : (colon).
DFC command prefix is the character recognized by Print Agent as a Dynamic Merge
command prefix character. The default is a ^ (caret).
Variable substitution prefix is the character recognized by Print Agent as a variable
substitution prefix character. The default is an @ (at sign).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Configuring Print Agent

20

ITC command prefix is the character recognized by Print Agent as an Inline Text Control
command prefix character. The default is a \ (backslash).
Click OK to accept the changes or Cancel to close the dialog box without saving the
changes.
4. If you make changes to the Print Agent Configuration dialog box, click OK to update the
configuration file or Cancel to close the dialog box without saving the changes.
If you do not have access to Central Control, you configure Print Agent from the command
prompt.
To configure Print Agent from the command prompt
1. Open the configuration file, jfmerge.ini, using a text editor.
2. Change the value of any entry.
3. Save the configuration file.

DOWNLOADED TEMPLATES CACHE


Print Agent is capable of downloading templates from an HTTP server. To increase
performance and reduce Internet traffic, Print Agent caches the templates in the local file
system. When it needs to open a downloadable template, Print Agent checks the modification
date and time of the template on the HTTP server and compares it to the cached copy. If the
date and time match, Print Agent uses the cached copy; otherwise, it downloads a fresh copy.
The name of the cache folder is controlled by the URLCacheDir setting in the [UrlCache]
section of jfmerge.ini. The default cache location is the UrlCache subfolder under the Central
install folder.
Multiple instances of Central may share the same cache directory. As a result, one instance of
Print Agent may be downloading a template at the same time another instance is trying to use
the template. To prevent conflicts, Print Agent instance that is downloading the template places
a lock file in the cache during the download. When another Print Agent instance detects the lock
file, it loops, sleeping for a fixed period of time before checking the lock again. The duration of
the sleep interval, in seconds, is specified by the UrlCacheLockWaitTime setting in the
[UrlCache] section of jfmerge.ini. The default is 30 seconds.
Note: If Print Agent terminates abnormally, it may leave the lock file behind in the cache folder.
If this happens, you must delete the lock file manually. The lock file is named
jfurlcch.lck. You may wish to configure your system to delete this file automatically,
should it exist, at boot time.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Configuring Print Agent

21

PRINT AGENT CONFIGURATION FILE


When editing the existing JFMERGE Task Table entry (see page 23) or creating new entries,
you must include the -aii@IniFileName option in the Program options for the task. Central
uses this option to inform Print Agent of the location of its configuration file. Print Agent cannot
run without its configuration file.

Running Print Agent


Central launches Print Agent when one of the processing steps for a job involves a print task.
You may invoke Print Agent in two ways:

By specifying Print Agent as a single executable task. This method uses the -axx option on
the standard Central ^job command in the transaction file. The ^job command has the
format:
^job jobname [-axxtaskid] [-ajijobid] [jobtokens]

where:
jobname is a logical name for the transaction.
-axxtaskid (optional) identifies a task that Central executes exclusively. taskid appears
in the Task Table of the Job Management Database. The taskid for Print Agent is
JFMERGE. This value is case-insensitive.
-ajijobid (optional) is a user assigned identifier for the job.
jobtokens (optional) are other options provided to the task by Central. jobtokens may
be any command line options or variable substitution arguments supported by Print Agent,
or the variable substitution arguments supported by Central.

When one of the job steps in the Job Table for the transaction specifies Print Agent. The
Task Id in the Job Table corresponds to an entry in the Task Table that calls Print Agent.
When you wish to use the Job Table to process your transaction file, the ^job command
takes the form:
^job jobname [-ajijobid] [jobtokens]

where:
jobname is the logical name for the transaction.
-ajijobid (optional) is a user assigned identifier for the job.
jobtokens (optional) are other options provided to the task by Central. jobtokens may
be any command line options or variable substitution arguments supported by Print Agent,
or the variable substitution arguments supported by Central.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Running Print Agent

23

JFMERGE TASK TABLE ENTRY


The Task Table defines the tasks Central processes. Central launches a task from the -axx
option on the ^job command in the transaction file or from a job step defined in the Job Table.
When you install Central, the installation process adds the default task JFMERGE to the Task
Table.

This entry may be sufficient to handle the majority of your printing tasks. If you need additional
Task Table entries for Print Agent, we recommend you use this task as a guideline for creating
your own entries. For additional information on creating Task Table entries, refer to the guide,
Central Control.
The default task JFMERGE contains these entries:
Task Id is JFMERGE. This is the logical task identifier that maps to a Central job step or to the
-axx option on the ^job command. The maximum length is nine characters. Task Id is
case-insensitive and cannot contain blanks.
Program name is jfmerge. This is the executable program name for Print Agent, the task that
Central launches. The maximum length is 255 characters. This value is case-sensitive on
operating systems where case-sensitivity rules apply.
Program options are arguments that Central passes to Print Agent. The string may contain
substitution variables or command line options that Central replaces with actual values at
execution time. (For the Central substitution variables, see the guide, Working with Central.)
Program options are case-insensitive. The maximum length is 1023 characters.
The program options are enclosed in (quotation marks). As well, notice the additional set of
quotation marks surrounding certain of the variables. When there is a possibility that the value
generated will contain spaces within its parameters, a substitution variable should be
surrounded with quotation marks. The . (period) at the end of a substitution variable delimits
the variable.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Running Print Agent

24

The Program options included on the default task JFMERGE are:


@MDFName.

The file name or URL of the template used by the current job step,
from the Job Table. When the -axx option appears on the ^job
command, @MDFName is the job name. Central substitutes the
appropriate value and passes the result to Print Agent.

@InFile.

When a job step initiates Print Agent, @InFile is the Input file
specified on the Job Table. When Input file is *, then the
transaction file is the file for printing. When Input file is a value
other than *, then the file for printing is a temporary file created by
a previous job step.
When Print Agent is initiated by an -axx option on the ^job
command, then @InFile is the transaction file Central is
processing.
Central substitutes the appropriate value for @InFile and passes
the result to Print Agent.

-axml@XMLData

If Central detects an XML job card in the transaction file, it replaces


@XMLData with the value yes. This causes Print Agent to
process the file as XML. But if Central does not detect an XML job
card in the transaction file, it replaces @XMLData with the null
string (""). This tells Print Agent to make its own determination
whether or not the file is XML, controlled by the ProcessAsXML
option in its configuration, jfmerge.ini.

-l

Central passes this command line option directly to Print Agent. It


tells Print Agent that the template is resident in the printer as a
macro.

Note: Ensure that you download the macro to the printer before using the -l option. For
details, see -m (Download Macro to Printer) on page 135.
-apr@PreambleName. The name of the preamble file, a file containing commands or data
that Print Agent reads before the contents of the data stream.
Central substitutes the value of Preamble file from the job step on
the Job Table for @PreambleName. For example, if the value for
Preamble file is h:\prem\p_order.pre, Central passes the
command line option, -aprh:\prem\p_order.pre, to Print Agent. If
@PreambleName is blank, resulting in -apr , Print Agent ignores
the -apr option.
-all@LogFileName.

The name of the file that contains the history of the activity of Print
Agent. Before Central initiates Print Agent, it substitutes the log file
name, jfserver.log, for @LogFileName. Central passes the
command line option, -alljfserver.log to Print Agent.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Running Print Agent

25

-asl@SkipLines

Tells Print Agent to skip over the ^job command in the transaction
file. If the transaction file contains a ^job command, Central
substitutes a 1 for @SkipLines. If the transaction file does not
contain a ^job command, Central substitutes a 0. Central passes
the command line option, -asl1 or -asl0, to Print Agent.

-amq@ManagedMem

The amount of memory defined for the current printer. Central


substitutes the value of Managed Memory on the Managed
Memory Table for @ManagedMem. For example, if the value of
Managed Memory is 100000 bytes, Central passes the
command line option, -amq100000, to Print Agent.

-ams@MSTName.

The file name of the Macro Status Table file, from the Printer
Table. Central substitutes the value of Printer id on the Printer
Table, plus the .mst file extension, for @MSTName. For example, if
the value of Printer id is prntr1, Central passes the command line
option, -amsprntr1.mst, to Print Agent.

-m@Macro#.

The macro number for the job step, from the Job Table. Central
substitutes the value of Macro number for @Macro#. For
example, if the value of Macro number is 121, Central passes
the command line option, -m121, to Print Agent.

@LoadFlag

The type of macro for the current step, from the Job Table. Central
substitutes the value of Load flag for @LoadFlag. For example, if
the value of Load flag is T, Central passes T to Print Agent.

-z@PhysicalDev.

Central uses the value from the -z option on the ^job command to
determine the value to substitute for @PhysicalDev. Using the
^job command, Central first matches the job name and the printer
name from the -z option to the Job Table. If a match is made,
Central substitutes the value found for Physical device on the
Printer Table for @Physical Device. If a match is not made, Central
substitutes the value of the -z option for @Physical Device. Central
passes the command line option, -zvalue, to Print Agent.

@PrintDirectorParms.

Central takes the values from Print Agent options on the Printer
Table, satisfies any substitution variables, and then substitutes the
result for @PrintDirectorParms. Central passes the value to Print
Agent.

@OtherJobTokens.

Tells Central to pass any options on the ^job command, excluding


-z, -aji, and -axx, to Print Agent.

-aii@IniFileName.

The name of the Print Agent configuration file. Before initiating


Print Agent, Central substitutes its configuration file name,
jfmerge.ini, for @IniFileName. Central then passes the resulting
command line option, -aiiC:\Program
Files\Adobe\Central\Server\jfmerge.ini, to Print Agent.
This option is mandatory, as Print Agent cannot run without its
configuration file. Always ensure that -aii@IniFileName is included
in the list of Program options, and that it is the last entry in the list.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Running Print Agent

26

Comments is a descriptive explanation of the information in this record. The maximum length is
81 characters. This value is case-insensitive.

Return Parameters
Print Agent returns two parameters to Central for use by subsequent steps of the same job.

@NumberPage
@NumberPages is set to the number of surfaces printed. For example, if the job causes the
printer to print 5 sheets of paper on both sides and another on one side, the value of
@NumberPages is set to 11. This is useful when you want the printed output to show page
numbering in a Page n of m format.
This value is not affected by page renumbering caused by the -s option or the ^$page and
\$page commands.
Note: The NumberPages variable (see page 121) is used to place page numbers, in the Page
n of m format, on each page of a print run. All pages in the output are numbered
sequentially, from the first to the last. This works well if your output contains only one
document. However, if your output contains multiple documents, with each document to
be numbered separately, use the -atf option (see page 119) to achieve the Page n of
m result.

@OutputFileName
Whenever Print Agent output is directed to a file or device, it automatically places the name of
the file or device into the @OutputFileName parameter. This is particularly useful in subsequent
job steps, after Print Agent is invoked with the ,u argument.
For an example of this processing, see the job PREVIEW that ships with the Job Management
Database. This job consists of two steps, the first to invoke Print Agent to direct the output to a
temporary file, and the second to invoke Preview Agent to route the file to a users workstation
for previewing. (For complete details about Preview Agent, see the guide, Previewing Central
Output.)

Print Agent Processing


This chapter provides conceptual information on a number of Print Agent features. It should be
read in conjunction with the Command Line Options chapter and the Command Reference
chapter, to enable you to understand the power and flexibility of Print Agent.

DATA FORMATS
Print Agent can process transaction files with data in these formats:

Field-nominated

Extensible Markup Language (XML)

Fixed record

Comma-delimited

The most typical way of using Print Agent is with either the field-nominated or XML data
formats. The following sections describe these formats and provide examples of their usage
with Print Agent. In addition, the samples that accompany your Central software include
samples for all data formats. For details, see Print Agent Samples on page 15.

Field-Nominated Format
The field-nominated (.dat) data format is a simple but orderly format, that follows the basic
Central tenet of separating data from presentation. Users can produce this format directly, or
they can transform their existing application data to this format using Transformation Agent.
A field-nominated transaction file combines the data with command sequences that direct the
activity of Print Agent. These command sequences can be Dynamic Merge commands, with a
default prefix character of ^ (caret), Inline Text Control and Intelligent Pagination commands,
with a default prefix character of \ (backslash), or Substitution Variables with a default prefix
character of @ (at). For details on all Print Agent commands, see Command Reference on
page 173.
Field-nominated data consists of a sequence of name/value pairs. For example, in this
transaction file fragment:
^field VENDOR_CODE
1001
^field VENDOR_NAME
A1 Business Products
^field VENDADDR1
234 Second St.
^field VENDADDR2
Anytown, ST

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

28

^field is a command sequence that tells Print Agent to position to the named field on the
template and place the corresponding value in that field. In the example, the first named field is
VENDOR_CODE and the corresponding value is 1001.

Print Agent reads the transaction file one string record at a time. A string record is a set of
characters delimited by a newline character, such as <CR/LF>. By default, Print Agent uses an
input buffer of 6144 bytes. If the string record is longer than the input buffer, the input buffer is
expanded as necessary to encompass the string record. The string record that Print Agent
reads becomes the current contents of the input buffer.
Print Agent first determines whether the input buffer is a command or data. If the character in
column one of the input buffer is a Dynamic Merge command prefix character, Print Agent
executes the command. Inline Text Control commands are executed no matter where they
appear in the input buffer.
If the first input buffer in the transaction file after the ^job and, if it exists, the ^fax, is specifically
a ^form command, Print Agent ignores a template name provided on the command line that
initiates Print Agent, and activates the template named in the ^form command. If the first input
buffer in the transaction file is not a ^form command, Print Agent activates the template named
on the command line. Use care when using the ^form command with multipart templates. Print
Agent can only cope with one template during a multipart print execution. For each part in a
multipart template, Print Agent repositions in the data stream to the start of the file. If you use a
^form command after Print Agent has already opened the template, it forces Print Agent to
open the template again. Opening the template again may cause Print Agent to lose track of
where it is in processing the multipart template.
Note: Conditions other than the execution of a ^form command can cause Print Agent to
open the template. For a list of these conditions, see either ^form (Open Template) on
page 191 or \form (Open Template) on page 260.
Activating the template means that Print Agent downloads the template to the target output,
either printer or file, as required. As well, Print Agent adopts the field list and field attributes for
the fields on the first page.
The field list that Print Agent reads from the template for the current page is significant for
processing the data. The transaction file can contain commands, commands and data, or data
only. Print Agent can interpret the data as field-nominated data or as fixed record data, that is,
the current input buffer contains data for more than one field. When Print Agent adopts the field
list for the current page, it internally maintains a field pointer that begins by pointing to the first
field in the list.
Print Agent places field data on the page in the field indicated by the field pointer, that is, in the
current field. If the current field is a multiline field, Print Agent does not advance the field pointer
until it fills all lines, or until it reads a command that forces the field pointer to advance. The
^field or \field commands without a field name argument force Print Agent to advance to the
next field in sequence in the field list. If it reaches the end of the list, Print Agent does
end-of-page processing, prints the page, then makes the next page in the template active. This
causes Print Agent to drop the current field list and adopt the field list for the newly active page.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

29

The ^field or \field command with a field name argument, that is, field-nominated format, starts
Print Agent searching forward through the field list until it encounters a matching field name.
There can be more than one field with the same name. Print Agent searches from the current
field until it finds the next field with the specified name. Print Agent wraps from the end of the list
to the top of the list until it finds a match or until it returns to its starting point. The field list only
contains fields for the currently active page. If it cannot find a match, Print Agent advances the
field pointer, and either:

Ignores all subsequent input buffers until it encounters a Dynamic Merge or Intelligent
Pagination command. Print Agent takes this action if the option -afxon (see page 84)
appears on the command line. This option tells Print Agent to discard any data for an
unknown field.

Places all subsequent input buffers, advancing the field pointer as necessary, until it
encounters a Dynamic Merge or Intelligent Pagination command. Print Agent takes this
action if -afxon does not appear on the command line. This processing can cause
overprinting and may not advance to the next page when expected.

To summarize, when Print Agent encounters a ^field or \field command, it advances the field
pointer either to the next field in the list or to the next field that matches the field name in the
command. You can also set the -afxon option so that Print Agent ignores data intended for a
field whose name does not appear in the field list for the current page.

Example of Field-Nominated Processing


Using this purchase order template and this transaction file, you can see the result of
field-nominated processing.
This purchase order template contains header
information, including the date, requisition
number, vendor code, and vendor name and
address. The shipping address is boilerplate
text. There are seven detail lines on the
template, made up of an item or part number,
quantity, description, units, unit price and total
price. The totals information contains the
subtotal, tax and total calculations for the
purchase order, as well as a multiline field for
delivery instructions.

Any Company Inc.


PURCHASE ORDER

Date
[

Requisition Number
]

Vendor Code

Vendor

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country

Item

Qty

Delivery Instructions

Description

Units

Unit Price

Total Price

Subtotal

Tax - 7.25%

Total

]
]
]

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

^field PO_DATE
01/31/1999
^field REQNO
1234567
^field VENDOR_CODE
1001
^field VENDOR_NAME
A1 Business Products
^field VENDADDR1
234 Second St.
^field VENDADDR2
Anytown, ST
^field VENDADDR3
USA 12345-6789
^field VENDADDR4
^field VENDADDR5
^field ITEM
123A
^field QUANTITY
10
^field DESCRIPTION
Mouse Pads
^field UNITS
EA
^field UNIT_PRICE
1.75
^field TOTAL_PRICE
17.50
^field ITEM
333C
^field QUANTITY
5

^field DESCRIPTION
Phone Message Pads
^field UNITS
EA
^field UNIT_PRICE
.50
^field TOTAL_PRICE
2.50
^field ITEM
777X
^field QUANTITY
10
^field DESCRIPTION
Desk Calendars
^field UNITS
EA
^field UNIT_PRICE
5.50
^field TOTAL_PRICE
55.00
^field ITEM
333B
^field QUANTITY
2
^field DESCRIPTION
Desk Trays
^field UNITS
EA
^field UNIT_PRICE
6.60
^field TOTAL_PRICE
13.20

Print Agent Processing

30

Transaction File, 1 of 3
In this transaction file, each ^field command
names a field on the template, with its data
following. Print Agent advances to the field
named in the command and places the data in
the field until it fills all fields.

Transaction File, 2 of 3

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

^field SUB_TOTAL
88.20
^field TAX
6.39
^field TOTAL
94.59
^field DEL_INSTRCTN
Deliver these goods before the end of the
fiscal year.

Any Company Inc.


PURCHASE ORDER

Date

Requisition Number

01/31/1999

1234567

Vendor

Item

Qty
10

333C

777X

10

333B

1001

Ship To

A1 Business Products
234 Second St.
Anytown, ST
USA 12345-6789

123A

Vendor Code

Description
Mouse Pads

Any Company Inc.


123 Any Ave.
Any Town
Any Country

Units Unit Price

Total Price

EA

1.75

Phone Message Pads EA

0.50

2.50

Desk Calendars

EA

5.50

55.00

Desk Trays

EA

6.60

13.20

Subtotal
Tax - 7.25%
Total
Delivery Instructions
Deliver these goods before the end of the fiscal year.

17.50

88.20
6.39
94.59

Transaction File, 3 of 3

Print Agent merges the field-nominated


transaction file with the template to produce
this document. Placement of the data in the
transaction file does not impact the output.
Print Agent matches each data element with
the field it is destined for, and populates the
fields accordingly.

31

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

32

Extensible Markup Language (XML)


XML is a subset of Standard Generalized Markup Language (SGML). XML communicates
information about the structure and content of a document, rather than the look of it. It allows
you to define data with customized tags that can be easily exported and understood by other
computers and devices. With XML, a document's information and structure will function in a true
cross-platform manner.
Data in XML format is initially treated as if it were field-nominated format. Central sets the
substitution variable @XMLData to yes when it detects an XML job card, but to (the empty
string) when it does not. When this substitution is made into the Task Table entry for Print
Agent, the result is that Print Agent receives either -axmlyes or -axml on its command line.
-axmlyes forces Print Agent to process the transaction file as XML. -axml leaves it up to Print
Agent to inspect the transaction file and decide for itself whether the file contains XML or not.
When Print Agent identifies the data stream as an XML data stream, it processes the data in
XML format.
Note that all rules specified by the XML standard must be adhered to by all XML data files. In
particular note that:

If a <?xml ...?> processing instruction is present in the data file it must be the very first thing
in the data file except optionally for a UTF-8 byte-order mark. This particular processing
instruction must not be preceded even by a space, tab, or newline.

If a <?xml ...?> processing instruction is present in the data file it must include version=1.0.

If either of these rules is violated, Print Agent will be unable to parse the file as XML and will quit
with an XML parsing error. Once Print Agent decides that the file is XML, it is committed to XML
and cannot proceed unless it can parse the file as XML.
To process a data file in XML format, Print Agent first loads the data into the XFA-Data
Document Object Model (XFA-Data DOM), and then translates it into Central field-nominated
format. Print Agent then processes the translated file as it would any other field-nominated
transaction file. For a complete description of the XFA-Data DOM and of how XML data is
translated, refer to the guide, Integrating XML with Central.
The Print Agent configuration file contains a number of options which impact how XML data is
translated to field-nominated data. The default values in the configuration file can be overridden
using the equivalent command line options. These values, located in the [XMLOptions] section
of the configuration file, are:
Configuration File
Setting

Description

Equivalent
Command
Line Option

Attributes=ignore

Specify the processing of attributes


for data group elements.

-axattibutes

CodePage=

Specify a code page.

-axcodepage

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Configuration File
Setting

Print Agent Processing

Description

33

Equivalent
Command
Line Option

EndGroupPrefix=G_END_

Change the group prefix for a ^group


command that represents the end of
each data group.

-axendgroupprefix

Exclude=

Identify portions of the XML data to


exclude from processing.

-axexclude

Flatten=No

Specify the handling of multiple level


data groups.

-axflatten

IncrementalLoad=Yes

Specific how the XML data is loaded


into the XFA -Data DOM.

-axincrementalload

Order=document

Specify the processing order for data


values and data groups.

-axorder

Record=

Specify data group elements that


represent records.

-axrecord

StartGroupPrefix=G_

Change the group prefix for a ^group


command that appears at the
beginning of each data group.

-axstartgroupprefix

StartNode=

Identify the start element of the XML


data to process.

-axstartnode

UseEndGroup=No

Specify the creation of a ^group


command at the end of a data group.

-axuseendgroup

UseFormCommand=No

Specify the template (form) name to


use.

-axuseformcommand

XSL=

Apply an XSLT stylesheet.

-axaxsl

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

34

Example of XML Processing


This purchase order template and this transaction file shows the result of XML processing.
This purchase order template contains header
information, including the date, requisition
number, vendor code, and vendor name and
address. The shipping address is boilerplate
text. There are seven detail lines on the
template, made up of an item or part number,
quantity, description, units, unit price, and total
price. The totals information contains the
subtotal, tax and total calculations for the
purchase order, as well as a multiline field for
delivery instructions.

Any Company Inc.


PURCHASE ORDER

Date
[

Requisition Number
]

Vendor Code

Vendor

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country

Item

Qty

Description

Units

Unit Price

Total Price

Subtotal

Tax - 7.25%

Total

]
]
]

Delivery Instructions

<?xml version="1.0"?>
<PO>
<PO_Date>01/31/1999</PO_Date>
<ReqNo>1234567</ReqNo>
<Vendor_Code>1001</Vendor_Code>
<Vendor_Name>A1 Business Products</Vendor_Name>
<AddressBox>
<VendAddr1>234 Second St.</VendAddr1>
<VendAddr2>Anytown, ST</VendAddr2>
<VendAddr3>USA 12345-6789</VendAddr3>
</AddressBox>
<Detail>
<Item>123A</Item>
<Quantity>10</Quantity>
<Description>Mouse Pads</Description>
<Units>EA</Units>
<Unit_Price>1.75</Unit_Price>
<Total_Price>17.50</Total_Price>
</Detail>
<Detail>
<Item>333C</Item>
<Quantity>5</Quantity>
<Description>Phone Message Pads</Description>
<Units>EA</Units>
<Unit_Price>0.50</Unit_Price>
<Total_Price>2.50</Total_Price>
</Detail>
<Detail>
<Item>777X</Item>
<Quantity>10</Quantity>
<Description>Desk Calendars</Description>
<Units>EA</Units>
<Unit_Price>5.50</Unit_Price>
<Total_Price>55.00</Total_Price>
</Detail>

Transaction File, 1 of 2
The XML declaration on the first line tells Print
Agent that this file is in XML data format.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

<Detail>
<Item>333B</Item>
<Quantity>2</Quantity>
<Description>Desk Trays</Description>
<Units>EA</Units>
<Unit_Price>6.60</Unit_Price>
<Total_Price>25.99</Total_Price>
</Detail>
<Sub_Total>88.20</Sub_Total>
<Tax>6.39</Tax>
<Total>94.59</Total>
<Del_Instrctn>Deliver these goods before the
end of the fiscal year</Del_Instrctn>
</PO>

Any Company Inc.


PURCHASE ORDER

Date

Requisition Number

01/31/1999

1234567

Vendor

Item

Qty
10

333C

777X

10

333B

1001

Ship To

A1 Business Products
234 Second St.
Anytown, ST
USA 12345-6789

123A

Vendor Code

Description
Mouse Pads

Any Company Inc.


123 Any Ave.
Any Town
Any Country

Units Unit Price

Total Price

EA

1.75

Phone Message Pads EA

0.50

2.50

Desk Calendars

EA

5.50

55.00

Desk Trays

EA

6.60

13.20

Subtotal
Tax - 7.25%
Total
Delivery Instructions
Deliver these goods before the end of the fiscal year.

17.50

88.20
6.39
94.59

35

Transaction File, 2 of 2

Print Agent translates the XML data to


field-nominated data. It then merges the
field-nominated data with the template to
produce this document. Placement of the data
in the transaction file does not impact the
output. Print Agent matches each data
element with the field it is destined for, and
populates the fields accordingly.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

36

MIXED SYMBOL SET PROCESSING


When a template designer nominates a font for a field, there is an implicit selection of a
symbol/character set. This means that the data provided for that field should be in that symbol
set. However, that is not always the case. Effective with the Version 5.4 release, when Print
Agent encounters character code points which do not lie within the nominated fonts symbol set,
it can switch to new fonts and symbol sets automatically, without the requirement for Inline Text
Control commands in the data stream. This is particularly beneficial for UTF-8 (Unicode) based
data streams, wherein code points for many characters can be encoded. This is important
because UTF-8 data may contain data for multiple printer symbol sets. UTF-8 is predominately
used for XML-based data.
Print Agent uses this criteria when font switching:

If the code point can be satisfied with the same typeface but with just a different character
set, then that switch of character sets occurs. The relevant font select sequence will be
emitted to the print stream and then the character data with the previously offending code
points.

If the data has characters whose code points are not in any available symbol set of the
nominated typeface, then recourse will be made to other typefaces that are defined for the
printer. These typeface changes will be made based on certain font property matches, for
example, trying to maintain a serif font, instead of switching to a sans serif font.

Automatic font switching applies to all presentation targets for both single and double-byte
fonts, regardless of whether or not the font is downloadable or printer-resident. For backwards
compatibility, the -autfssoff command line option (see page 126) will suppress this feature.
Note: Automatic font switching is not supported for label printers.

JUST-IN-TIME MACRO PROCESSING


Effective with the Version 5.4 release, Print Agent supports just-in-time macro processing. This
means that pages and subforms compiled into the template are downloaded to the printer only
if they are needed to complete the print job. This contrasts with previous releases where, as
soon as it opened the template, Print Agent downloaded each page and subform in the entire
template to the printer, regardless of whether it was actually required by the data. Downloading
only the template elements called for by the data stream will reduce the size of output print files.
The just-in-time macros feature is available for PCL 5, PCL-XL, PostScript, and PDF.
However, it does not work for all printers supported by Print Agent. To confirm whether the
presentment target you are using supports the just-in-time macros feature, check the .ICS file
for that presentment target.
For backwards compatibility, the -ajutmno command line option (see page 89) will suppress
the just-in-time macros feature.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

37

JUST-IN-TIME FONT PROCESSING


Effective with the Version 5.4 release, Print Agent supports just-in-time font processing. This
means that it downloads to the printer only the fonts that are required for the data stream. This
contrasts with previous releases where Print Agent automatically downloaded all the
downloadable fonts defined in the printer configuration file. The inclusion of only the required
fonts in the output will reduce the size of output print files.
The just-in-time font feature is available for PCL 5, PCL-XL, PostScript, and PDF. For
backwards compatibility, the -ajutfno command line option (see page 89) will suppress this
feature.

SERVER LICENSING FOR FONTS


Certain TrueType and Type 1 fonts require a licence before they can be legally embedded in a
template. When a template is compiled in Output Designer, any embedded fonts that require a
license will be flagged. If Print Agent encounters this flag when processing the template, it will
check the [FontLicense] section of its configuration file, jfmerge.ini, for the presence of
licensing information. If the licensing information is not provided, the Print Agent will not process
the template and will write a message to the Central log file indicating that there was an error
downloading the font.
The licensing information required in the [FontLicense] section is the typeface name of the
licensed font, as displayed in Output Designer, and a value indicating the font type for which the
license exists, whether TrueType and/or Type 1. TrueType fonts include those OpenType fonts
containing TrueType glyphs.
For example:
typefacename1=T1

indicates the font is licensed for Type 1, and


typefacename2=TT T1

indicates that the font is licensed for TrueType and Type 1.

Licensing Considerations
When determining licensing requirements, remember that:

The licensing requirement impacts only fonts included in a soft font cartridge.

When creating a soft font cartridge, Output Designer will indicate which fonts require a
license. For details, see the topic, Create a soft font cartridge, in the Output Designer Help.

Certain TrueType fonts are unrestricted usage fonts, meaning that a license is not required
for their use. These fonts contain a bit setting indicating that embedding is allowed. You can
use the Font Properties Extension Utility, available as a free download from Microsoft, to
determine if your fonts allow unrestricted usage.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

38

MULTIPLE CURRENCY SUPPORT


Print Agent enables you to produce documents that contain multiple currencies. You can
accomplish this by having the picture clauses used to format a data string reference an
alternate set of currency characters, as defined in the Print Agent configuration file.
The Print Agent configuration file ships with sections containing alternate sets of currency
characters. These sections are:
Section

Currency

[Currency_Euro]

Euro

[Currency_Dollar]

Dollar

[Currency_FFR]

French Franc

[Currency_PQ$]

Dollar (Quebec, Canada)

[Currency_DKR]

Danish Kroner

[Currency_DM]

German Deutsche Mark

[Currency_IRP]

Irish Punt

[Currency_Lire]

Italian Lire

[Currency_Norway]

Norwegian Kroner

[Currency_SKR]

Swedish Kroner

[Currency_UKP]

UK Pound

[Currency_RMB]

China - People Republic

[Currency_yen]

Japan

Any number of additional currency sections can be added to the configuration file. Use the
pre-defined sections as a template for all new sections.

Print Agent Picture Clauses


You can reference an alternate set of currency characters in the data stream using the Print
Agent \pic command (see page 242).This command now includes a currency indicator
element, which consists of a string enclosed in square brackets. The string is from the Print
Agent configuration file, and is the text following Currency_ in the currency section name. For
example, to use the currency section:
[Currency_FFR]

the currency indicator element for the \pic command would be [FFR]. The currency indicator
element must be coded at the beginning of the picture clause. For example,
\pic"num[FFR]zz,zz9.99","1234.56"

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

39

When Print Agent is processing a data file and encounters a picture clause, it uses the currency
indicator element to look up values in the referenced currency section in its configuration file. If
the referenced currency section does not exist, or if the \pic command does not contain a
currency indicator element, Print Agent formats the data using the default currency characters
from its configuration file [Special] section.

Output Designer Picture Clauses


The currency indicator element can also be included in a picture clause defined for a field in
Output Designer. For example:

Currency indicator
included in picture
clause

For further information on adding picture clauses in Output Designer, see the Help topic
Picture clauses.

Dictionary Variables in Picture Clauses


You can use Print Agent dictionary variables in the construction of a picture clause, by defining
the local currency as a dictionary variable. You can then refer to the dictionary variable later in
your picture clauses. This is useful in situations where the currency may change from one
document to another, or one run to another.
For example, with this dictionary variable:
^global LocalCurrency
Euro

your picture clause would read:


\pic"num[@LocalCurrency.]zz,zz9.99","1234.56"

USING GENERIC PRESENTMENT TARGETS


If you have printers for which there are no presentment targets available in Output Designer or
if your environment contains a heterogeneous group of printers, the Generic PostScript
presentment target or an older HP presentment target can often address these types of
situations.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

40

The Generic PostScript presentment target creates the appropriate but most basic commands
necessary to drive the printer and generate your document. However, it does not create printer
specific commands for printer options such as input tray selection or finishing options. Also,
fonts and their spacing are handled in a best guess fashion, as a result of no printer specific
information.
Some manufacturers printer models emulate certain HP printer models; therefore, an HP
presentment target can be used for those printers. Check your printer documentation to see
what printer your printer emulates. As well, newer printers can often be driven with an earlier
presentment target for a manufacturers printer, but new printer features will not be supported.
For HP and Lexmark printers, you can usually use a presentment target from a printer in the
same family.
The Generic Microsoft Windows Driver is intended to be used when no other compatible
presentment target can be selected.
In this release of the product we moved from Zebra printer specific presentment targets to
Zebra Generic presentment targets. The existing printer specific presentment targets are
organized under legacy printers in the Presentment Target Selection dialog box in Output
Designer. The new generic Zebra presentment targets are based on printer DPI (dots per inch).
The Zebra printer models vary by DPI and print head width, but they use a common firmware.
Refer to your Zebra printer documentation for more information.
The generic Zebra presentment targets have been tested with a variety of Zebra printers in the
High Performance (XiIII Plus) and Industrial and Commercial (Z6M Plus, 105SL, S600) model
lines, as well as Zebra RFID capable printers based on these printer models (R170Xi).
However, RFID is not a supported feature.

GLOBAL FIELD PROCESSING


Global field processing fills all occurrences of a field on one or more pages or templates with
the same data. The application sends the data once and Print Agent takes care of filling in the
appropriate fields.
You can specify global fields in these ways:

Using the -adv command line option (see page 79).

Using the ^global command (see page 193).

Using record data. You identify the global field with an * (asterisk) preceding the field name
in the record definition.

Creating an entry in the Global dictionary (see page 59) using the ^define command (see
page 180).

At template design time, by marking the field as global in Output Designer. When the
template is opened by Print Agent, the globals are placed in memory. When Print Agent
encounters a ^global or a ^define global: command in the data stream, it stores the global
value in memory. However, a global field that is defined in the template at design time does
not take affect until the corresponding ^field is processed in the data file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

41

When Print Agent processes the transaction file, it stores the global field name and associated
data in memory. You can use the ^global command at any time to change the value for a global
field. When Print Agent encounters a ^global command, it updates the list of global fields and
corresponding values in memory. It then processes the remaining commands and data
normally.
When it reaches the end of a page or subform, or the end of a template, Print Agent performs
global field processing. If a global field name matches a field name in the field list, Print Agent
retrieves the corresponding data from memory and inserts it into all occurrences of the field
name in the field list.
Print Agent will ignore data associated with a ^field command if the field name for the ^field
command is already defined as a global field. For example, for a field named AMOUNT that is
defined as a global, Print Agent processes the commands for the field as follows:
^global AMOUNT

Because the field was defined as global, Print

10.00

Agent stores the value in the Global dictionary.

.
.
.
^field AMOUNT

Print Agent ignores the data value because of the

15.00

^field command.

.
.
.
^global AMOUNT

Print Agent updates the value for the field in the

20.00

Global dictionary because of the ^global command.

An overprint for a field can occur when a field is not designed as global at the appropriate time.
For example, a field is not initially defined as global when Print Agent first encounters a ^field
command in the data stream. Print Agent inserts the value from the ^field command into the
field. Print Agent subsequently encounters a ^global command for the field during the
processing of a page. When global field processing occurs, Print Agent inserts the global value
into the field. The result is that the global value overprints the value of the field data.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

42

Outputting Global Data Using an XML Data File


Outputting global data can present a problem when using an XML data file. Use these solutions
to ensure the output is correct:
1. At the template design level, in Output Designer, set the Global attribute for the field in the
Format Field dialog box. This is the preferred option. Defining the Global attribute in the
template eliminates the need for ^global commands in the data stream, since this adds a
^global at run time to the input data.
For a text substitution field, use a dummy field with the same name as the text substitution
field and set the global attribute on that field.
For details about setting the Global attribute, see the Output Designer Online Help.
2. Use !Replace! (Replace Line) to replace ^field A with ^global A in a preamble or command
line. This option will work when you cannot set the Global attribute in a field (i.e. text
substitution field), but it will increase the processing overhead.
For details about the !Replace! command, see !Replace! (Replace Line) on page 316.
3. Use XFA:match="many" in the XML data. This option will only work under certain
conditions (i.e. a header subform on a dynamic template), because for every ^global within
a transaction it outputs a corresponding ^undefine. This means that for many template
designs, a ^global will be undefined before the page or subform can be output.
For details about the XFA:match="many" attribute, see the guide Integrating XML with
Central.

PDF OUTPUT
Print Agent enables you to output data as PDF (Portable Document Format) files, viewable with
the Adobe Reader. Files in this format are easily exchanged and viewed, as they are platform
independent.
PDF output can also be passed to Preview Agent, which routes the PDF file to a users
workstation for viewing. For complete details about the Preview Agent, see the guide,
Previewing Central Output.

Considerations for PDF Output


UP

TE
DA

There are a number of considerations to keep in mind when creating and displaying PDF:

If you are concerned about the size of your PDF output, you should:

Create forms using the Acrobat base fonts. This means that fonts would not have to be
embedded in your PDF document, providing a significant size benefit.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

43

Try whenever possible to minimize the use of graphics, as they directly impact the size of
the output. If you do use graphics, there are a number of things you can do to lessen their
size impact. For details about this, see Graphic Considerations for PDF Output on
page 44.

For all documents that Print Agent creates with DBCS fonts, you must have the Asian font
pack installed in Acrobat/Reader, even if you do not use the Adobe DBSC fonts. The
installation of the Asian font pack is required because it also includes the Asian encodings the encodings are required no matter what the source of your DBCS fonts.

Editing of PDF output produced by Print Agent is not supported. The output is intended for
viewing only.

When printing PDF output, the default behavior in Adobe Reader and Adobe Acrobat is to
scale the pages to fit the paper size selected. This may cause the output to shrink or grow
in overall size, giving the appearance of a different point size font. To have the PDF output
print as designed, ensure you de-select all Paper Scaling options on the Print dialog in
Adobe Reader or Adobe Acrobat.

The color model that Print Agent uses to produce a PDF is RGB and this cannot be
changed.

Creating PDF Output


To create PDF output, Print Agent requires:

A template, compiled with Output Designer using the PDF presentment target. The use of
the PDF presentment target is mandatory for PDF output.
For complete details about creating templates, see Creating templates for PDF output in
the Output Designer Help.

A transaction file in either field-nominated or XML data format.

A bookmark file, if the PDF output is to include bookmarks. Bookmarks are links to different
positions within the PDF file, used to assist in navigation. The bookmark file is a text file,
which you can create with any text editor. For details, see Creating Bookmarks for PDF
Output on page 45.

An output destination. The output destination must be to a PDF file, for which Print Agent
requires a fully qualified name. You can provide the PDF output file name to Print Agent in
two ways:

Using the -z option on the ^job command in the transaction file. See -z (Direct Output)
on page 153.

By creating a Printer Table entry in the Job Management Database, and using it as the
Physical Device name. You can then reference this Printer Table entry in the Job Table.
For complete details about creating table entries for the Job Management Database, see
the chapter Defining Central Tasks in the guide, Working with Central.

The PDF output destination is mandatory. Without it, Print Agent will direct the PDF output to
a printer, resulting in many pages of unreadable characters.
When processing the transaction file, Print Agent automatically creates the PDF file, writes the
merged data and template to it, and places it in the specified location.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

44

Setting Initial Display Values for PDF Output


Effective with the Version 5.6 release of Print Agent, you can control the way a PDF file is
initially displayed when it is opened in Acrobat/Reader. The settings that you can control are:

Page Layout - determines whether the document is viewed in single-page, facing page,
continuous page, or continuous facing page mode. For details, see -apdflayout (Specify
PDF Initial Page Layout) on page 109.

Page Number - sets the page that the document opens at. For details, see -apdfopentopage
(Specify PDF Initial Page Number) on page 110.

Zoom - sets the level of magnification the document will display at when opened. For details,
see -apdfzoom (Specify PDF Initial Page Magnification) on page 111.

Adding Security Features to PDF Output


Effective with the Version 5.6 release of Print Agent, you can add security features to PDF files.
This includes the ability to encrypt, limit functionality, and optionally password protect a PDF
document generated by the Print Agent.
The PDF security feature includes these command line options:

-apdflock (Activate PDF Security Features) on page 106

-apdfallowadd (Allow Adding Content to a PDF Document) on page 104

-apdfallowcopy (Allow Copying of PDF Document) on page 104

-apdfallowmod (Allow Modification of PDF Document) on page 105

-apdfprint (Allow Printing of PDF Document) on page 108

-apdfowner (Allow Access to PDF Security Settings) on page 107

-apdfuser (Allow Access to PDF Document) on page 108

Graphic Considerations for PDF Output


If you are concerned about the size of your PDF output, you should try whenever possible to
minimize the use of graphics, as they directly impact the size of the output. When you do use
graphics, be aware of these considerations:

Avoid all processing of graphic files at runtime by including them in the form at compile time.
It does not matter what graphic format you use. This is by far the most processing efficient
option as:

The graphics are converted to PDF at compile time only, and then streamed out at run
time.

Smaller .PDF files are produced, because the graphic filters in Output Designer can
resize and sometimes reduce the color depth of the graphic.

The graphic is only stored once in the PDF even though it could be used on every page.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

45

If you must include graphic files in the data stream (^graph or graphic fields), here are some
recommendations for reducing file size:

Regardless of the image format (JPG, TIF, etc.), reduce the number of pixels in the
graphic. An 800x600 graphic will be the size of a 1600x1200 graphic with the same
color depth (bits per pixel) when stored in the PDF file. There are free applications
available which let you do this.
Note that if you use a graphic field, the image will be scaled to the size of the field when
your PDF viewer draws it. This does NOT affect the size of the PDF file.

For formats other than JPG, reduce the number of bits per pixel in the graphic. There are
free applications available which let you do this. Note that reducing the number of bits per
pixel for JPG graphics does NOT reduce the size of the final PDF file.

The size of the graphic file (number of bytes in your file system) is a poor predictor of its
size impact on the final PDF file. Many types of graphic files use compression. The JPG
format in particular is very highly compressed. All graphic files are uncompressed in order
to include them in the PDF file. Typically, more compression requires more CPU time to
uncompress the image. Because of the nature of the JPG format, large amounts of
memory can also be required to uncompress the .jpg images. The JPG uncompression
code makes use of an in-memory buffer up to a default threshold of 1000000 bytes. When
the threshold is exceeded, a disk buffer is used. You can set the threshold for the
in-memory buffer with the JPEGMEM environment variable. For example, the threshold
can be set to a value such as 4M to represent 4000000 bytes. If your system has enough
available memory, increasing the JPEGMEM environment variable threshold can
reduce processing time.

Creating Bookmarks for PDF Output


UP

TE
DA

To have Print Agent include bookmarks in PDF output, you must reference the required
bookmarks in a bookmark file, with a recommended file extension of .bmk. The bookmark file
specifies fields in a template. At output time, values in the transaction file for the specified fields
are displayed as the bookmarks in the PDF file.
Entries in a bookmark file are in the format:
[Section]
fieldname=level,order

where:
Section is the logical name for a grouping of bookmarks. It precedes a list of fields whose
values are displayed as bookmarks. Section is optional. In the absence of Section, Print
Agent will attempt to process the entire bookmark file. The inclusion of multiple instances of
Section, each with its own associated grouping of bookmarks, lets you maintain one
bookmark file for all your PDF output jobs. You use the -abms command line option (see
page 69) to tell Print Agent which grouping of bookmarks to use for a particular job.
fieldname is the name of a field on the template, whose value you want to appear as a
bookmark. The field must be a single line field. You can bookmark on any number of fields in a
template.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

46

level is the indentation level of the bookmark. The lowest value of bookmark levels identified
will be the top (least indented) level of bookmarks. For example:
level 0
level 1
level 2
level 3

order is the sorting order of the bookmarks at a given indentation level. order can be one
of:

A (ascending)

D (descending)

X (no sorting)

The combination fieldname=level,order is known as a bookmark specifier. This


bookmark file illustrates the following points about bookmark specifiers:

bookmark specifier
group

bookmark specifier
group

{
{

[payroll]
Employees by Name=0
EMP_NAME=1,A
EMP_CITY=2,A
Employees by Location=0
EMP_CITY=1,A
EMP_NAME=2,A

A bookmark file can contain any number of bookmark specifiers.

Bookmark specifiers must be added to a bookmark file in numerical order. That is, level 1
must be defined before level 2, level 2 must be defined before level 3, and so on.

Within a bookmark specifier group (that is, a level 1 followed by additional levels) there can
be only one bookmark specifier for each level. For example, only one level 1 bookmark
specifier, one level 2 bookmark specifier, and so on per group.

A bookmark file can contain any number of bookmark specifier groups.

A bookmark specifier with a level 0 is used as a heading bookmark for all following bookmark
specifiers in its group. A level 0 bookmark is not displayed with a field value, but with the
string fieldname specified in the bookmark file. If a level 0 is not defined for a bookmark
specifier group, Print Agent will supply one, in the format Bookmark Set n, where n is
the sequential number of the unidentified group.

The system variable trimBmk can be used to control the number of characters that will
displayed in a bookmark. Bookmarks can be trimmed at an arbitrary length or not at all. To
set the value in the Sys directory, use the format:
^define sys:trimBmk value

where:
sys is the dictionary name
trimBmk is the option name.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

47

value is the value to be assigned to trimBmk. It accepts a numeric Value (the default is 50).
A Value of <= 0 means no trimming. A Value of > 0 means trim to Value characters. The
maximum Value is 374, as that is the maximum number of characters that can be displayed by
Acrobat/Reader in a bookmark generated by Print Agent
You require a : colon separator between the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 61.

PDF Example
This example shows the output produced by Print Agent when it creates a PDF file containing
bookmarks.
The example uses this purchase order
template and the following transaction file to
produce the PDF output.

Any Company Inc.


PURCHASE ORDER

Date

Requisition Number

Vendor

Vendor Code

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country

Item

Qty

Description

Units

Unit Price

Subtotal
Tax - 7.25%
Total
Delivery Instructions

Total Price

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

^job p_order -zp_order.pdf -abmkp_order.bmk -abmsp_order


^field PO_DATE
13/05/99
^field REQNO
start of record 1
2346984
^field VENDOR_CODE
1004
^field VENDOR_NAME
Exceptional Office Supplies
^field VENDADDR1
111 First Ave.
^field VENDADDR2
Anytown, ST
^field VENDADDR3
USA 12345-6789
^field VENDADDR4
^field VENDADDR5
^field ITEM
245D
^field QUANTITY
1
^field DESCRIPTION
Bulletin Board
^field UNITS
EA
^field UNIT_PRICE
39.00
^field TOTAL_PRICE
39.00
.
. field-nominated data for
. three detail lines
.
^field SUB_TOTAL
2,045.60
^field TAX
148.31
^field TOTAL
2,193.91
^field DEL_INSTRCTN
Delivery to be made to the second floor Drafting office.
^page 1
start of record 2
^field PO_DATE
13/05/99
^field REQNO
1234567

Transaction file, 1 of 4

^field VENDOR_CODE
1001
^field VENDOR_NAME
A1 Business Products
^field VENDADDR1
234 Second St.
^field VENDADDR2
Anytown, ST
^field VENDADDR3
USA 12345-6789
^field VENDADDR4
^field VENDADDR5
^field ITEM
123A
^field QUANTITY
10
^field DESCRIPTION
Mouse Pads
^field UNITS
EA
^field UNIT_PRICE
1.75
^field TOTAL_PRICE
17.50
.
. field-nominated data for
. three detail lines
.
^field SUB_TOTAL
88.20
^field TAX
6.39
^field TOTAL
94.59
^field DEL_INSTRCTN
Deliver these goods before the end of the fiscal year.
^page 1
start of record 3
^field PO_DATE
13/05/99
^field REQNO
1234568
^field VENDOR_CODE
1832
^field
VENDOR_NAME
XYZ Trading Company

Transaction file, 2 of 4

48

The transaction file consists of four records,


each of which will appear on a separate
document in the resulting PDF output.
For the purpose of this illustration, the file
names in the ^job command on the first line of
the transaction file are shown without their
paths.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

^field VENDADDR1
234 Second Ave.
^field VENDADDR2
Anytown, ST
^field VENDADDR3
USA 34567-8904
^field VENDADDR4
^field VENDADDR5
^field ITEM
2354
^field QUANTITY
4
^field DESCRIPTION
Report Covers
^field UNITS
BOX
^field UNIT_PRICE
6.60
^field TOTAL_PRICE
26.40
.
. field-nominated data for
. four detail lines
.
^field SUB_TOTAL
71.00
^field TAX
5.15
^field TOTAL
76.15
^field DEL_INSTRCTN
Please deliver ASAP - urgently required.
^page 1
start of record
^field PO_DATE
13/05/99
^field REQNO
1234583
^field VENDOR_CODE
5454
^field VENDOR_NAME
Office Supplies Warehouse
^field VENDADDR1
82 Main St.
^field VENDADDR2
Anytown, ST

^field VENDADDR3
USA 54321-9876
^field VENDADDR4
^field VENDADDR5
^field ITEM
446G
^field QUANTITY
10
^field DESCRIPTION
Desk Trays
^field UNITS
EA
^field UNIT_PRICE
6.90
^field TOTAL_PRICE
69.00
.
. field-nominated data for
. three detail lines
.
^field SUB_TOTAL
341.50
^field TAX
24.76
^field TOTAL
366.26
^field DEL_INSTRCTN
Delivery required prior to 2 PM Friday.

Print Agent Processing

Transaction file, 3 of 4

Transaction file, 4 of 4

The first line of the transaction file contains the ^job command:
^job p_order -zpathnamep_order.pdf -abmkpathnamep_order.bmk
-abmsp_order

49

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

50

where:
p_order is the job name.
-zpathnamep_order.pdf is the fully qualified name of the file to which Print Agent will write
the PDF output.
-abmkpathnamep_order.bmk is the fully qualified name of the bookmark file, containing the
fields in the transaction file to use as bookmarks. For details on the -abmk command line
option, see page 68.
-abmsp_order defines the section within the bookmark file to use for this transaction. As
illustrated in the following bookmark file, sections are shown within the bookmark file enclosed
in [ ] (square brackets). For details on the -abms command line option, see page 69.

Bookmark File

sections

# This is a comment line. It will not be


# processed as part of the bookmark file.
#
# Here are the bookmarks for purchase orders.
#
[p_order]
Vendor Information=0
VENDOR_CODE=1,A
VENDOR_NAME=2,A
Item Information=0
VENDOR_NAME=1,A
ITEM=2,D
#
# Here are the bookmarks for invoices
#
[invoice]
INV_NO=1,D
INV_DATE=2,A
INV_AMOUNT=3,A

This bookmark file contains bookmarks for two different types of jobs, purchase orders and
invoices. This example uses the purchase order section, [p_order]. Within this section, there
are two bookmark specifier groups, one titled Vendor Information and the other titled Item
Information.
Using the files provided, Print Agent produces PDF output with four records, each appearing in
the PDF file in the order it appeared in the transaction file. The bookmarks appear collapsed
upon opening the PDF, with only the bookmarks for the highest level, level 0, displaying.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

51

The text for the level 0 bookmarks, in this example - Vendor Information and Item Information,
displays exactly as defined in the bookmark file. Clicking the level 0 bookmarks will expand the
other levels.

The bookmarks open in a tree structure. For the level 1 and 2 bookmarks, the data values are
substituted for the fieldnames included in the bookmark file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

Clicking a bookmark will display the record pertaining to that bookmark.

STAPLE DOCUMENT SUPPORT


Effective with the 5.6 release of Central, there is a mechanism to select the PJL (Printer Job
Language) staple capability on these printers:

HP LaserJet 4350 DTNSL (PostScript L3) - hp4350p.ics

HP LaserJet 4350 DTNSL (PCL5) - hp4350.ics

Lexmark T632 (PostScript L3) - lex632p.ics

Lexmark T632 1200 dpi - lex632.ics

This feature is available for Print Agent presentment targets only - it is not supported for
Windows drivers.

52

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

53

Staple support is implemented using finish options. Finish options are only supported on
printers that support PJL and they are inserted into the printer reset sequence. The finish option
and its PJL value are defined in the printer .ICS file in the custom strings. Print Agent is
informed of the finish option with the -aFinish command line option, which takes the format:
-aFinishnFinishOption

where:
n is a number from 0 - 9. This allows for up to 10 finish options on a command line.
FinishOption is a custom defined finish option whose name appears in a custom string in the
.ICS file.

For example, the following line in the lex632.ics file defines the text that would be included in
the printer reset sequence to support stapling on the Lexmark 632 printer.
CustomString1 /STAPLE/\x0D\x0A@PJL\x20SET\x20LSTAPLE=ON

In this example, the finish option name is STAPLE, as defined by the text /STAPLE/ at the
beginning of the finish option.
The finish option is included in the printer reset sequence by referencing the variable
@SYS:STAPLE.
For example, in the lex632.ics file, the printer reset sequence includes:
@PJL COMMENT @SYS:STAPLE.

When Print Agent encounters a command line option referencing the staple finish option, such
as -aFinish1Staple, it checks the .ICS file for a custom string containing a finish option with the
name Staple. Print Agent reads the custom string and inserts the finish option into its SYS
dictionary as @SYS:STAPLE.
When the Print Agent processes the data file that includes the -aFinish1Staple command line
option, it inserts the value of @SYS:STAPLE into the printer reset sequence and a new line with
the PJL staple command is inserted in the print file.
If @SYS:Staple is not defined when the Print Agent processes the data file, then a PJL
comment line is inserted in the print file.

DEFINING CUSTOM FINISH OPTIONS


Central includes a mechanism to select the PJL staple capability on these printers:

HP LaserJet 4350 DTNSL (PostScript L3) - hp4350p.ics

HP LaserJet 4350 DTNSL (PCL5) - hp4350.ics

Lexmark T632 (PostScript L3) - lex632p.ics

Lexmark T632 1200 dpi - lex632.ics

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

54

The .ICS files for each of these printers include the staple finish option and its PJL value
defined as CustomString1. The PJL value is referenced in the reset sequence as the variable
@SYS:STAPLE.
As long as your printer supports PJL, you can define finish options for any of the features
available on your printer. Use the staple finish option from one of the above noted .ICS files as
a guide and the following steps to implement a custom finish option.
To define finish options in the printer reset sequence
1. Find the PJL required to implement the feature on the designated printer. This can be done
by generating output from the Windows driver for that printer. Select the option in the printer
options dialog and print the output to file.
2. In the .ICS file for your printer, define the @SYS variable by creating a new custom string
and adding the PJL to it. Ensure you use \x20 to represent spaces, \x0D\x0A to represent
carriage return and line feed, and that you start your custom string with the text
/FinishName/.
For example, the staple custom string from the hp4350.ics file is:
CustomString1
/STAPLE/\x0D\x0A@PJL\x20SET\x20PROCESSINGTYPE="STAPLING"\x0D\x0A@PJL
\x20SET\x20PROCESSINGOPTION="ONE_STAPLE"\x0D\x0A@PJL\x20SET\x20PROCE
SSINGBOUNDARY=MOPY

This custom string includes this PJL:


@PJL SET PROCESSINGTYPE="STAPLING"
@PJL SET PROCESSINGOPTION="ONE_STAPLE"
@PJL SET PROCESSINGBOUNDARY=MOPY

3. Insert the PJL comment lines, including the @SYS variable referencing your finish option,
into the reset sequence in the order required by the printer. The first PJL command must not
have a newline character preceding it. Each subsequent PJL command must be on a new
line. The last PJL command must be @PJL ENTER LANGUAGE = lang.
4. For example, the reset sequence from the hp4350.ics file is:
Reset
\E%-12345X@PJL\x20RDYMSG\x20DISPLAY="%s"\x0D\x0A@PJL\x20COMMENT
\x20@SYS:STAPLE.\x0D\x0A@PJL\x20ENTER\x20LANGUAGE\x20=\x20PCL\x0D
\x0A\E&l1T\E*t1200R\E&u1200D

The reset sequence includes @SYS:STAPLE., the variable which references the PJL defined
in the custom string. Notice the . (period) after @SYS:STAPLE. The period after the
variable is required, as it delimits the command.
5. Save your .ICS file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

55

Recompiling the .ICS File


Once your .ICS file is updated, it will need to be recompiled before it can be used. Recompiling
the .ICS file is done by accessing the Font Setup for the presentment target associated with
your .ICS file and reapplying the font cartridges.
To recompile the .ICS file
1. Open Output Designer.
2. Click File > Presentment Targets. On the Presentment Target Selection dialog, select the
presentment target associated with the changed .ICS file and click Set as Default Target.
3. Click Font Setup, to display the Property sheets for the target.
4. Click OK. You are returned to the Presentment Target Selection dialog and the .ICS file is
now recompiled.
Note: You must recompile all forms compiled for the presentment target associated with the
changed .ICS file to have these forms take advantage of the new finish options.

Printing Using Custom Finish Options


To have Print Agent access the finish option in the .ICS file and send it to the printer, you must
reference the finish option in a command line option of the format:
-aFinishnFinishOption

where:
n is a number from 0 - 9. This allows for up to 10 finish options on a command line.
FinishOption is the custom defined finish option whose name appears in the custom string in
the .ICS file.

For example, -aFinish1Staple will allow Print Agent to access the finish option called STAPLE.
When Print Agent encounters this command line option, it creates an variable in its Sys
dictionary named @SYS:STAPLE. The value of @SYS:STAPLE is the value of the Staple
custom string from the .ICS file.
When the Print Agent processes the data file that includes the -aFinish1Staple command line
option, it inserts the value of @SYS:STAPLE into the printer reset sequence and a new line with
the PJL staple command is inserted in the print file.
If @SYS:Staple is not defined when the Print Agent processes the data file, then a PJL
comment line is inserted in the print file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

56

COLLATION SUPPORT
Print Agent provides an option, -acollate, to collate printed output. Collation is supported for the
Windows presentment target on Windows 2000 and up, provided the Windows driver for your
printer supports this function. Collation is also supported for PCL and PostScript Print Agent
presentment targets through the use of the @PJL SET QTY = command.
For PCL and PostScript Print Agent presentment targets, if your printer does not support
collation through the use of the @PJL SET QTY = command or if your printer does not have
enough resources to collate your jobs, your can modify the .ICS file PrinterFlag value to force
collation support.
Once the PrinterFlag value is modified, this forced collation method will be used regardless of
support for PJL. Collation is achieved by repeating the print stream the number of times you
have asked for collated copies. For example, if you started Print Agent with -acollateyes -c3,
the print stream will be output three times.
Note: When forced collation occurs, a print job containing multiple copies will appear like a
single print job to the printer. Therefore, finish options such as staple or other custom
finishing options will act upon all copies as if they were one document.
To update your printer .ICS file to allow forced collation
1. Open the .ICS file for your printer. The .ICS files are found in the \CONFIG folder in the
directory where Output Designer is installed.
2. Locate the PrinterFlag value and increase it by 65536. For example, if the PrinterFlag value
was 16704, the new PrinterFlag value will be 82240.
3. Save the .ICS file.

Recompiling the .ICS File


Once your .ICS file is updated, it will need to be recompiled before it can be used. Recompiling
the .ICS file is done by accessing the Font Setup for the presentment target associated with
your .ICS file and reapplying the font cartridges.
To recompile the .ICS file
1. Open Output Designer.
2. Click File > Presentment Targets. On the Presentment Target Selection dialog, select the
presentment target associated with the changed .ICS file and click Set as Default Target.
3. Click Font Setup, to display the Property sheets for the target.
4. Click OK. You are returned to the Presentment Target Selection dialog and the .ICS file is
now recompiled.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

57

Note: You must recompile all forms compiled for the presentment target associated with the
changed .ICS file to have these forms take advantage of forced collation.

PRINT AGENT DICTIONARIES


Print Agent uses various dictionaries to store variables for controlling processing. For example,
standard global fields are variables contained in the Global dictionary. The ^define command
enables you to assign a value to a variable that remains until the end of the Print Agent session.
You can store variables in dictionaries other that the Global dictionary so that no conflict occurs
between a global field and a variable of the same name.

DocVar Dictionary
The DocVar dictionary is read-only, and provides a method of retrieving the template
Information values, set for the template in Output Designer. You can retrieve any of the values
by a variable substitution call to the DocVar dictionary, by referencing these variable names.
This variable substitution is case-insensitive.
Value

Variable Substitution

Contact

@docvar:contact

Creation date

@docvar:creationdate

Custom name
Custom value

To retrieve a Custom value, use the Custom name value in the variable
substitution. For example, to retrieve the Custom value for a Custom
name of Terms_and_Conditions, use:
@docvar:Terms_and_Conditions.

Description

@docvar:description

Designer

@docvar:designer

Name

@docvar:formname

Version

@docvar:version

Version date

@docvar:versiondate

For example, to retrieve the name, version, and the Custom value for a Custom name of
Purchase_Order, include these commands in the data stream:
^field FORM_NAME
@docvar:formname
^field FORM_VERSION
@docvar:version
^field CUSTOM_VALUE
@docvar:Purchase_Order

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

58

Environment Dictionary
The Environment dictionary is read-only, and provides a method of retrieving information that is
normally external to Print Agent. You can use the Environment dictionary to retrieve any
environment string set in the UNIX shell or in DOS by a variable substitution call from the
Environment dictionary.
For example, if a DOS environment variable called LOGIN_NAME is assigned to a login
identifier, you can retrieve it with the command:
^field SALUTATION
Dear @env:LOGIN_NAME.,

Note that the : (colon) is the separator between the dictionary name and the variable name.
The period after the variable delimits the command.
You can also retrieve command line options passed to Print Agent from the Environment
dictionary by referencing these variable names:
Variable

Description

$0 ... $n

returns command line arguments 0 through n. $0 returns the executable program


name. For Microsoft Windows, this includes the full path specification. $1
through $n represent the position of the argument within the command line.
For example, for the command line:
jfmerge poform poform.dat -m42 -l
^field ARG1 @env:$1 returns the template name, poform,
^field ARG2 @env:$2 returns the transaction file name, poform.dat,
^field ARG3 @env:$3 returns the command line option, -m42,
and so on.

$$

returns the complete command line.

$#

returns the number of command line arguments.

Fax Dictionary
The Fax dictionary provides the means for storing faxing information specified by a ^fax
command, a ^define command, or an -adv command line option. Print Agent uses the
information to output one or more faxes, as specified by the options provided.
When you use the ^fax command, Print Agent automatically adds all of the faxing information
to the Fax dictionary.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

59

When you use the other methods for specifying faxing information, you name the Fax dictionary
directly. For example:
^define fax:TO_FAX_NUM_1="1-234-555-6789"

-or-advfax:TO_FAX_NUM_1="1-234-555-6789"

In these examples, fax is the dictionary name, TO_FAX_NUM_1 is one of the keywords for the
^fax command that is supported by your faxing software, and 1-234-555-6789 is the value
assigned to the keyword, in this case, the fax telephone number. You require a : colon
separator between the dictionary name and the variable name.
For details on using the ^fax command, see page 184. For details on specifying fax information
without using the ^fax command, see page 186.

Global Dictionary
The Global dictionary stores global variables. To define global variables, use the ^global or
^define command in the following forms:
^global CLIENT_NAME
Chris Brown

- or ^define global:CLIENT_NAME Chris Brown

- or ^define global:CLIENT_NAME
Chris Brown

In the ^define examples, global is the dictionary name and CLIENT_NAME is the variable
name. Chris Brown is the value assigned to CLIENT_NAME. You require a : colon
separator between the dictionary name and the variable name.
To retrieve the value from the Global dictionary, use the variable substitution command in one of
these forms. The : (colon) is the separator between the dictionary name and the variable
name. The period after the variable delimits the command.
^field SALUATION
Dear @global:CLIENT_NAME.

- or ^field SALUATION
Dear @CLIENT_NAME.

Values from the Global dictionary automatically populate like-named global fields in a subform.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

60

Group Dictionary
The Group dictionary stores the group event and field event handlers that determine the
processing for a data stream. These events are created at template compile time and stored, in
the template, in the JFPREAMBLE and JFPREAMBLE_1 document variables. When Print
Agent opens the template to process its accompanying data stream, it loads the contents of the
JFPREAMBLE and JFPREAMBLE_1 document variables in the Group dictionary. Then, as it
processes the data stream, Print Agent uses the group and field events from the Group
dictionary to determine data placement on the template.
The group and field events contained in the JFPREAMBLE and JFPREAMBLE_1 document
variables are fully described in the Appendix Intelligent Pagination on page 306.

INI Dictionary
The INI dictionary is read-only, and provides a method of retrieving values from the Print Agent
configuration file. You can retrieve any of the values in the dictionary using a variable
substitution call in the format:
@INI:entry!section

where:
@INI: is a literal. @ is the variable substitution prefix character, INI is the name of the
dictionary from which to retrieve the variable and : separates the dictionary name from the
balance of the variable.
entry is the setting name from the configuration file.
! is a literal, to separate entry and section.
section is an optional section name from the configuration file. In the absence of section,
Print Agent will look for entry in the [User] section of its configuration file.

When Print Agent processes the variable, it uses the configuration file under which it is currently
running to retrieve the value.
For example, in this fragment from the Print Agent configuration file:
[Currency_Euro]
CurrencyComma=.
CurrencyCR=CR
[Currency_Euro] is the section and CurrencyComma and CurrencyCR are entries within
the section.

Using the variable:


@INI:CurrencyCR!Currency_Euro.

will return
CR

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

61

Sys Dictionary
UP

TE
DA

The Sys dictionary is reserved for internal use in Print Agent, so any use other than as
documented could conflict with internal use. Users are NOT to use it for general data storage
and retrieval.
The Sys dictionary stores system variables, which can be defined with the ^define command.
For example, to define a value for the initial display setting when opening a PDF file in Adobe
Reader, use this command:
^define sys:pdfLayout Continuous

In the ^define example, sys is the dictionary name and pdfLayout is the variable name.
Continuous is the value assigned to pdfLayout. You require a : colon separator between
the dictionary name and the variable name.
To retrieve a value from the sys dictionary, use the format:
@SYS:Variablename

For example, to retrieve the value of pdfLayout from the sys dictionary, use the variable:
@sys:pdfLayout.

which returns:
Continuous

Values for the following variables can be stored in the Sys dictionary:
pdfLock

pdfAllowPrint

pdfZoom

pdfEncryptionLevel

pdfAllowMod

pdfLayout

pdfUser

pdfAllowCopy

pdfOpenToPage

pdfOwner

pdfAllowAdd

staple

trimBmk

User Dictionary
The User dictionary is an alternate dictionary that can be used to store variables, to prevent
conflicts with like-named variables in the Global dictionary. When you do not supply a dictionary
name, this is the default dictionary that Print Agent uses to define a variable value. For
example:
^define CLIENT_NAME
Chris Brown

stores the value Chris Brown in the dictionary variable CLIENT_NAME. Since the example
does not specify a dictionary, the User dictionary is implied.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Print Agent Processing

62

To retrieve the value from the User dictionary, use the variable substitution command in one of
these forms. The : (colon) is the separator between the dictionary name and the variable
name. The period after the variable delimits the command.
^field SALUTATION
Dear @user:CLIENT_NAME.

- or ^field SALUTATION
Dear @:CLIENT_NAME.

Note that omitting the : from Dear @user:CLIENT_NAME. would make this a reference to
global:CLIENT_NAME.

SECURITY CONSIDERATIONS
For security reasons, you can activate or deactivate certain Print Agent facilities. These
facilities are controlled by the setting, SecurityLevel, in the [JetForm] section of the Print Agent
configuration file, jfmerge.ini. Each of the facilities contains a bit value, which is used to
determine whether the facility is activated.
The facilities and their bit values are:
Bit Value

Facility

The ^shell command.

The ^file command.

The ability for ^form command to reference a template via http:.

The ability to reference environment variables (for example, @ENV:PATH).

16

The ability to trace with -atf when specified with a ^job or ^form.

32

The ability to specify -z with ^job or ^form.

To enable any of these facilities, set the value of SecurityLevel to the sum of the bit values of
those facilities you wish to leave deactivated. For example, a value of 33 (1+32) would
deactivate only ^shell and -z. A value of 63 (1+2+4+8+16+32) would deactivate all facilities.
At installation, the value of SecurityLevel is set to 1, meaning only the ^shell command is
deactivated.

Command Line Options


There are three types of command line options within Print Agent:

Format options, that define how Print Agent handles the overall data stream.

Processing options, that change the way Print Agent processes and prints data.

XML options, that define how Print Agent processes XML data.

The options you choose depend on the type of data you wish to process.

COMMAND LINE SYNTAX


When you run Print Agent, you must specify the name of a template and optionally a
transaction file and print options. The following is the command syntax. Items enclosed in [ ]
(square brackets) are optional.
jfmerge formfile -aiifilename [datafile] [options]

where:
formfile is the template (form) name. It may be any of a fully qualified file name, a fully
qualified URL beginning with http:, or a file or resource name without a path. If formfile is
not fully qualified, Print Agent will attempt to open it as a file in the current directory. If this
attempt fails and the -afp template path option (see page 82) has been supplied, Print Agent
will try again using the template path.
formfile may also be a place holder when a ^form command (see page 191) occurs early in
the data stream.
-aiifilename is the name of the Print Agent configuration file, jfmerge.ini. Print Agent
cannot run without its configuration file.
datafile is the transaction file to merge with the template, and options are one or more of
the format or processing options.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

64

FORMAT OPTIONS
Format options change the way Print Agent handles data records. The formats are mutually
exclusive. You can choose only one format at a time, which you must identify to Print Agent at
the start of each session. For the format options, see Data Formats on page 27.

Field-Nominated Format
Field-nominated format is the default. When you do not specify a format option, Print Agent
processes the transaction file in field-nominated format.

XML Format
Data in XML format is initially treated as if it were field-nominated format. Central sets the
substitution variable @XMLData to yes when it detects an XML job card, but to (the empty
string) when it does not. When this substitution is made into the Task Table entry for Print
Agent, the result is that Print Agent receives either -axmlyes or -axml on its command line.
-axmlyes forces Print Agent to process the transaction file as XML. -axml leaves it up to Print
Agent to inspect the transaction file and decide for itself whether the file contains XML or not.
When Print Agent identifies the data stream as an XML data stream, it processes the data in
XML format.
Note that all rules specified by the XML standard must be adhered to by all XML data files. In
particular note that:

If a <?xml ...?> processing instruction is present in the data file it must be the very first thing
in the data file except optionally for a UTF-8 byte-order mark. This particular processing
instruction must not be preceded even by a space, tab, or newline.

If a <?xml ...?> processing instruction is present in the data file it must include version=1.0.

If either of these rules is violated, Print Agent will be unable to parse the file as XML and will quit
with an XML parsing error. Once Print Agent decides that the file is XML, it is committed to XML
and cannot proceed unless it can parse the file as XML.

Fixed Record Format


Fixed record format is a variation of field-nominated format. When the data stream contains
^record and ^data commands, Print Agent processes the data in fixed record format.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

65

-d (Comma-Delimited Format)
Format
-d[x]

To merge data in comma-delimited format, start Print Agent with the -d option.
For example, to merge a template called data.mdf with comma-delimited data in a file named
numbers.dbx, start Print Agent with this command:
jfmerge data.mdf numbers.dbx -aiijfmerge.ini -d

When the data contains a text string that has a comma, enclose the text string in (quotation
marks). Print Agent uses as the default characters for enclosing text strings. When the data
uses a different character, follow the -d with the character you wish to use.
For example, to merge a template called base.mdf with comma-delimited data in a file named
numbers.dbx, and use a % (percent sign) to enclose text strings, start Print Agent with this
command:
jfmerge base.mdf numbers.dbx -d%

You can specify a character value with the -d option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

PROCESSING OPTIONS
There are a number of options that change the way Print Agent processes and prints data
records. Processing options override the equivalent options set in the template.
The format of the options is optionargument, option{argument} or option[argument]. An
argument is a value that refines the option. Arguments without brackets or in brace brackets are
mandatory. If the arguments in brace brackets are separated by vertical lines, such as
{item1|item2|item3}

you can use only one of the arguments within the brace brackets with the option at any one
time.
Arguments in square brackets are optional. If the arguments in square brackets are separated
by vertical lines, such as
[item1|item2|item3]

you can use only one of the arguments within the square brackets with the option at any one
time.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

66

You can choose any of the following processing options:

-aafgd (Allow Field Global Data)


Format
-aafgd{yes|no}

To store the value of global ^field commands in the global dictionary, start Print Agent with the
-aafgdno option. This is the default. This only affects values for fields with a global designation
because of a previous ^global command.

-aafge (Allow Field Global Events)


Format
-aafge{yes|no}

To control the triggering of !FldUsed and !FldNotAvail events for global fields, start Print Agent
with the -aafgeyes option. This is the default. This option applies only to dynamic templates.

-aafgfd (Allow Field Global Flag Data)


Format
-aafgfd{yes|no}

To store the value of global ^field commands in the global dictionary, start Print Agent with the
-aafgfdyes option. This is the default. This only affects values for fields with a global
designation because the global attribute for the field was set in Output Designer.

-aap (Print All Pages)


Format
-aap{on|off}

To print all pages of a template, start Print Agent with the -aapon option. This is useful when
you have a template with a page containing only boilerplate and no fields. Without -aapon, Print
Agent prints only those pages of a template with data for the fields, as well as pages made
active with either the ^form or ^page command.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

67

For example, a template called poform.mdf is a three page template with fields on pages one
and two and the purchase terms and conditions on page three. To merge the template with a
transaction file named poform.dat and print all three pages, start Print Agent with:
jfmerge poform poform.dat -aiijfmerge.ini -aapon

To print only those pages containing data, start Print Agent with the -aapoff option. This is the
default. However, you require an explicit page position command to position to the pages
containing the fields, in order to prevent printing of intervening pages with no fields.
Caution: Do not use the -aapon option with dynamic templates. Doing so causes incorrect
print results.

-aat (Use Printer Association Table)


Format
-aat{on|off}

To print templates on the Hewlett-Packard LaserJet 5si printer and draw the macros from the
fixed disk, start Print Agent with the -aaton option.
jfmerge poform poform.dat -aiijfmerge.ini -aaton

For storing macros on the printer hard disk, see the -h argument of the -m option on
page 138.
The -aat option is intended for templates compiled for PCL presentment targets other than the
LaserJet 5si. Using this option means that there is no need to re-compile templates when
printing to the LaserJet 5si printer. The -aaton option causes Print Agent to treat the template
as compiled for a LaserJet 5si printer, even when the template is compiled for some other PCL
printer.
Using the -aatoff option does not force Print Agent to search for a macro on the hard disk.
However, it does not prevent the search when the template is compiled for a LaserJet 5si
printer. When Print Agent prints a template compiled for a LaserJet 5si printer, it always
searches for the macro on the hard disk. The default is -aatoff.
The -aat option affects templates compiled for PCL presentment targets. When the template is
compiled for another type of presentment targets, -aat is silently ignored; even when the
template is compiled for a LaserJet 5siMX PostScript printer.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

68

-abmk (Bookmark File)


Format
-abmkfilename

To specify a bookmark file for bookmarks that appear in the PDF output, start Print Agent with
the -abmk option. Bookmarks are links to different records within the PDF file, used to assist in
navigation. The bookmark file is a text file, which you can create with any text editor. For details
on creating a bookmark file, see PDF Output on page 43.
You pass the bookmark file to Print Agent, using the -abmkfilename command line option. If the
bookmark file includes sections, you advise Print Agent of the section within the file to use with
the -abmssection command line option (see page 69). For example:
jfmerge formfile datafile -aiijfmerge.ini -zc:\finance\p_order.pdf
-abmkc:\finance\bookmark.bmk -abmsP_Order

When you include bookmarks in the PDF file, they appear in the left pane of the Adobe Reader
window.
PDF File Displayed In Adobe Reader

bookmarks

In the above graphic, the values from the field Vendor Code are the bookmarks. Clicking on any
of the bookmarks will take you to the record containing that value.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

69

-abms (Bookmark Section)


Format
-abmsSection

To specify a bookmark section within a bookmark file, start Print Agent with the -abms option.
Section is a logical name for a grouping of bookmarks, as it appears in the bookmark file.
Section tells Print Agent which group of bookmarks to use for the job it is currently
processing. For details on creating a bookmark file, see PDF Output on page 43.
When you use the -abms option, you must identify the bookmark file using the -abmk option
(see page 68).

-acollate (Collate Output)


Format
-acollate {yes|no}

To specify collation of the printed output, start Print Agent with the -acollate option. This option
works with the -c (copies) option. Setting -acollateyes results in all copies requested by the
-c option being collated.
With -acollateno, the printed output is not collated. This is the default.
Collation is supported for the Windows presentment target on Windows 2000 and up, provided
the Windows driver for your printer supports this function.
Collation is also supported for PCL and PostScript Print Agent presentment targets. If your
printer does not support collation through the use of the @PJL SET QTY = command, or if
your printer does not have enough resources to collate your jobs, refer to the section Collation
Support on page 57.
The collation option will not work with the ^copies command; only with the -c option on the
command line.

-acs (Century Split)


Format
-acsnn

To convert a date with a two digit year to a date with a four digit year, start Print Agent with the
-acs option. nn is the number used to determine the first two digits of the resulting four digit
year. If the two digit year is less than nn, the preface for the two digit year is 20; otherwise,

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

70

the preface for the two digit year is 19. The default value for nn is 10, causing all two digit
years between 00 and 09 to start with 20, and all two digit years between 10 and 99 to start
with 19.
For example, when you start Print Agent with the command
jfmerge formfile datafile -aiijfmerge.ini -acs25

dates with two digit years from 00 to 24 result in 2000 to 2024, and dates with two digit years
from 25 to 99 result in 1925 to 1999.
nn must be a maximum of two digits or the letters AA. When you use more than two digits, only
the first two digits are considered. When there are no digits, Print Agent ignores the -acs option.
For example, use -acs05 or -acs5, not -acs. When you use AA, the preface for all two digit
years is 20.
Note: The -acs option does not affect dates supplied with four digit years, or $DATE. It is used
only for conversions from two digit year formats to four digit year formats. However, this
does include conversions of dates with a two digit year supplied using daten with the
\pic command (see page 242).

-acu (Currency Formatting)


Format
-acu{cs|cc|cd|cr|cic|cid|db|cp|cl}=n

To handle currency formatting in fields with a picture format, use the -acu option. By default,
Print Agent uses English North American currency formatting:
Default

Option

currency symbol

thousands separator

decimal separator

CR

credit symbol

DB

debit symbol

()

currency parentheses

left

currency symbol location

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

71

You can change the default symbols, as described in the following sections.

-acu Option Arguments


cs (Currency Symbol)
Format
-acucs=n

To change the currency symbol, start Print Agent with the -acucs option. By default, Print Agent
uses a $ (dollar sign) to indicate currency:
$37.50

For example, to change the currency symbol to a (pound sterling), start Print Agent with this
command:
jfmerge poform poform.dat -aiijfmerge.ini -acucs=

Print Agent supports currencies that require more than one character as a symbol and accepts
a maximum of four characters. For example, to change the currency symbol to DM (deutsche
mark), start Print Agent with this command:
jfmerge poform poform.dat -aiijfmerge.ini -acucs=DM

You can specify a character value with the -acucs option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

cc (Thousands Separator)
Format
-acucc=n

To change the thousands separator, start Print Agent with the -acucc option. By default, Print
Agent uses a , (comma) to indicate thousands of units:
14,000,000

For example, to change the thousands separator to a . (period), start Print Agent with this
command:
jfmerge poform poform.dat -aiijfmerge.ini -acucc=.

You can specify a character value with the -acucc option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

72

cd (Decimal Separator)
Format
-acucd=n

To change the decimal separator, start Print Agent with the -acucd option. By default, Print
Agent uses a . (period) to indicate a decimal:
3.14159

For example, to change the decimal separator to an , (comma), start Print Agent with this
command:
jfmerge poform poform.dat -aiijfmerge.ini -acucd=,

You can specify a character value with the -acucd option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

cr (Credit Symbol)
Format
-acucr=n

To change the credit symbol, start Print Agent with the -acucr option. The maximum is four
characters. By default, Print Agent uses CR (credit) to indicate a credit balance:
12.75CR

For example, to change the credit symbol to PLUS, start Print Agent with this command:
jfmerge poform poform.dat -aiijfmerge.ini -acucr=PLUS

You can specify a character value with the -acucr option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

cic (Incoming Thousands Separator)


Format
-acucic=x

To specify the thousands separator for incoming data, start Print Agent with the -acucic option.
This option is useful when the incoming data stream is generated with different currency
separators than those defined for the numeric picture clauses in the fields on your template.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

73

By default, Print Agent uses a , (comma) to indicate thousands of units:


14,000,000

For example, to specify the incoming thousands separator as a . (period), start Print Agent
with this command:
jfmerge poform poform.dat -aiijfmerge.ini -acucic=.

You can specify a character value with the -acucic option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

cid (Incoming Decimal Separator)


Format
-acucid=x

To specify the decimal separator for incoming data, start Print Agent with the -acucid option.
This option is useful when the incoming data stream is generated with a different decimal
separator than that defined for the numeric picture clauses in the fields on your template.
By default, Print Agent uses a . (period) to indicate a decimal:
3.14159

For example, to specify the incoming decimal separator as an , (comma), start Print Agent
with this command:
jfmerge poform poform.dat -aiijfmerge.ini -acucid=,

You can specify a character value with the -acucid option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

db (Debit Symbol)
Format
-acudb=n

To change the debit symbol, start Print Agent with the -acudb option. The maximum is four
characters. By default, Print Agent uses DB (debit) to indicate a debit balance:
29.95DB

For example, to change the debit symbol to LESS, start Print Agent with this command:
jfmerge poform poform.dat -aiijfmerge.ini -acudb=LESS

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

74

You can specify a character value with the -acudb option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

cp (Currency Parenthesis)
Format
-acucp=n

To change the currency parentheses, start Print Agent with the -acucp option. By default, Print
Agent uses ( ) (left and right parentheses) to indicate negative numbers:
(850)

For example, to change the currency parentheses to { } (brace brackets), start Print Agent with
this command:
jfmerge poform poform.dat -aiijfmerge.ini -acucp={}

You can specify a character value with the -acucp option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

cl (Currency Symbol Location)


Format
-acucl=n

To change the location of the currency symbol, start Print Agent with the -acucl option. The
locations are left and right. By default, Print Agent places the currency symbol on the left.
$14,000

For example, to move the currency symbol to the right of the currency string, start Print Agent
with this command:
jfmerge poform poform.dat -aiijfmerge.ini -acucl=right

which results in:


14,000$

-adp (Data Path)


Format
-adpdatapath

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

75

To specify a path for a file referenced in the data stream by a ^file command, start Print Agent
with the -adp option. Providing a path with the -adp option gives you the flexibility of changing
the storage location for your files without impacting your data stream.
Print Agent first attempts to locate the file with the information supplied with the ^file command:

If the file name supplied with the ^file command contains an absolute path reference, Print
Agent ignores the -adp option.
For example, with an absolute path of:
^file \\server1\files\info.txt

- or ^file c:\files\info.txt

Print Agent attempts only to open the file name as given.

If the file name supplied with the ^file command is not an absolute path reference, Print
Agent searches the current folder for the name as given.
For example, if the file name provided with the ^file command is:
^file files\info.txt

Print Agent searches for info.txt in the ...\files\ subfolder of the current folder.
If Print Agent cannot locate the file using the information supplied with the ^file command, it
examines the -adp option:

If the path supplied with the -adp option contains an absolute path reference, Print Agent
prefixes the path supplied with the -adp option to the file name supplied with the ^file
command.
For example, if the file name provided with the ^file command is:
^file files\info.txt

and the path provided with the -adp option is:


-adp\\server1\finance

Print Agent searches for info.txt in the \\server1\finance\files\ folder.

If the path supplied with the -adp option is not an absolute path reference, Print Agent
prefixes the path supplied with the -adp option to the file name and searches the current
folder.
For example, if the file name provided with the ^file command is:
^file files\info.txt

and the path provided with the -adp option is:


-adpfinance

Print Agent searches for info.txt in the ...\finance\files\ subfolder of the current folder.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

76

-adu (Duplex Printing)


Format
-adu{off|on|left|long|top|short|*ptrstring|+encoded-ptrstring}

To specify two-sided printing, use the -adu option. This option is useful when you want to print
in duplex for binding the output in data binders.
By default, Print Agent uses the duplex option compiled into the template.
Several of the arguments for the -adu option produce the same result. The arguments are:

off
Format
-aduoff

To print on only one side of the page, start Print Agent with this command:
jfmerge -aiijfmerge.ini -aduoff

Print Agent prints in either portrait or landscape page orientation. The template designer
determines the orientation requirements at the time of template design.
Portrait Orientation

Landscape Orientation

on
Format
-aduon

To print on both sides of the page, start Print Agent with this command:
jfmerge -aiijfmerge.ini -aduon

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

77

The template prints for binding along the long edge of the page, whether portrait or landscape
orientation:
Binding edge
Binding
edge

left
Format
-aduleft

To print the page with the left edge of the front side as the binding edge, start Print Agent with
this command:
jfmerge -aiijfmerge.ini -aduleft

This option is for portrait orientation. The template prints for binding along the left edge:

Binding
edge

long
Format
-adulong

To print the page with the long edge of the front side as the binding edge, start Print Agent with
this command:
jfmerge -aiijfmerge.ini -adulong

The template prints for binding along the long edge, whether portrait or landscape orientation:
Binding edge
Binding
edge

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

78

top
Format
-adutop

To print the page with the top edge of the front side as the binding edge, start Print Agent with
this command:
jfmerge -aiijfmerge.ini -adutop

This option is for portrait orientation. The template prints for binding along the top edge.
Binding edge

short
Format
-adushort

To print the page with the short edge of the front side as the binding edge, start Print Agent with
this command:
jfmerge -aiijfmerge.ini -adushort

The template prints for binding along the short edge, whether portrait or landscape orientation:
Binding edge

Binding
edge

*ptrstring
Format
-adu*ptrstring

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

79

To select duplex printing using printer commands, start Print Agent with the -adu*ptrstring
option. ptrstring is the printer command string for the duplex options, as set by the printer
manufacturer. It must be preceded by an * (asterisk). It is not interpreted by Print Agent but
sent directly to the printer. It may not contain newline characters or other characters that are
special to Print Agent.
For example, to print the page with the long edge of the front side as the binding edge, for which
the printer manufacturer has designated a printer command string of true setduplexmode false
settumble, start Print Agent with this option:
-adu"*true setduplexmode false settumble"

Windows printer drivers do not support the use of *ptrstring with -adu.
Refer to the documentation provided with your printer for the available duplex options and their
equivalent command strings.

+encoded-ptrstring
Format
-adu+encoded-ptrstring

To select duplex printing using printer commands, start Print Agent with the
-adu+encoded-ptrstring option. encoded-ptrstring is the printer command string, but
potentially with some or all characters encoded as described in the Appendix Numeric
Character Values on page 319. It must be preceded by a + (plus).
For example, to print the page with the long edge of the front side as the binding edge, for which
the printer manufacturer has designated a printer command string of <ESC> (the ASCII escape
character) followed by &l1S, start Print Agent with this option:
-adu"+\027&l1S"

Windows printer drivers do not support the use of +encoded-ptrstring with -adu.
Refer to the documentation provided with your printer for the available duplex options and their
equivalent command strings.

-adv (Define Dictionary Variable)


Format
-advname=value

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

80

To define dictionary variables from the command line, start Print Agent with the -adv option.
name is a variable identifier of the form [dictionary-name:]variable-name and value is the
value to place in the dictionary variable. value may be any characters, including spaces and
most punctuation marks. When value contains spaces, surround the name=value with
(quotation marks).
When you do not specify a dictionary name, the default dictionary is User. This means that
starting Print Agent with this command:
jfmerge -aiijfmerge.ini -adv"user:name=Tom Brown"

is the same as starting Print Agent with:


jfmerge -aiijfmerge.ini -adv"name=Tom Brown"

See also:

^define (Assign Value to Dictionary Variable) on page 180, for another method of defining
dictionary variables.

Page 186, for faxing using the Fax dictionary and the -adv option.

Page 316 for replacing lines of input data using !Replace! and the -adv option.

-aeb (Set Extended Barcode Processing)


Format
-aeb{on|off}

To use extended barcode processing, start Print Agent with the -aebon option.
Extended barcode processing allows Print Agent to use special extended codes, as well as
some non-printable function codes, in code 128, subsets CodeA, CodeB, and CodeC.
Use the -aebon option to identify the following characters in the data stream for substitution
with the equivalent CodeA, CodeB, and CodeC characters:
Character CodeA equivalent CodeB equivalent CodeC equivalent
\A

CODEA

\B

CODEB

\C

CODEC

CODEC

\1

FNC1

FNC 1

\2

FNC 2

FNC 2

\3

FNC 3

FNC 3

\4

CODEA
CODEB

FNC 4

FNC 1

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

81

Character CodeA equivalent CodeB equivalent CodeC equivalent


\D

US

DEL

\S

SHIFT

SHIFT

\\

To ignore extended barcode processing, start Print Agent with the -aeboff option. This is the
default.

-afdf (Format Hard Disk Drive)


Format
-afdf

To format the printer hard disk drive, start Print Agent with the -afdf option.
This option is available for certain printers that contain hard disks.

-afinish (Specify Finish Option)


Format
-afinishnFinishOption

To specify that a finish option be sent to the printer, start Print Agent with the -afinish option.
Finish options are only supported on printers that support PJL (Printer Job Language) and only
on Print Agent presentment targets - they are not supported for Windows drivers.
n is a number from 0 - 9. This allows for up to 10 finish options on a command line.

It does not matter what value you choose for n as long as it is in the range 0 - 9. If you put
more that one -afinish option on the command line with the same value for n, then the
rightmost one on the line will be used. If you put multiple -afinish options on the command line
with unique values for n, then they will ALL be used. This will allow -afinish1Staple and
-afinish2HolePunch if your printer has support for both stapling and hole punching on the
same document.
FinishOption is a custom defined finish option whose name appears in a custom string in
the .ICS file for the printer. The .ICS files are found in the \CONFIG folder in the directory where
Output Designer is installed.
For completed details about defining custom finish options for the features available on your
printer, see Defining Custom Finish Options on page 54.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

82

Staple Support
Print Agent includes a mechanism to select the PJL staple capability on these printers:

HP LaserJet 4350 DTNSL (PostScript L3) - hp4350p.ics

HP LaserJet 4350 DTN (PCL5) - hp4350.ics

Lexmark T632 (PostScript L3) - lex632p.ics

Lexmark T632 1200 dpi - lex632.ics

The ICS files noted above include the custom strings necessary to provide the PJL staple
capability.
To specify that a request to staple the printed output be sent to the printer when using of the
above noted printers, start Print Agent with the -afinishnStaple option. Ensure you substitute a
number from 0 - 9 for n, for example -afinish1Staple.
The staple option will not work with the ^copies command; only with the -c option on the
command line. This is because PJL parameters must occur at the start of the job.
If you want collated stapled copies of a document, ensure you use the -acollateyes option with
the -afinishnStaple option. For details about the collate option, see -acollate (Collate Output)
on page 69.
For complete details about staple support and how it is implemented, see Staple Document
Support on page 53.

-afmf (Format Nonvolatile Memory)


Format
-afmf

To format the printer nonvolatile (flash) memory, start Print Agent with the -afmf option.
This option is available for certain printers that support nonvolatile memory.

-afp (Template Path)


Format
-afpformpath

To specify a path for a template referenced in the data stream by a ^form (see page 191) or
\form (see page 260) command, start Print Agent with the -afp option. Providing a path with the
-afp option gives you the flexibility of changing the storage location for your templates without
impacting your data stream.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

83

Print Agent first attempts to locate the template with the information supplied with the ^form or
\form command:

If the template name supplied with the ^form or \form command begins with an absolute
path, Print Agent ignores the -afp option.
For example, given the following commands:
^form \\server1\forms\myform.mdf

- or ^form c:\forms\myform

- or ^form http://www.adobe.com/forms/myform.mdf

Print Agent opens the template or downloads it from the HTTP server using the path
supplied.

If the template name supplied with the ^form or \form command does not contain a full path,
Print Agent searches the current folder for a file with the supplied name, adding an .mdf
extension if no extension is supplied.
For example, if the template name provided with the ^form command is:
^form forms\myform.mdf

Print Agent searches for myform.mdf in the ...\forms\ subfolder of the current folder.
If Print Agent cannot locate the template using the information supplied with the ^form or \form
command, it examines the -afp option:

If the path supplied with the -afp option starts with http:, Print Agent prefixes the path
supplied with the -afp option to the resource name supplied with the ^form or \form
command. If the resulting URL contains \ (backslash) characters, Print Agent converts
them into / (forward slash) characters to comply with Internet technical standards.
For example, if the resource name supplied with the ^form command is:
^form forms\myform.mdf

and the path provided with the -afp option is:


-afphttp:\\www.adobe.com

Print Agent downloads the template using the URL:


http://www.adobe.com/forms/myform.mdf

If the path supplied with the -afp option contains an absolute path reference that does not
start with http:, Print Agent prefixes the path supplied with the -afp option to the template
name supplied with the ^form or \form command.
For example, if the file name provided with the ^form command is:
^form forms\myform.mdf

and the path provided with the -afp option is:


-afp\\server1\finance

Print Agent searches for myform.mdf in the \\server1\finance\forms\ folder.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

84

If the path supplied with the -afp option is not an absolute path reference, Print Agent
prefixes the path supplied with the -afp option to the template name and searches the
current folder.
For example, if the template name provided with the ^form command is:
^form forms\myform.mdf

and the path provided with the -afp option is:


-afpfinance

Print Agent searches for myform.mdf in the ...\finance\forms\ subfolder of the current folder.

-afr (Set Field Attributes)


Format
-afr{on|off}

When Print Agent encounters a ^field command, it resets all field attributes to that of the new
field. Field attributes include font, indentation, tab settings, subscripts and superscripts. The
-afron option is the default for Print Agent, and causes a ^field command to reset the current
attributes.
Including the -afroff option causes Print Agent to ignore the resetting of field attributes when it
encounters a ^field command.
For another method of setting field attributes, see [freset|nofreset] on page 201.

-afx (Discard Unknown Fields)


Format
-afx{on|off}

To discard data for unknown fields, start Print Agent with the -afxon option.
To place data for an unknown field in the next field on the template, start Print Agent with the
-afxoff option. This is the default. The command:
jfmerge poform podata.dat -aiijfmerge.ini -afxoff

produces the same result as:


jfmerge poform podata.dat -aiijfmerge.ini

where poform is the name of the template and podata.dat is the name of the transaction file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

85

-agsb (Gray-scale Brightness)


Format
-agsbnn

To adjust the appearance of the printed gray-scale image, start Print Agent with the -agsb
option. nn is the brightness setting, with a range from 0 to 100. 0 makes a normal contrast
image completely black, while 100 makes it completely white. The default is 50.
The -agsb option applies only to gray-scale images printed via the ^graph (see page 194) or
\graph (see page 262) commands, or in a field defined as a Graphics type field in Output
Designer. It does not apply to PostScript Level 2 or PCL 6 printing, which handles gray-scale in
the printer itself, or to printing via Windows printer drivers, which handle gray-scale in the driver.
Gray-scale images may be stored in PCX format files or in TIFF format files, but not in JPEG
compressed TIFF files.

-agsc (Gray-scale Contrast)


Format
-agscnn

To adjust the appearance of the printed gray-scale image, start Print Agent with the -agsc
option. nn is the contrast setting, with a range from 0 to 100. 0 makes the image wash out
completely, while 100 doubles the contrast compared to that stored in the image file. The
default is 50.
Laser printers are designed so that if adjacent pixels are black, they bleed together; this makes
the text look like solid letters rather than the collection of pixels it really is. However, for images
on which the dithering method was used (-agsmdither), this has the effect of making dark grey
areas into solid black. This causes the printed image to have a higher contrast than the image
stored in the image file. Although this may be acceptable, it does actually obscure some detail
in the image. If you want maximum visible detail, you can bring it out by reducing the contrast
somewhat using -agscnn. The optimum setting depends on the printer and may vary with time
and the condition of the toner cartridge, but a setting in the range of 40 to 45 seems to be a
good compromise.
The -agsc option applies only to gray-scale images printed via the ^graph (see page 194) or
\graph (see page 262) commands, or in a field defined as a Graphics type field in Output
Designer. It does not apply to PostScript Level 2 or PCL 6 printing, which handles gray-scale in
the printer itself, or to printing via Windows printer drivers, which handle gray-scale in the driver.
Gray-scale images may be stored in PCX format files or in TIFF format files, but not in JPEG
compressed TIFF files.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

86

-agsm (Gray-scale Method)


Format
-agsm{bluenoise|threshold|dither}

To set the method of display for image files containing gray-scale images, start Print Agent with
the -agsm option. In gray-scale images, each pixel is represented by a number giving its
monochrome brightness.
The bluenoise argument displays the gray-scale image by spreading the pixels as
homogeneously as possible. This is the default.
The threshold argument displays the gray-scale image with each pixel independently
converted to black or to white. Any pixel with a brightness less than the threshold setting
appears as white and any pixel with a brightness greater than the threshold setting appears as
black. For the threshold setting, see -agst (Gray-scale Threshold) on page 86.
The dither argument displays the gray-scale image with a scattering of dots that is denser
where the image is darkest. This allows for a better looking image and shows much more of the
detail in the image.
The -agsm option applies only to gray-scale images printed via the ^graph (see page 194) or
\graph (see page 262) commands, or in a field defined as a Graphics type field in Output
Designer. It does not apply to PostScript Level 2 or PCL 6 printing, which handles gray-scale in
the printer itself, or to printing via Windows printer drivers, which handle gray-scale in the driver.
Gray-scale images may be stored in PCX format files or in TIFF format files, but not in JPEG
compressed TIFF files.

-agst (Gray-scale Threshold)


Format
-agstnn

To adjust the appearance of the printed gray-scale image, start Print Agent with the -agst
option. nn is the threshold setting, with a range from 0 to 100. 0 makes an image completely
black, while 100 makes it completely white. The default is 50.
The -agst option applies only to gray-scale images printed via the ^graph (see page 194) or
\graph (see page 262) commands, or in a field defined as a Graphics type field in Output
Designer. It does not apply to PostScript Level 2 or PCL 6 printing, which handles gray-scale in
the printer itself, or to printing via Windows printer drivers, which handle gray-scale in the driver.
Gray-scale images may be stored in PCX format files or in TIFF format files, but not in JPEG
compressed TIFF files.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

87

-agv (Initialize Global Fields)


Format
-agvfieldname=value

To enter a value for a global field from the command line, start Print Agent with the -agv option.
fieldname is the name of the global field. fieldname can be any valid field name. value is
the value to place in the global field. value may be any characters, including spaces and most
punctuation marks. When value contains spaces, surround the fieldname=value with
(quotation marks).
For example, to enter the name Tom Brown in a global field named MGR_NAME, start Print
Agent with this command:
jfmerge -aiijfmerge.ini -agv"mgr_name=Tom Brown"

-aifgf (Ignore Global Field Flag)


Format
-aifgf{yes|no}

To activate the processing of global fields set for the template in Output Designer, start Print
Agent with the -aifgfno option. This is the default. When Print Agent activates a template
containing global fields, it adds these fields to the Global dictionary and treats them as though
they were defined as global fields in the data stream, using the ^global or ^define global
commands.
Starting Print Agent with the -aifgfyes option causes it to ignore global fields set for the
template in Output Designer.

-aii (Configuration File Name)


Format
-aiifilename

To specify the name for the Print Agent configuration file, start Print Agent with the -aii option.
The default is jfmerge.ini.
This option is mandatory. You must specify the -aii option on the command line used to invoke
Print Agent. For tasks invoked via Central, you must include the -aii@IniFileName option in the
Program options for the task.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

88

-aip (Start Print at Page Specified)


Format
-aipnn

To start printing at a specified page number within the template, start Print Agent with the -aip
option. nn is the number of the first page to print.
Renumbering of pages on output using the -s option (see page 152) does not affect this option.

-aitc (Set Inline Text Control)


Format
-aitc{on|off}

To activate processing of Inline Text Control commands, start Print Agent with the -aitcon
option. This is the default.
jfmerge formfile datafile -aiijfmerge.ini -aitcon

Without this option, Print Agent processes Inline Text Control commands as data, and prints
them literally rather than executing them. You may set Inline Text Control processing off with
-aitcoff.
For another method of activating Inline Text Control commands, see ^inline (Activate Inline
Text Control Processing) on page 199.

Custom Line Spacing


When using a multi-line field with line spacing set to a different height than the default and with
inline text control on, the physical line spacing on the printed output is not the same as with
inline text control off. The problem exists whether you use -aitcon on the command line or
^inline on in the data stream.
The suggested method of resolving this issue is to ensure inline text control is off when custom
line spacing is required. An alternative method of resolving the issue is to have the reformat
option set to no, either with -rno or ^reformat no.

-ajitf (Just-in-Time-Fonts)
The command line option has been cancelled and superseded with -ajutf (Just-in-Time Fonts).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

89

-ajitm (Just-in-Time Macros)


The command line option has been cancelled and superseded with -ajutm (Just-in-Time
Macros).

-ajutf (Just-in-Time Fonts)


Format
-ajutf{yes|no}

To control the downloading of fonts to the printer, start Print Agent with the -ajutf option.
With -ajutfyes, fonts are downloaded to the printer only if they are needed to complete the print
job. This is the default. Downloading only the fonts called for by the data stream and the
template boilerplate will reduce the size of output print files.
With -ajutfno, all fonts defined in the printer configuration file are downloaded to the printer at
the start of the print job.

-ajutm (Just-in-Time Macros)


Format
-ajutm{yes|no}

To control the downloading of macros to the printer, start Print Agent with the -ajutm option.
With -ajutmyes, pages and subforms compiled into the template are downloaded to the printer
only if they are needed to complete the print job. This is the default. Downloading only the
template elements called for by the data stream will reduce the size of output print files.
With -ajutmno, all pages and subforms compiled into the template are downloaded to the
printer at the start of the print job.
The just-in-time macros feature is available for PCL 5, PCL-XL, PostScript, and PDF. However,
it does not work for all printers supported by Print Agent. To confirm whether the presentment
target you are using supports the just-in-time macros feature, check the .ICS file for that
presentment target.

-all (Log File Name)


Format
-allfilename

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

90

To specify the name of the log file to use for processing messages, start Print Agent with the -all
option. When you do not specify filename, Print Agent uses the default file name from its
configuration file. On platforms that support it, filename can also be the file descriptor
stdout.
Log file entries have the format:
DATE TIME MODULE: MESSAGE

where DATE has the format YYMMDD, TIME has the format HH:MM:SS, MODULE is the
name of the executable program that generated the message and MESSAGE is the text of the
log message.
You can set the level of message detail that Print Agent writes to the jfserver.log file in two
ways:

By setting the Message Display option (see page 17) when configuring Print Agent

By starting Print Agent with the -v option (see page 152).

If desired, you can also change the format of the DATE and TIME settings. You do this in the
Print Agent configuration file, jfmerge.ini, in the [JetForm] section under the setting
MsgDateStampFormat.
The possible values for the settings are any valid XPG format specifiers, but the following are
the most useful:
Specifier

Description

%y

Year without century (two digit)

%Y

Year with century (4 digit)

%m

Month as a number

%d

Day of month as a number

%H

Hour in 24 hour format

%I

Hour in 12 hour format

%M

Minute as a number

%S

Second as a number

%p

AM/PM indicator (for 12 hour clock)

The default specifier, %Y/%m/%d %H:%M:%S, provides a date in the format, YYYY/MM/DD
HH:MM:SS:
2000/01/31 15:47:23

For a two digit year, use a specifier of %y/%m/%d %H:%M:%S. This provides the date in the
format YY/MM/DD HH:MM:SS:
00/01/31 15:47:23

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

91

The use of / (slash marks), : (colons) and spaces in the specifier are for ease of readability
only. For example, using a specifier of %Y%m%d%I%M%S%p provides the date in the format
YYYYMMDDHHMMSSXM:
20000131034723PM

whereas, using a specifier of %Y/%m/%d/ %I:%M:%S:%p provides the date in the format
YYYY/MM/DD HH:MM:SS XM:
2000/01/31 03:47:23 PM

Note: The default configuration for Central and components (Print Agent, Transformation
Agent, etc.) is to write to the same log file, jfserver.log. To ensure that all components
write to the log file in the same manner, it is recommended that the
MsgDateStampFormat setting in the configuration file for each component be the
same.

-alp (Logo Path)


Format
-alplogopath

To specify a path for a logo file referenced in the data stream by a ^graph or \graph command,
start Print Agent with the -alp option. Providing a path with the -alp option gives you the
flexibility of changing the storage location for your logos without impacting your data stream.
The logo file may be bound into the template at design time, when the template is designed with
Output Designer. Print Agent always searches the template first for the logo file.
Note: The -alp command line option supports file names with embedded blanks (spaces).
However, file names with embedded blanks must be enclosed in (quotation marks).
Print Agent next attempts to locate the file with the information supplied with the ^graph or
\graph command:

If the file name supplied with the ^graph or \graph command contains an absolute path
reference, Print Agent ignores the -alp option.
For example, with an absolute path of:
^graph \\server1\logos\mylogo.pcx

- or ^graph c:\logos\mylogo.pcx

Print Agent attempts only to open the file name as given.

If the file name supplied with the ^graph or \graph command is not an absolute path
reference, Print Agent searches the current folder for the name as given.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

92

For example, if the file name provided with the ^graph command is:
^graph logos\mylogo.pcx

Print Agent searches for mylogo.pcx in the ...\logos\ subfolder of the current folder.
If Print Agent cannot locate the file using the information supplied with the ^graph or \graph
command, it examines the -alp option:

If the path supplied with the -alp option contains an absolute path reference, Print Agent
prefixes the path supplied with the -alp option to the file name supplied with the ^graph or
\graph command.
For example, if the file name provided with the ^graph command is:
^graph logos\mylogo.pcx

and the path provided with the -alp option is:


-alp\\server1\finance

Print Agent searches for mylogo.pcx in the \\server1\finance\logos\ folder.

If the path supplied with the -alp option is not an absolute path reference, Print Agent
prefixes the path supplied with the -alp option to the file name and searches the current
folder.
For example, if the file name provided with the ^graph command is:
^graph logos\mylogo.pcx

and the path provided with the -alp option is:


-alpfinance

Print Agent searches for mylogo.pcx in the ...\finance\logos\ subfolder of the current folder.

-amaxeventloop (Maximum Event Loop)


Format:
N

EW

-amaxeventloopn

To limit the number of events Print Agent will execute within a page, start Print Agent with
-amaxeventloop option.If n is greater than zero, Print Agent will stop after executing n events.
If n is zero, Print Agent does not limit the number of events that may execute for a page.
The default for n is set by the MaximumEventLoop setting in the Print Agent configuration file,
jfmerge.ini. At installation, this is set to zero.
Sometimes, particularly when developing forms with custom coded event logic, a form may
enter an event loop that prevents it from completing properly. When this happens the Print
Agent may appear to hang while processing the form. When a MaximumEventLoop limit is set
and the processing of the form exceeds the set limit, Print Agent will generate error messages
that identify the sequence of events leading up to the point at which processing is abandoned.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

93

When diagnosing a situation involving a form that contains an event loop, the
MaximumEventLoop setting can be useful to help identify the custom coded event logic that is
causing the form to enter an event loop.
Print Agent can process many hundreds of events per second and form designs rarely require
more than a hundred events to complete a page layout. Therefore a MaximumEventLoop limit
of 500 is suitable for most debugging situations, since the limit is unlikely to interfere with the
execution of a properly functioning form, but will catch a form that has entered an event loop
within a few seconds.
The MaximumEventLoop option can also be used in combination with the
MaximumPagesToPrint option to detect and debug nearly any situation where a combination
of custom coded event logic can cause Print Agent to enter an infinite event loop. For details
about the MaximumPagesToPrint option, see -amaxpagestoprint (Maximum Surfaces to
Print) on page 96.

-amaxicodeeol (MaxiCode End of Line Character)

UP

TE
DA

Format:
-amaxicodeeolcharacters

To specify the character or characters to use for the UPS MaxiCode barcode end of line (EOL)
condition, start Print Agent with the -amaxicodeeol option.
For example, with -amaxicodeeol\029, the end of line character is ASCII GS (decimal 29). This
is the default. The end of line (EOL) character is sent to the printer as the field separator in
Modes 2 and 3.
The corresponding configuration file option for -amaxicodeeol is MAXICODEEOL in the
[Special] section of the Print Agent configuration file, jfmerge.ini.
You can specify a character value with the -amaxicodeeol option, in lieu of the actual
character. This is useful in cases where the character you require is not a standard keyboard
character. For details, see the Appendix Numeric Character Values on page 319.
Note: UPS MaxiCode barcodes are only supported on Zebra and Intermec presentment
targets.

-amaxicodeifs (MaxiCode Input Field Separator)

UP

TE
DA

Format:
-amaxicodeifscharacters

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

94

To specify the character to use for the UPS MaxiCode barcode input field separator, start Print
Agent with the -amaxicodeifs option. For example, to specify the | (pipe symbol) as the input
field separator, use the option -amaxicodeifs|.
By default, the separator is newline. However, newline and the input field separator specified
with the -amaxicodeifs option can be intermixed within a field. Unlike newline, the input field
separator can also be used in the MaxiCode message header and MaxiCode message trailer.
All occurrences of the input field separator within the MaxiCode low priority message will be
replaced on output with the end of line character. The first three fields (the MaxiCode high
priority message) are fixed in length for the given mode: input separators may be used
between them, but on output these fields are combined according to the standard.
The corresponding configuration file option for -amaxicodeifs is MAXICODEIFS in the
[Special] section of the Print Agent configuration file, jfmerge.ini.
You can specify a character value with the -amaxicodeifs option, in lieu of the actual character.
This is useful in cases where the character you require is not a standard keyboard character.
For details, see the Appendix Numeric Character Values on page 319.
Note: UPS MaxiCode barcodes are only supported on Zebra and Intermec presentment
targets.

-amaxicodehdr (MaxiCode Message Header)

UP

TE
DA

Format:
-amaxicodehdrcharacters

To specify the characters to use for the UPS MaxiCode barcode message header, start Print
Agent with the -amaxicodehdr option.
In Modes 2 and 3, this header begins the MaxiCode low priority message. The format,
-amaxicodehdr=[)>\03001\02996, is set by the ANSI MH10.8.3M standard, and for UPS
should be left as shown, which is the internal default.
The corresponding configuration file option for -amaxicodehdr is MAXICODEHDR in the
[Special] section of the Print Agent configuration file, jfmerge.ini.
You can specify character values with the -amaxicodehdr option, in lieu of the actual
characters. This is useful in cases where the characters you require are not a standard
keyboard character. For details, see the Appendix Numeric Character Values on page 319.
Note: UPS MaxiCode barcodes are supported only on Zebra and Intermec presentment
targets.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

95

-amaxicodetrlr (MaxiCode Message Trailer)

UP

TE
DA

Format:
-amaxicodetrlrcharacters

To specify the characters to use for the UPS MaxiCode barcode message trailer, start Print
Agent with the -amaxicodetrlr option.
The corresponding configuration file option for -amaxicodehdr is MAXICODEHDR in the
[Special] section of the Print Agent configuration file, jfmerge.ini.
For example, with -amaxicodetrlr\030\004, the message trailer is ASCII RS (decimal 30)
followed by ASCII EOT (decimal 4). This is the default. In Modes 2 and 3, this trailer will be sent
to the printer following the MaxiCode low priority message.
The corresponding configuration file option for -amaxicodetrlr is MAXICODETRLR in the
[Special] section of the Print Agent configuration file, jfmerge.ini.
You can specify character values with the -amaxicodetrlr option, in lieu of the actual
characters. This is useful in cases where the characters you require are not a standard
keyboard character. For details, see the Appendix Numeric Character Values on page 319.
Note: UPS MaxiCode barcodes are only supported on Zebra and Intermec presentment
targets.

-amaxpagestoprint (Maximum Surfaces to Print)

UP

TE
DA

Format:
-amaxpagestoprintn

To limit the number of surfaces (sides of pages) Print Agent will print, start Print Agent with the
-amaxpagestoprint option. If n is greater than zero, Print Agent will stop after printing n
surfaces. If n is zero, Print Agent will not stop until it reaches the end of the data stream. This
option differs from the -apg option (see page 112) in that it uses a count of surfaces printed, not
the page number. The page number can be reset by commands in the data stream but the
surface count can not.
The default for n is set by the MaximumPagesToPrint setting in the Print Agent configuration
file, jfmerge.ini. At installation, this is set to zero.
Sometimes, particularly when developing forms with custom coded event logic, a form may
enter an event loop that prevents it from completing properly. When this happens the Print
Agent may appear to hang while processing the form and it may also print an endless number

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

96

of surfaces. When a MaximumPagesToPrint limit is set and the processing of the form
exceeds the set limit, Print Agent will stop processing and generate an error message that
indicates that the number of expected surfaces has been exceeded.
The MaximumPagesToPrint option can be used in combination with the MaximumEventLoop
option to detect and debug nearly any situation where a combination of custom coded event
logic can cause Print Agent to enter an infinite event loop. For details about the
MaximumEventLoop option, see -amaxeventloop (Maximum Event Loop).

-amq (Managed Memory Quota)


Format
-amqnn

To specify the number of bytes of managed memory in a printer, start Print Agent with the -amq
option. nn is the number of bytes of managed memory. Print Agent requires this option when
you use the managed memory in a printer for storing macros. (For managed memory macros,
see m (Managed Memory Macro) on page 137.)
This option is available for certain printers that support macros.

-ams (Macro Status Table File Location)


Format
-amsfilename

To search a specific path for the Macro Status Table file for the printer, start Print Agent with the
-ams option. By default, Print Agent searches the current directory. Print Agent requires this
option when you use either load-first-time (see page 137) or managed memory macros (see
page 137).

-anf (New Field Character)


Format
-anfchar

To change the new field character, start Print Agent with the -anf option. The default new field
character (see page 322) is a ` (back quotation mark). When Print Agent encounters a new
field character in the data stream, it ends the current field and advances to the next field on the
template.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

97

For example, to change the new field character to # (pound), start Print Agent with this
command:
jfmerge formfile datafile -aiijfmerge.ini -anf#

You can specify a character value with the -anf option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.
For another method of modifying the new field character, see ^newfield (New Field Character)
on page 204.

-anl (Alternate Newline Character)


Format
-anlchar

To change the alternate newline character, start Print Agent with the -anl option. The default
alternate newline character (see page 324) is a ~ (tilde). When Print Agent encounters this
character in the data stream, it ends a line in a multi-line field or ends a single line field.
For example, to change the alternate newline character to # (pound), start Print Agent with
this command:
jfmerge formfile datafile -aiijfmerge.ini -anl#

You can specify a character value with the -anl option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.
For another method of modifying the alternate newline character, ^terminator (Alternate
Newline Character) on page 226.

-aob (Use Older Font Baseline)


Format
-aob{on|off}

To revert to the older method of calculating the font baseline, start Print Agent with the -aobon
option.
Previously Output Designer and Print Agent used a different algorithm to calculate the font
baseline. When you positioned boilerplate and text at the same place in Output Designer, Print
Agent printed the template with the text in the field vertically displaced from the boilerplate. Print
Agent now accurately aligns fields with boilerplate. This means that if you have templates

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

98

compiled with the position of field or boilerplate adjusted to compensate for the misalignment,
Print Agent will undo your adjustment by using the new calculation. This affects templates
compiled with Output Designer 4.0 or later.
To retain the present method of calculating the font baseline, use the -aoboff option. This is the
default.

-aopl (Use Older Page Length)


Format
-aopl{yes|no}

To revert to the older method of calculating the page length, start Print Agent with the -aoplyes
option.
Previously the page length was determined incorrectly when calculating values during the
processing of a \reserve command, because the calculation did not include the bottom
unprintable area. This is now corrected. However, the correction may cause Print Agent
(version 5.2.6 or later) to overflow a subform onto a new page, where it previously found room
on the current page.
To retain the present method of calculating the page length, use the -aoplno option. This is the
default. The corresponding configuration file entry in the jfmerge.ini [Options] section is
UseOldPageLength=Yes|No.

-apcc (Dynamic Merge Command Prefix Character)


Format
-apccchar

To change the Dynamic Merge command prefix character, start Print Agent with the -apcc
option. This is a character that Print Agent uses to distinguish commands from data. The default
character (see page 322) is a ^ (caret).
It may be necessary to change the prefix character when the source of the data:

Already uses the ^ (caret).

Is not capable of generating Print Agent commands with the ^ (caret).

Use caution when changing prefix characters. Do not set any two to the same value. If you do,
Print Agent cannot distinguish between the different types of commands.
For example, to change the Dynamic Merge command prefix character to # (pound), start
Print Agent with this command:
jfmerge formfile datafile -aiijfmerge.ini -apcc#

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

99

You can specify a character value with the -apcc option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.
For another method of modifying the Dynamic Merge command prefix character, see ^prefix
(Prefix Character) on page 216.
Note: When the Print Agent is processing a form that includes an internal preamble, it does
not recognize an attempt made in the data file to change the default Dynamic Merge
Command prefix character (from ^ (caret) to some other character).
To resolve this issue, append a ^prefix command to the preamble. For example,
^prefix #, to change the prefix character to the number sign. Appending the ^prefix
command to the preamble allows the change in prefix character to take place before the
data file is read, but after the preamble has been processed.

-apcd (Dictionary Name Separator Prefix Character)


Format
-apcdchar

To change the prefix character that Print Agent uses as a dictionary name separator, start Print
Agent with the -apcd option. The default character (see page 322) is a : (colon).
It may be necessary to change the prefix character when the source of the data:

Already uses the : (colon).

Is not capable of generating Print Agent commands with the : (colon).

Use caution when changing prefix characters. Do not set any two to the same value. If you do,
Print Agent cannot distinguish between the different types of commands.
For example, to change the dictionary prefix character to # (pound), start Print Agent with this
command:
jfmerge formfile datafile -aiijfmerge.ini -apcd#

You can specify a character value with the -apcd option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.
For another method of modifying the prefix character used as a dictionary name separator, see
^prefix (Prefix Character) on page 216.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

100

-apce (Event Name Separator Prefix Character)


Format
-apcechar

To change the prefix character that Print Agent uses as an event name separator, start Print
Agent with the -apce option. The default character (see page 322) is an ! (exclamation point).
It may be necessary to change the prefix character when the source of the data:

Already uses the ! (exclamation point).

Is not capable of generating Print Agent commands with the ! (exclamation point.

Use caution when changing prefix characters. Do not set any two to the same value. If you do,
Print Agent cannot distinguish between the different types of commands.
For example, to change the event prefix character to # (pound), start Print Agent with this
command:
jfmerge formfile datafile -aiijfmerge.ini -apce#

You can specify a character value with the -apce option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.

-apci (Inline Text Control Command Prefix Character)


Format
-apcichar

To change the Inline Text Control prefix character, start Print Agent with the -apci option. This is
a character that Print Agent uses to distinguish commands from data. The default character
(see page 322) is a \ (backslash).
It may be necessary to change the prefix character when the source of the data:

Already uses the \ (backslash).

Is not capable of generating Print Agent commands with the \ (backslash).

Use caution when changing prefix characters. Do not set any two to the same value. If you do,
Print Agent cannot distinguish between the different types of commands.
For example, to change the Inline Text Control command prefix character to # (pound), start
Print Agent with this command:
jfmerge formfile datafile -aiijfmerge.ini -apci#

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

101

You can specify a character value with the -apci option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.
For another method of modifying the Inline Text Control prefix character, see ^prefix (Prefix
Character) on page 216.

Considerations When Changing the Inline Text Control Command


Prefix Character
Output Designer uses the default inline text control prefix character (the backslash \ character)
in its internal auto-generated preamble. You should not attempt to change this character on the
command line using the -apci command line option or in the data file using the ^prefix inline
command if an internal auto-generated preamble is used. This is because the backslash
character is used in inline processing during Print Agent execution. The commands in the
internal auto-generated preamble must be executed using the same reserved character that is
defined in the Group Dictionary.
The -apci command line option or the ^prefix inline command can only be used to change the
default inline text control prefix character to another character in the following cases:

When a static form is being used.

When an external preamble is being used with a dynamic form file.

When an internal preamble that was not auto-generated by Output Designer is being used.

If you must pass the reserved inline text control prefix character in the data file with a dynamic
form that contains an internal auto-generated preamble, the only other way to make this work
would be to change the reserved character in the data file to some other character and then
change it back again once the inline commands have been executed. This can be done by
using Transformation Agent to change the reserved character and then using the JetKeys.ini
file to remap the character back to the reserved character before the data is written to the
output file.

-apcv (Variable Substitution Prefix Character)


Format
-apcvchar

To change the variable substitution prefix character, start Print Agent with the -apcv option. This
is the character that Print Agent uses to distinguish a substitution variable from data. The
default character (see page 322) is @ (at).
It may be necessary to change the prefix character when the source of the data:

Already uses the @ (at).

Is not capable of generating Print Agent commands with the @ (at).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

102

For example, to change the variable substitution prefix character to # (pound), start Print
Agent with this command:
jfmerge formfile datafile -aiijfmerge.ini -apcv#

You can specify a character value with the -apcv option, in lieu of the actual character. This is
useful in cases where the character you require is not a standard keyboard character. For
details, see the Appendix Numeric Character Values on page 319.
For another method of modifying the Inline Text Control prefix character, see ^prefix (Prefix
Character) on page 216.
Caution: If you are using dynamic templates created in version 5.2 or later of Output
Designer, we do not recommend that you change the variable substitution prefix
character. The preamble generated automatically by these products contains
references to many variables that are specified using the @ (at).
Use caution when changing prefix characters. Do not set any two to the same value.
If you do, Print Agent cannot distinguish between the different types of commands.

-apdf417bc53 (Newline Character Handling)


Format
-apdf417bc53{on|off}

To determine the handling of newline characters in multiline text data for PDF417 barcodes,
start Print Agent with the -apdf417bc53 option.
With -apdf417bc53off, Print Agent ignores the current reformat setting and preserves newline
characters in the data. This is the default.
With -apdf417bc53on, Print Agent handles newline characters in the data in accordance with
the current reformat setting.
You can change the default for this option by editing the PDF417BackComp53 setting in the
[Special] section of the Print Agent configuration file, jfmerge.ini. Setting the value to on
makes -apdf417bc53on the default, or to off makes -apdf417bc53off the default.
For the reformat settings, see -r (Reformat Data) on page 139, or ^reformat (Reformat Data)
on page 220.

-apdf417conv (Data Symbol Set)


Format
-apdf417conv{on|off}

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

103

To determine the symbol set used to store data in the PDF417 barcode, start Print Agent with
the -apdf417conv option.
With -apdf417convoff, Print Agent stores the data in the PDF417 barcode as is; that is, it
retains the incoming symbol set. This is the default.
With -apdf417convon, Print Agent converts the data from the incoming symbol set to the PC-8
symbol set (IBM Code Page 437). The PC-8 symbol set is the default Global Label Identifier
(GLI) for PDF417 barcodes.
You can change the default for this option by editing the PDF417Convert setting in the [Special]
section of the Print Agent configuration file, jfmerge.ini. Setting the value to on makes
-apdf417convon the default, or to off makes -apdf417convoff the default.

-apdf417eol (End of Line Character)


Format
-apdf417eolcharacters

To specify the character or characters to use for the PDF417 barcode end of line (EOL)
condition, start Print Agent with the -apdf417eol option.
For example, with -apdf417eol\010, the end of line character is the ASCII LineFeed character.
This is the default.
The default value of \010 (ASCII LineFeed) is controlled by the PDF417EOL setting in the
[Special] section of the Print Agent configuration file, jfmerge.ini.
You can specify a character value with the -apdf417eol option, in lieu of the actual character.
This is useful in cases where the character you require is not a standard keyboard character.
For details, see the Appendix Numeric Character Values on page 319.

-apdfm (Inline PDF Macros)


Format
-apdfm{on|off}

To produce a PDF file that repeats the boilerplate for each page and subform whenever it is
used, start Print Agent with the -apdfmon option. The resulting PDF file is rendered more
quickly by the Adobe Reader plug-in for Web browsers.
To produce a PDF file which declares the boilerplate for each page or subform once and then
refers to it as required, start Print Agent with the -apdfmoff option. This is the default.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

104

With the -apdfmoff option, the resulting PDF file is usually smaller and takes less time for Print
Agent to produce. However, whether the PDF file is smaller with the -apdfmoff option depends
on the data being supplied. In some cases, using the -apdfmoff option may produce a
noticeably larger file size.
You can change the default for this option by editing the InlineMacros setting in the [PDFPrep]
section of the Print Agent configuration file, jfmerge.ini. Set the value to Yes to make
-apdfmon the default or No to make -apdfmoff the default.

-apdfallowadd (Allow Adding Content to a PDF Document)


Format
-apdfallowadd{yes|no}

To allow the addition of content to a PDF document, start Print Agent with the -apdfallowadd
option.
With -apdfallowaddno, content cannot be added to the PDF document This is the default.
With -apdfallowaddyes, these additions are allowed:

commenting

filling of form fields

signing

Print Agent ignores the -apdfallowaddyes option if security is not activated. (See -apdflock
(Activate PDF Security Features) on page 107.)
The Allow Adding Content to a PDF Document value can be set on the command line with the
-apdfallowadd option, in the AllowAdd setting in the [PDFPrep] section of the Print Agent
configuration file, jfmerge.ini, or in the data stream via the SYS dictionary.
To set the Allow Adding Content to a PDF Document value in the Sys directory, use the format:
^define sys:pdfallowadd value

where sys is the dictionary name and pdfallowadd is the option name. value is the value
to be assigned to pdfallowadd and can be one of yes or no. You require a : colon
separator between the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdfallowcopy (Allow Copying of PDF Document)


Format
-apdfallowcopy{yes|no}

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

105

To allow the copying of a PDF document, start Print Agent with the -apdfallowcopy option.
With -apdfallowcopyyes, the default, the following is allowed:

content copying or extraction

content extraction for accessibility

With -apdfallowcopyno, the document cannot be copied. Print Agent ignores the
-apdfallowcopyno option if security is not activated. (See -apdflock (Activate PDF Security
Features) on page 107.)
The Allow Copying of PDF Document value can be set on the command line with the
-apdfallowcopy option, in the AllowCopy setting in the [PDFPrep] section of the Print Agent
configuration file, jfmerge.ini, or in the data stream via the SYS dictionary.
To set the Allow Copying of PDF Document value in the Sys directory, use the format:
^define sys:pdfallowcopy value

where sys is the dictionary name and pdfallowcopy is the option name. value is the
value to be assigned to pdfallowcopy and can be one of yes or no. You require a : colon
separator between the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdfallowmod (Allow Modification of PDF Document)


Format
-apdfallowmod{yes|no}

To allow the modification of a PDF document, start Print Agent with the -apdfallowmod option.
With -apdfallowmodno, the PDF document cannot be modified. This is the default.
With -apdfallowmodyes, these modifications are allowed:

changing the document

document assembly

filling of form fields

signing

creation of template pages

Print Agent ignores the -apdfallowmodyes option if security is not activated. (See -apdflock
(Activate PDF Security Features) on page 107.)
The Allow Modification of PDF Document value can be set on the command line with the
-apdfallowmod option, in the AllowMod setting in the [PDFPrep] section of the Print Agent
configuration file, jfmerge.ini, or in the data stream via the SYS dictionary.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

106

To set the Allow Modification of PDF Document value in the Sys directory, use the format:
^define sys:pdfallowmod value

where sys is the dictionary name and pdfallowmod is the option name. value is the value
to be assigned to pdfallowmod and can be one of yes or no. You require a : colon
separator between the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdfencryptionlevel (PDF Encyrption Level)

Format
N

EW

-apdfencryptionlevel{40|low|128|high}

To set the PDF encryption level, start Print Agent with the -apdfencryptionlevel option.
Both -apdfencryptionlevel40 and -apdfencryptionlevellow specify 40 bit encryption. This is
the default.
Both -apdfencryptionlevel128 and -apdfencryptionlevelhigh specify 128 bit encryption.
The PDF Encryption Level can be set on the command line with the -apdfencryptionlevel
option, in the PdfEncryptionLevel setting in the [PDFPrep] section of the Print Agent
configuration file, jfmerge.ini, or in the data stream via the SYS dictionary.
To set the PDF Encryption Level value in the Sys directory, use the format:
^define sys:pdfencryptionlevel value

where sys is the dictionary name and pdfencryptionlevel is the option name. value is the
value to be assigned to pdfencryptionlevel and can be one of 40|low or 128|high. You
require a : colon separator between the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdflock (Activate PDF Security Features)


Format
-apdflock{yes|no}

To specify whether security features are activated for the PDF output, start Print Agent with the
-apdflock option.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

107

With -apdflockyes, Print Agent activates the available security settings. By default these are:

-apdfprint (Allow Printing of PDF Document) on page 108

-apdfallowcopy (Allow Copying of PDF Document) on page 105

-apdfallowmod (Allow Modification of PDF Document) on page 105

-apdfallowadd (Allow Adding Content to a PDF Document) on page 104

-apdfowner (Allow Access to PDF Security Settings) on page 108

-apdfuser (Allow Access to PDF Document) on page 109

With -apdflockno, Print Agent does not activate security and any security settings in the above
noted six options are ignored. This is the default.
The Activate PDF Security Features value can be set on the command line with the -apdflock
option, in the Lock setting in the [PDFPrep] section of the Print Agent configuration file,
jfmerge.ini, or in the data stream via the SYS dictionary.
To set the Activate PDF Security Features value in the Sys directory, use the format:
^define sys:pdflock value

where sys is the dictionary name and pdflock is the option name. value is the value to be
assigned to pdflock and can be one of yes or no. You require a : colon separator between
the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdfowner (Allow Access to PDF Security Settings)

UP

TE
DA

Format
-apdfownerOwnerPassword

To allow access to a PDF documents security settings, start Print Agent with the -apdfowner
option.
When OwnerPassword is specified and a user attempts to change the documents security
settings, a Password Dialog is presented to the user. Passwords are case sensitive. The default
Owner password is an empty string (that is, no password). When the Owner password is an
empty string, access is allowed to the documents security settings. If the Owner password and
the User password (see-apdfuser (Allow Access to PDF Document) on page 109) are the
same, the documents security settings can be accessed if either the Owner or the User
password is supplied to open the document. Also, if the Owner password and the User
password are the same, any security settings applied to the document using -apdflockyes are
ignored.
Print Agent ignores the -apdfowner option if security is not activated. (See -apdflock (Activate
PDF Security Features) on page 107.)

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

108

The Allow Access to PDF Security Settings value can be set on the command line with the
-apdfowner option, in the Owner setting in the [PDFPrep] section of the Print Agent
configuration file, jfmerge.ini, or in the data stream via the SYS dictionary.
To set the Allow Access to PDF Security Settings value in the Sys directory, use the format:
^define sys:pdfowner value

where sys is the dictionary name and pdfowner is the option name. value is the password
to be assigned to pdfowner. You require a : colon separator between the dictionary name
and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdfprint (Allow Printing of PDF Document)


Format
-apdfprint{yes|no}

To allow the printing of a PDF document, start Print Agent with the -apdfprint option.
With -apdfprintyes, the PDF document can be printed. This is the default.
With -apdprintno, the PDF document cannot be printed. Print Agent ignores the -apdprintno
option if security is not activated. (See -apdflock (Activate PDF Security Features) on
page 107.)
The Allow Printing of PDF Document value can be set on the command line with the -apdfprint
option, in the AllowPrint setting in the [PDFPrep] section of the Print Agent configuration file,
jfmerge.ini, or in the data stream via the SYS dictionary.
To set the Allow Printing of PDF Document value in the Sys directory, use the format:
^define sys:pdfprint value

where sys is the dictionary name and pdfprint is the option name. value is the value to
be assigned to pdfprint and can be one of yes or no. You require a : colon separator
between the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdfuser (Allow Access to PDF Document)


Format
-apdfuserUserPassword

To allow access to a PDF document, start Print Agent with the -apdfuser option.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

109

When UserPassword is specified and a user attempts to open the document, a Password
Dialog is presented to the user before the document is opened. Passwords are case sensitive.
The default User password is an empty string (that is, no password). A User password allows
access to a PDF document only. It does not allow access to the documents security settings.
An Owner password (see -apdfowner (Allow Access to PDF Security Settings) on page 108)
is required in order to change the documents security settings.
Print Agent ignores the -apdfuser option if security is not activated. (See -apdflock (Activate
PDF Security Features) on page 107.)
The Allow Access to PDF Document value can be set on the command line with the -apdfuser
option, in the User setting in the [PDFPrep] section of the Print Agent configuration file,
jfmerge.ini, or in the data stream via the SYS dictionary.
To set the Allow Access to PDF Security Settings value in the Sys directory, use the format:
^define sys:pdfuser value

where sys is the dictionary name and pdfuser is the option name. value is the password
to be assigned to pdfuser. You require a : colon separator between the dictionary name and
the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdflayout (Specify PDF Initial Page Layout)


Format
-apdflayout{singlepage|continuous|continuous-facing|default}

To control the initial page layout when a PDF file is opened, start Print Agent with the
-apdfLayout option.
With -apdflayoutsinglepage, the PDF file is displayed as single pages.
With -apdflayoutcontinuous, the PDF file is displayed as continuous pages.
With -apdflayoutcontinuous-facing, the PDF page is displayed as a side-by-side continuous
page.
With -apdflayoutdefault, the PDF page is displayed according to the default Page Display
Preferences on the individual users system.
The Initial Page Layout value can be set on the command line with the -apdflayout option, in
the PdfLayout setting in the [PDFPrep] section of the Print Agent configuration file,
jfmerge.ini, or in the data stream via the SYS dictionary.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

110

To set the Initial Page Layout value in the Sys directory, use the format:
^define sys:pdfLayout value

where sys is the dictionary name and pdfLayout is the option name. value is the value to
be assigned to pdfLayout and can be one of SinglePage, Continuous,
Continuous-Facing, or Default. You require a : colon separator between the dictionary
name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

User Input Values


The -apdflayout option allows for the ability to change the valid page layout values, thus
allowing for the use of synonyms for the values.
The valid page layout values for the -apdflayout option are maintained in the [PDFPrep]
section of the Print Agent configuration file, jfmerge.ini. The values consist of pairs of
non-whitespace strings in the format UserEnteredValue PdfFileValue. UserEnteredValue refers
to the value that is set in the -apdflayout option and PdfFileValue refers to the value that Print
Agent writes to the layout entry in the PDF catalog for the PDF file.
The values as written in the configuration file are:
PdfLayoutValues=SinglePage SinglePage Continuous OneColumn
Continuous-Facing TwoColumnLeft Default Default

For example, for a command line option of -apdflayoutcontinuous, Print Agent writes the
value OneColumn to the PDF catalog.
You can define as many pairs of values for this option as you want. However, the second
member (PdfFileValue) must be a valid Acrobat value.

-apdfopentopage (Specify PDF Initial Page Number)


Format
-apdfopentopagen

To specify the page number of the initial page that is displayed when a PDF file is open, start
Print Agent with the -apdfopentopage option. n is the page number of the page to display.
The default is 1.
The Initial Page Number value can be set on the command line with the -apdfopentopage
option, in the PdfOpenToPage setting in the [PDFPrep] section of the Print Agent configuration
file, jfmerge.ini, or in the data stream via the SYS dictionary.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

111

To set the Initial Page Number in the Sys directory, use the format:
^define sys:pdfOpenToPage number

where sys is the dictionary name and pdfOpenToPage is the option name. number is the
page number to open. You require a : colon separator between the dictionary name and the
variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apdfzoom (Specify PDF Initial Page Magnification)


Format
-apdfzoom{fitpage|fitwidth|fitvisible|default}

To specify the magnification level the PDF document will display at when opened, start Print
Agent with the -apdfzoom option.
With -apdfzoomfitpage, the entire PDF page is displayed in the Acrobat/Reader window.
With -apdfzoomfitwidth, an area equivalent to the width of the PDF page is displayed in the
Acrobat/Reader window.
With -apdfzoomfitvisible, all text and graphics visible on the page fit the width of the
Acrobat/Reader window.
With -apdfzoomdefault, the PDF page is displayed according to the default Page Display
Preferences on the individual users system.
The Initial Page Magnification value can be set on the command line with the -apdfzoom
option, in the PdfZoom setting in the [PDFPrep] section of the Print Agent configuration file,
jfmerge.ini, or in the data stream via the SYS dictionary.
To set the Initial Page Magnification value in the Sys directory, use the format:
^define sys:pdfZoom value

where sys is the dictionary name and pdfZoom is the option name. value is the value to be
assigned to pdfZoom and can be one of FitPage, FitWidth, FitVisible, or Default.
You require a : colon separator between the dictionary name and the variable name.
For information about the Sys dictionary, see Sys Dictionary on page 62.

-apf (Picture Formatting)


Format
-apf{on|off}

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

112

To use picture formatting, start Print Agent with the -apfon option. This is the default. Print
Agent formats the data for each field according to the picture clause, if any, assigned to the field
by the template designer. If the data does not match the picture formatting, Print Agent places
the data in the field without regard to the picture formatting, and displays an error message in
the log file.
To ignore field picture formatting, start Print Agent with the -apfoff option.
You can also assign picture clauses to a field using the \pic command (see page 242). The -apf
option does not affect the \pic command.

-apg (Print Subset of Pages)


Format
-apglist

To print only a subset of the pages in a job, start Print Agent with the -apg option. list
consists of up to twenty (20) comma-separated page number ranges. Each page number range
consists of a single number or a pair of numbers separated by a slash.
For example:
-apg7

prints only page 7,


-apg23/24,10/12

prints pages 10, 11, 12, 23 and 24,


-apg7,8,21,15,14

prints pages 7, 8, 14, 15 and 21.


When you give a range as a pair of numbers, as in 23/28, the second number must be at least
as big as the first number. Ranges may overlap. A page prints if it is covered by any range. A
page covered by more than one range only prints once. For example,
-apg23/27,27/30

prints one copy only of pages 23 through to 30.


The page numbers refer to the number associated with $PAGE, an Output Designer special
field name that is filled automatically at print time. The value of $PAGE can be changed by the
-s command line option (see page 152) and the ^$page command (see page 231) in the data
stream. Changing the value of $PAGE with the ^$page command affects the -apg option.
However, for efficiency, Print Agent stops reading the data stream after it prints the page
number equal to the largest number that appears in the -apg option. This means that any
^$page command after this is never reached and has no effect.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

113

You may specify large page numbers with the -apg option, for example, -apg3/9999. It is NOT
an error if there is not enough data to reach page 9999. In fact, this is the recommended way to
specify that you want to print everything after a certain page.
At the end of the job, Print Agent prints a message in its log file, indicating the number of
surfaces printed. This message takes into account the effect of the -apg option. For example, if
the -apg option causes only one page to print, then the message says that only one surface
printed.
The -apg option has no effect whatsoever on downloading of macros to the printer.
Downloading and printing are separate activities.

-apm (Print Fax Mode)


Format
-apm{print|fax|both}

To restrict output to either a printer or fax presentment target, start Print Agent with the -apm
option.
With the -apmprint option, Print Agent directs the output to a printer presentment target. If the
transaction file contains a ^fax command (see page 184) or if the command line contains faxing
parameters, Print Agent terminates the job and writes an error message to the log file.
With the -apmfax option, Print Agent directs the output to a fax presentment target. If there is
no faxing information, either in the transaction file with a ^fax command or on the command line
with faxing parameters, Print Agent terminates the job and writes an error message to the log
file.
The -apmboth option is the default. With this option Print Agent uses the contents of the
transaction file to decide whether to direct the output to a printer or fax presentment target.
When the transaction file contains a ^fax command or when the command line contains faxing
parameters, Print Agent directs the output to a fax presentment target. Otherwise, the output is
directed to a printer presentment target.
Note: The -apm option considers the PDF presentment target to be a printer presentment
target.

-apr (Preamble File)


Format
-aprpreamblefile

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

114

To insert a preamble file into the data stream before the transaction file, start Print Agent with
the -apr option. preamblefile is the preamble file name. The preamble file is an optional file
of commands or data that Print Agent reads before the contents of the data stream.
Note: When you create a preamble file, the last line in the file must be terminated with
<CR/LF> (newline). When the last line is not terminated properly, Print Agent interprets
the first line of the data stream as a continuation of the last line of the preamble file.

-aqrcodeeol (End of Line Character)

UP

TE
DA

Format
-aqrcodeeolcharacters

To specify the character or characters to use for the QR Code barcode end of line (EOL)
condition, start Print Agent with the -aqrcodeeol option.
For example, with -aqrcodeeol\010, the end of line character is the ASCII LineFeed character.
This is the default.
The default value of \010 (ASCII LineFeed) is controlled by the QRCODEEOL setting in the
[Special] section of the Print Agent configuration file, jfmerge.ini.
You can specify a character value with the -aqrcodeeol option, in lieu of the actual character.
This is useful in cases where the character you require is not a standard keyboard character.
For details, see the Appendix Numeric Character Values on page 319.
Note: QR Code barcodes are supported on PCL, PS, PDF, Zebra, TEC, Intemec and
Windows presentment targets.

-arc (Replace Characters)


Format
-arc{yes|no}

To control the handling of special characters encountered in field names, start Print Agent with
the -arcyes option. When Print Agent encounters the special characters - (dash - ASCII 0x2D)
and . (period - ASCII 0x2E) in either ^field or ^global commands, it replaces these characters
with the _ (underscore - ASCII 0x5F) character. This is the default.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

115

For example, with -arcyes, Print Agent processes:


^field e-mail.com

as
^field e_mail_com

To suppress the replacement of special characters, start Print Agent with the -arcno option.

-arg (Reformat Global Field Data)


Format
-arg{on|off}

To control the handling of newline characters encountered in global field data, start Print Agent
with the -arg option.
With -argon, for global field data, Print Agent both handles newline characters and word wraps
the data in accordance with the current reformatting option.
With -argoff, the default, Print Agent:

Preserves all newline characters in global field data, regardless of the current reformatting
option.

Word wraps the data, in accordance with the current reformatting option.

For the reformatting options, see -r (Reformat Data) on page 139 and ^reformat (Reformat
Data) on page 220.

-arx (Response File)


Format
-arxfilename|NUL

When Print Agent completes a task, it creates a response file to record an exit status. By
default, the name of the response file that Print Agent creates is jetform.rsp and it is created in
the same location as the Print Agent executable, by default ...\Adobe\Central\Bin\.
To change the default name and/or the default location of the response file, start Print Agent
with the -arxfilename option. For example:
-arxc:\temp\myrsp.txt

will create a response file called myrsp.txt in the temp directory.


To suppress the creation of a response file, start Print Agent with the -arxNUL option.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

116

Caution: The use of the -arx option is only supported when running Print Agent as a
standalone executable. When running Print Agent under Central, the default name
and location of the response file must be maintained, as this is the information that
Central looks for.

-asc (Skip Characters)


Format
-ascnn

To skip characters at the start of the transaction file, start Print Agent with the -asc option. nn
is the number of characters to skip. This option does not apply to the preamble file.
When the command line includes both the -asc and -asl options, Print Agent processes the -asl
option first, then the -asc option.

-asj (Secure Job)


Format
-asjpassword

To pass a print job requiring a password to a PostScript Level 2 printer, start Print Agent with the
-asj option. password is the password set for the printer. The default is 0 (zero).
Note: When downloading a macro (see page 135) to a PostScript Level 2 printer and a
password is set on the printer, you must provide the password in order to store the
macro.

-asl (Skip Lines)


Format
-aslnn

To skip lines at the start of the transaction file, start Print Agent with the -asl option. nn is the
number of lines to skip. This option does not apply to the preamble file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

117

Central uses this option to tell Print Agent to skip the ^job command in the transaction file. This
option is also useful when there are extraneous lines at the beginning of the transaction file.
Even if the lines are blank, they can cause data to be positioned incorrectly on the template. To
prevent this, start Print Agent with the -asl option. For example:
jfmerge formname datafile -aiijfmerge.ini -asl5

causes Print Agent to skip the ^job command and four additional extraneous lines.
When the command line includes both the -asc and -asl options, Print Agent processes the -asl
option first, then the -asc option.

-asp (Select Presentment Target)


Format
-aspTarget

To specify a particular presentment target to use when printing a template, start Print Agent with
the -asp option. The presentment target must be compiled into the template. Output Designer
5.2 or later provides the ability to compile a template with multiple presentment targets.
Target is the ICS file name, which is the name in [ ] (square brackets) following the Print
Agent presentment target name in the Presentment Target Selection dialog in Output Designer.
To access the Presentment Target Selection dialog, in Output Designer, click File >
Presentment Targets.

For example:
-aspHPLJ5

selects the PCL 5 presentment target for a LaserJet 5/5M printer.


If the presentment target specified in the -asp option is not compiled into the template, Print
Agent stops processing the print job and writes a message to the log file. If you do not provide
the -asp option, the default presentment target for the template is used.

-ass (Select Symbol Set)


Format
-assnn

To select a symbol set or a Unicode transformation format, start Print Agent with the -ass
option. Unicode transformation formats are Unicode 2 based.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

118

nn is a set number from the table below, which details the defined symbol sets and Unicode
transformation format. Note that Thai, Hebrew, and Arabic code pages / languages are listed for
documentation completeness; however, the use of Thai, Hebrew, and Arabic with Output
Designer and Central is neither certified nor supported by Adobe.

Set

Description

Roman-8 extended

IBM/PC-850 (This is the default)

Windows ANSI (Latin 1)

Dec Supplemental

10

Shift-Jis

20

KSC5601-87

30

Big-Five

35

GB2312-80

36

GBK

37

ANSI CP 950 (Taiwan)

40

EBCDIC

42

EBCDIC

50

Thai

60

Windows Latin 2

61

Russian

63

Greek

64

Turkish

65

Hebrew

66

Arabic

67

Baltic

86

Russian (DOS)

108

UNICODE_UTF8

For example, to select the GBK symbol set, start Print Agent with this command:
jfmerge -aiijfmerge.ini -ass36

Print Agent attempts to translate the input data symbol set to the symbol set expected by the
printer. Symbol set translations and Unicode format translations can be redefined using the
jetkeys.ini file (see page 304).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

119

Note: When processing a JFPREAMBLE document variable, Print Agent will apply the symbol
set identified with the -ass option. If this is not appropriate, specify the symbol set with
the ^symbolset command (see page 222), instead of with the -ass option. In this
manner, the symbol set will be altered after processing of the JFPREAMBLE.

-atf (Trace File Name)


Format
-atffilename|+filename

To direct all messages from ^trace (see page 227) or \trace (see page 280) commands into a
separate file, start Print Agent with the -atf option. filename is the name of the file to which
the messages are written.
jfmerge poform poform.dat -atfmytrace.txt

Be default, before a message is written to the trace file, the file is truncated to zero-length.
When filename is prefixed with a + (plus sign), new messages are appended to the file.
jfmerge poform poform.dat -atf+mytrace.txt

The trace facility is most commonly used for debugging. However it can also be used to
generate data files for subsequent processing. For example, a data stream contains data for
multiple invoices. The invoice template uses intelligent pagination so that each invoice grows to
as many pages as required. Print Agent is required to print the message Page n of m at the
bottom of every page of each invoice. This requires two passes over the data stream because
Print Agent cannot know how many pages will be in each invoice until it reaches the end of that
invoice. If there was only one invoice in the print stream, the job could be handled using the
NumberPages variable (see page 121). However, since there are many invoices in the data
stream, a different approach is required.
During the first pass of the data stream, \trace commands cause Print Agent to generate a file
filled with ^define commands. Each command sets a variable to the number of pages in the
corresponding invoice. Print Agent starts the second pass by reading and executing all the
^define commands in the trace file. It is then a simple matter to fill in the Page n of m fields on
each page.
Note: In order to depict the data on the page in the examples that follow, some lines are
broken to fit the space.
The first pass is invoked with its output directed to the null device. On Windows, using the
Windows printer drivers, the command line is:
jfmerge ponofm ponofm.dat -aprpass1.pre -atfpass1.dat
-zqueue1/File=NUL:

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

120

The file pass1.pre contains:


^inline on
^define docnum 0
^define group:G_Totals!OnEntry
\defineresolve"docnum","@(@user:docnum.+1)"\trace"^define
pagecount@user:docnum. @$page.@lf."\$page1.

The group G_Totals corresponds to the subform Totals, which is the last subform laid
down for each invoice.

The variable docnum counts the invoices.

@lf is required to terminate each ^define with a new line.

The page count ($page) is reset to one to prepare for the next invoice.

The resulting pass1.dat file, the output of the first pass, contains:
^define
^define
^define
^define
.
.
.
... and

pagecount0
pagecount1
pagecount2
pagecount3

3
7
3
1

so on

The second pass is invoked as:


jfmerge ponofm ponofm.dat -aprpass2.pre -zqueue1

The file pass2.pre contains:


^inline on
^file pass1.dat
^define docnum 0
^global numpages 0
^define group:G_InvoiceHeader!OnEntry
\defineresolve"docnum","@(@user:docnum.+1)"\defineresolve"global:numpa
ges","@user:pagecount@user:docnum.."\$page1.

This preamble file:

Reads the file created in the first pass (pass1.dat), thereby loading all the invoice page
counts into an array of variables called pagecount1, pagecount2, and so on.

Sets up a group !OnEntry event that is triggered each time a new invoice starts. As before,
docnum is used to count invoices. The event handler fills the global field numpages with
the number of pages for the current invoice. It also resets the page number ($page) to one
for the current invoice.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

121

NumberPages Variable
The NumberPages variabale is used to place page numbers, in the Page n of m format, on
each page of a print run. All pages in the output are numbered sequentially, from the first to the
last. This works well if your output contains only one document. However, if your output
contains multiple documents, with each document to be numbered separately, use the -atf
option (see page 119) to achieve the Page n of m result.
When you receive your Central software, the Job Management Database contains the Job
Table entries EXOVST and EXOVDYN. Central uses these entries when you run the Field
Overflow in Multiline Fields sample (see page 15). Both EXOVST and EXOVDYN contain two
job steps, the first step invoking the task PGCNTGET and the second step invoking the task
PGCNTSET.
The PGCNTGET task calls Print Agent to pass the value of the NumberPages variable to
Central. The value is the number of surfaces to be printed, which Print Agent determines by
running the job. However, Print Agent does not print the job at this time; the output is directed to
the null device.
Note: Printing to a null device, as defined in the PGCNTGET task, is only supported for Print
Agent presentment targets. To use the PGCNTGET task and print via a Windows printer
driver, change the printer parameter Program option from -zNUL: to
-zqueuename/File=NUL:.
The PGCNTSET task again calls Print Agent. Central passes the command line option
-advglobal:pagecount=@NumberPages to Print Agent, substituting the value of the
NumberPages variable from the previous job step for the @NumberPages variable. The value
is placed in the Global dictionary, for further processing by Print Agent.
For example, the Field Overflow with a Dynamic Template memorandum prints a total of four
pages. Therefore, when Central calls Print Agent with the PGCNTSET task, it passes Print
Agent the command line option -advglobal:pagecount=4. Print Agent places this value in the
Global dictionary and retrieves it when it encounters the field PAGECOUNT on the
memorandum.

-ati (Input Tray)


Format
-ati{traynum|*ptrstring|+encoded-ptrstring}

To print from a specific input paper tray, start Print Agent with the -ati option.
traynum is the input tray number. By default, if the template is compiled with version 5.3 or
later of Output Designer, traynum is a Print Agent universal input tray number. This is a
printer-independent identifier. Print Agent translates the Print Agent input tray number into the
number assigned to the printer tray by the printer manufacturer. For example, for HP LaserJet
printers, the multi-purpose tray is physically labelled 1, but to select this tray it is necessary to

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

122

command the printer to select tray 8 in PCL 5 or tray 3 in PostScript. To select the tray
labelled 1, regardless of whether the template is compiled for PCL 5 or PostScript, use this
option:
jfmerge formfile datafile -aiijfmerge.ini -ati1

Refer to the documentation provided with your printer for the manufacturers tray numbering.
Print Agent understands the following Print Agent tray numbers:
Print Agent Tray Number Manufacturer Printer Tray
0

The current tray

HP tray 1 (multi-purpose tray)

HP tray 2

HP tray 3

HP tray 4 (large capacity tray)

HP tray 5 (large capacity tray)

Envelope tray

Auto select

Manual feed

20 through 59

Large capacity trays 1 through 40. For example, Print Agent tray
23 is large capacity tray 4.

100

Middle tray

101

Tractor feed

102

Small format tray

103

Large format tray

201 through 220


(PostScript printers only)

PostScript tray 1 through 20. For example, Print Agent tray 217 is
PostScript tray 17.

301 through 320

External trays 1 through 20. For example, Print Agent tray 311 is
external tray 11.

401

Upper tray

402

Lower tray

403

Envelope manual feed

404

Multi-purpose tray

405

Label stock

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

123

traynum may specify a tray that is not available on the printer. When this happens, Print Agent
selects the next-best tray. The template (compiled with version 5.3 or later of Output Designer)
contains a prioritized list of alternate input trays. For Print Agent presentment targets, the
template also tells Print Agent what input trays are available. For Windows printer drivers, Print
Agent queries the Windows driver to obtain the list of available input trays.

For example, given the option:


-ati102

Print Agent checks whether the printer has a small-format input tray available. Finding it is not
available, it looks up the list of alternate input trays in the template. Suppose the list contains, in
order, 401, 402, 20, and 0. This causes Print Agent to try, in turn, the upper tray (401), the lower
tray (402), and the large capacity tray (20). If none of these are available, it falls back to the
current tray (0), that is, it does not issue an input tray selection command to the printer.
The template designer can change the list of alternate trays. The template designer can also
compile the template with a setting that causes Print Agent to treat input tray numbers as printer
tray numbers, that is, pass them through unaltered to the printer. You can override both the
default behavior and the template designers setting using the -atj command line option (see
page 124).
When printing from an older (pre-5.3) template, Print Agent always interprets traynum as a
printer tray number. To change this behavior, you must recompile the template with version 5.3
or later of Output Designer.
Note:

When the template is compiled for a PCL presentment target and the requested tray
contains paper of the size compiled into the template, that input tray will be selected.
However, if the requested tray does not contain paper of the correct size, the printer
will attempt to print from a tray containing paper that matches.

When the template is compiled for a PostScript presentment target, the printer will
attempt to print from the tray referenced in the -ati option.

Regardless of the presentment target, when the manual feed tray contains paper, the
printer will attempt to print from the manual feed tray.

ptrstring is the printer command string for the input paper tray, as set by the printer
manufacturer. It must be preceded by an * (asterisk). It is not interpreted by Print Agent, but
sent directly to the printer. It may not contain newline characters or other characters that are
special to Print Agent. For example, to select a paper tray designated by the printer
manufacturer with a printer command string of 6 setpapertray, use this command:
jfmerge formfile datafile -aiijfmerge.ini -ati"*6 setpapertray"

Windows printer drivers do not support the use of *ptrstring with the -ati option.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

124

encoded-ptrstring is the printer command string, but potentially with some or all characters
encoded, as described in the Appendix Numeric Character Values on page 319. It must be
preceded by a + (plus). For example, to select a paper tray designated by the printer
manufacturer with a printer command string of <Esc> (the escape character) followed by
&l4H, use this command:
jfmerge formfile datafile -aiijfmerge.ini -ati"+\027&l4H"

Windows printer drivers do not support the use of +encoded-ptrstring with the -ati option.

-atj (Interpret Input Tray Numbers)


Format
-atj{on|off}

To control the interpretation of input tray numbers, start Print Agent with the -atj option.
When printing from a template compiled with version 5.3 or later of Output Designer, Print
Agent by default interprets tray numbers as Print Agent universal tray numbers, rather than
printer-specific tray numbers. Use -atjoff to override this default behavior. The template
designer can also set an option at compile time to tell Print Agent to interpret tray numbers as
printer tray numbers. Use -atjon to override the compile-time option, causing Print Agent to
interpret tray numbers as Print Agent tray numbers.
When printing from a template compiled for a pre-5.3 version of Output Designer, Print Agent
ignores the -atj option and interprets tray numbers as printer tray numbers.
For selecting input paper trays, see -ati (Input Tray) on page 121 and ^trayin (Input Tray) on
page 227.

-ato (Output Tray)


Format
-ato{traynum|*ptrstring|+encoded-ptrstring}

To direct the printed output to a specific output paper tray, start Print Agent with the -ato option.
traynum is the number of the output tray, as set by the printer manufacturer. For example, to
select an output paper tray designated by the manufacturer as tray 4, use the following
command:
jfmerge formfile datafile -aiijfmerge.ini -ato4

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

125

ptrstring is the printer command string for the output paper tray, as set by the printer
manufacturer. It must be preceded by an * (asterisk). It is not interpreted by Print Agent, but
sent directly to the printer. It may not contain newline characters or other characters that are
special to Print Agent. For example, to select a paper tray designated by the printer
manufacturer with a printer command string of 4 setpagedevice, use this command:
jfmerge formfile datafile -aiijfmerge.ini -ato"*4 setpagedevice"
encoded-ptrstring is the printer command string, but potentially with some or all characters
encoded, as described in the Appendix Numeric Character Values on page 319. It must be
preceded by a + (plus). For example, to select a paper tray designated by the printer
manufacturer with a printer command string of <Esc> (the escape character) followed by
&l4G, use this command:
jfmerge formfile datafile -aiijfmerge.ini -ato4"+\027&l4G"

Refer to the documentation provided with your printer for the manufacturers tray numbering
and command strings.
The -ato option is not supported for Windows printer drivers.

-att (Translation Table File)


Format
-attfilename

To specify the name of the translation file for redefining symbol sets, start Print Agent with the
-att option. When you do not specify filename, the default is jetkeys.ini.

-auspsimbifs (USPS Intelligent Mail Barcode Input Field


Separator)

Format
N

EW

-auspsimbifscharacters

To specify the character to use for the USPS Intelligent Mail Barcode input field separator, start
Print Agent with the -auspsimbifs option. For example, to specify the | (pipe symbol) as the
input field separator, use the option -auspsimbifs|.
By default, the separator is newline. However, newline and the input field separator specified
with the -auspsimbifs option can be intermixed within a field.
The corresponding configuration file option for -auspsimbifs is USPSIMBIFS in the [Special]
section of the Print Agent configuration file, jfmerge.ini.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

126

You can specify a character value with the -auspsimbifs option, in lieu of the actual character.
This is useful in cases where the character you require is not a standard keyboard character.
For details, see the Appendix .Numeric Character Values on page 319
Note: USPS Intelligent Mail Barcodes are supported on PCL, PS, PDF, and Windows
presentment targets.

-autf8 (Convert Data to UTF-8)


Format
-autf8{on|off}

To convert all incoming data to the Unicode format UTF-8 before processing occurs, start Print
Agent with the -autf8on option. This is the default. With -autf8on, Print Agent resolves any
symbol set issues related to combining data from various sources, such as data for global fields
and data for variables. Mixing symbol sets is not a problem.
With -autf8off, use caution when mixing symbol sets. Print Agent does not keep track of the
symbol set that was in use when a global field was filled. It applies the current symbol set at the
moment it prints the field. Similarly, when substituting a variable, it applies the current symbol
set to the content of the variable. It is up to the user to ensure that the symbol set used when
the data was defined matches the symbol set when the data is used.
Caution: When a file name is referenced inside the data file (for example with ^graph or
^file) and that file name contains extended characters (that is, characters above
ASCII 128), Print Agent will not process the file name correctly with -autf8on.

-autfss (Automatic Font Symbol Set Switching)


Format
-autfss{on|off}

The -autfss option affects how Print Agent determines which font symbol set to use in printing
characters. Starting Print Agent with the -autfsson option will cause Print Agent to
automatically switch fonts, as described below, in order to print all characters in the data
stream. This is the default. To revert to the previous behavior, start Print Agent with the
-autfssoff option.
Versions of Print Agent previous to 5.4 always converted the data from the incoming data
symbol set, which was specified by the ^symbolset command (see page 222) in a data stream,
to the font symbol set of the field that the data was being merged into. For PCL and PostScript
printers, the default behavior was to convert the data from PC-850 to Roman-8, regardless of

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

127

whether the characters in the data symbol set existed in the font symbol set. No matter what
symbol set the data being supplied to Print Agent was in, the output was restricted to the
characters in the font symbol set as specified in the template.
With Print Agent version 5.4 and later, the same procedure will happen if the characters in the
data symbol set are printable in the current field font symbol set. If a character is not printable in
the current font symbol set, the font symbol set will be changed to one that is capable of printing
a particular character. If there is no symbol set in the current font capable of printing a specific
character, Print Agent will switch fonts to a font that is capable of printing the character. For
example, if the font symbol set of a field is Windows Latin1 but the data in the incoming data file
contains Windows Latin2 characters that do not exist in Windows Latin1, Print Agent will switch
to using a Windows Latin2 font to print the characters, assuming there is a Windows Latin2 font
available in the template.
Print Agent will examine all fonts defined for the printer in an attempt to output all the characters
defined in the data. In the unlikely event that a character cannot be printed, Print Agent will log
a message to its log file, by default jfserver.log.
The automatic font symbol set switching capability applies to all presentment targets for both
single and double-byte fonts, regardless of whether or not the font is downloadable or
printer-resident.

-auwp (Unicode Windows Printing)


Format
-auwp{on|off}

For templates compiled for Windows drivers, start Print Agent with the -auwp option to control
how font text is sent to the printer. With -auwpon, Print Agent will convert all data to Unicode
before sending it to the printer. There is useful in cases where it is required to print a character
that is not included in one of Central supported symbol sets.
For example, to print the French Franc character (Unicode U+20A3), which does not exist in
any of the symbol sets supported by Print Agent or by most printers, start Print Agent with the
-auwpon option. Print Agent will convert the UTF8 character to the correct Unicode character
and send it to the printer.
Caution: Using the -auwpon option may degrade performance, especially if using large fonts.
To send data to the printer without converting it to Unicode, start Print Agent with the -auwpoff
option. This is the default.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

128

Note: The -auwp command line option is not identical to the -autfss command line option.
When using the -auwp option, Print Agent will not switch fonts to print a character. For
example, if your current font is Arial and you have Korean data in your data file, with the
-auwp option Print Agent will just print blank characters. However, with the same
scenario and the -autfss option, Print Agent will switch to a Korean font to print the data.

-avl (Set Variable Leading)


Format
-avl{f|v|fv}

The -avl option affects leading, or the distance between printed lines of text. When the font size
for a field changes from the default font, the leading may need to change accordingly.
For another method of setting leading, see the "[fixed| variable|fixed variable]" arguments of the
^inline command on page 200.
The arguments for -avl are:

f (Fixed Leading)
The -avlf option, or fixed leading, is the default. Print Agent processes all text using the line
spacing from the field definition, as provided by the template designer, regardless of the font
size used.

v (Variable Leading)
The -avlv option, or variable leading, adjusts all line spacing based on the largest font within a
line of text. If the largest font used is still smaller than the default font for the field, the line
spacing is adjusted accordingly.

fv (Fixed Variable Leading)


The -avlfv option, or fixed variable leading, adjusts the line spacing only when the font used
within a line of text is larger than the default font for the field. The use of smaller fonts does not
adjust the line spacing.

-avnh (Hard Disk Volume Number)


Format
-avnhn

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

129

To specify a volume number for a printer that has more than one hard disk, start Print Agent
with the -avnh option. This option is necessary when formatting the hard disk, downloading
macros to it, and using macros stored on it. It does not affect macros stored in ordinary RAM.
n is the volume number. The default volume number is zero. The range for the volume number
is zero through nine, inclusive. You may specify both -avnh and -avnr (see page 129) on the
same command line; Print Agent uses whichever (if either) is appropriate to the job.

-avnr (Nonvolatile Memory Volume Number)


Format
-avnrn

To specify a volume number for a printer that has nonvolatile (flash) memory, start Print Agent
with the -avnr option. This option is necessary when formatting the nonvolatile memory,
downloading macros to it, and using macros stored on it. It does not affect macros stored in
ordinary RAM.
n is the volume number. The default volume number is zero. The range for the volume number
is zero through nine, inclusive. You may specify both -avnh (see page 129) and -avnr on the
same command line; Print Agent uses whichever (if either) is appropriate to the job.

The TEC label printer is a special case, but only when reformatting its nonvolatile memory. (See
-afmf (Format Nonvolatile Memory) on page 82.) In this case -avnr specifies an area of the
memory card to reformat: two means the PC save area, three means the writable character
area, and all other values of zero through nine mean the whole card.

-avs (Set Variable Substitution)


Format
-avs{on|off}

By default, Print Agent performs variable substitution, but in rare cases this may be
undesirable. You may enable variable substitution by starting Print Agent with the -avson
option. Otherwise, start Print Agent with the -avsoff option.
For another method of setting variable substitution, see the [novarsub|varsub] arguments of
the ^inline command on page 200.
For the substitution variables, see page 281.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

130

-axml (Process as XML)

UP

TE
DA

Format
-axml{yes|no|strict|medium|lax}

To control the automatic detection of XML format in the main data file, start Print Agent with the
-axml option.
With -axmlyes, Print Agent treats the file as XML format.
With -axmlno, Print Agent treats the file as field-nominated format.
With -axmlstrict, Print Agent treats the file as XML format if and only if the first five bytes after
the byte-order mark are <?xml, where the letters x, m, and l are case-insensitive. The
byte-order mark is optional and is a feature of UTF-8 encoding.
With -axmlmedium, Print Agent treats the file as XML format if and only if it contains at least
one instance of <? in the first 32 bytes and there is nothing before the <? other than white
space and/or a UTF-8 byte order mark. This still cannot guarantee recognition of all valid XML,
because it is not mandatory for XML to start with a processing directive, but it does detect the
great majority of conventionally formatted XML files without too much risk of false positives.
This option is useful if your XML data file starts with an XML job card but does not include an
<?xml...?> processing instruction.
With -axmllax, Print Agent treats the file as XML format if and only if it contains at least one <
character in the first 32 bytes and there is nothing before the < other than white space and/or
a UTF-8 byte order mark. This detects all valid XML. However it is vulnerable to false positives.
It is safe only if all of the field-nominated data files are known to start with ^ or job. This
option is useful when running Print Agent directly from the command line with XML data files
that do not contain job cards.
The default behavior for this option is -axmlstrict, which reproduces the behavior of Print Agent
5.5 and earlier. The -axml option is silently ignored if the value is null or is a value other than
those listed above.
Note: The -axml is silently ignored if -d (use comma-delimited format) is specified. In other
words, Print Agent has to be in field-nominated mode to process XML data files.
XML detection, and all processing of XML data files, ignores the -asl (skip lines) and
-asc (skip characters) options.
There is an option called ProcessAsXML in the [Options] section of the Print Agent
configuration file, jfmerge.ini. This option takes the same values as the -axml command line
option, but ProcessAsXML sets the default behavior for all data files, not only for the main data
file. Hence ProcessAsXML sets the default behavior for the main data file, for the preamble file
if there is one, and for any files opened using the ^file command. For the main data file the

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

131

command line option, if supplied, overrides the corresponding configuration file option.
However if the command line option has the value of the null string (that is, if it is supplied as
-axml), it is considered not to have been supplied.
The ^file command has an option similar to the -axml command line option. This makes it
possible to override the default XML recognition rule for files included this way. For details
about including the axml option in a ^file command, see ^file (Include File in Data) on
page 189.
The -axml option does not affect the processing of a preamble file specified with the -apr
command line option or with the PreambleFile option in jfmerge.ini. Preamble files are always
processed using the default XML recognition rule specified by the ProcessAsXML option in
jfmerge.ini.

-axpf (Execute Preamble Upon Processing ^form)


Format
-axpf{on|off}

To process a JFPREAMBLE document variable associated with a ^form command, start Print
Agent with the -axpfon option. This is the default. This option is another means of associating
preamble information with the transaction.
For templates created with Output Designer, the template designer creates a document
variable, with a Custom name of JFPREAMBLE. Its associated Custom value can include any
commands or data. When Print Agent encounters a ^form command with the option -axpfon, it
looks in the template for the JFPREAMBLE document variable. It stores the document variable
and its value in the DocVar Dictionary (see page 58). Print Agent then processes the dictionary
entry as data. When it finishes, Print Agent resumes processing with the line after the ^form
command.
When you specify the -axpfon option on the command line, processing applies to all ^form
commands, not just the first. To have the -axpfon option apply to only one ^form command,
include it with the command, instead of on the command line. To ignore the JFPREAMBLE
document variable, start Print Agent with the -axpfoff option.

-axps (Execute Preamble at Start-up)


Format
-axps{on|off}

To process a JFPREAMBLE document variable at start-up, start Print Agent with the -axpson
option. This is the default. This option is another means of associating preamble information
with the transaction.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

132

For templates created with Output Designer, the template designer creates a document
variable, with a Custom name of JFPREAMBLE. Its associated Custom value can include any
commands or data. When Print Agent encounters the -axpson option on the command line, it
immediately opens the template and retrieves the JFPREAMBLE document variable. It stores
the document variable and its value in the DocVar Dictionary (see page 58). Print Agent then
processes the dictionary entry as data. When it finishes, Print Agent resumes processing with
the first line of the data stream.
Note: When you use the -axpson option, you must supply the template name on the
command line. When you include the template name in the transaction file with a ^form
command, use the -axpf option to process a JFPREAMBLE document variable.
When you start Print Agent with both the -axpson and the -aprpreamblefile options, Print
Agent processes the -axpson option first. To ignore the JFPREAMBLE document variable, start
Print Agent with the -axpsoff option.

-axusetempfile (Use Temporary File)


Format
-axusetempfile{yes|no}
When Print Agent is processing an XML data file, it does so in two steps, first translating the
data file into field-nominated format and then processing the translated data. In previous
releases Print Agent always held the translated data in memory. Print Agent now has the option
of holding the translated data in memory or keeping it in a temporary file.
To specify the location for storing translated data, start Print Agent with the -axusetempfile
option.
With -axusetempfileyes, Print Agent keeps the translated data in a temporary file until it is
processed. This is the default. The use of a temporary file provides better system performance
and it is friendlier to other applications running concurrently on the same computer.
With -axusetempfileno, Print Agent holds the translated data in memory until it is processed.
The corresponding configuration file option for -axml is UseTempFile in the [Options] section of
the Print Agent configuration file, jfmerge.ini.

-azc (Zebra Hex Indicator Character)


Format
-azccharacter

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

133

To change the hex indicator character used with a Zebra printer, start Print Agent with the -azc
option. When printing to a Zebra printer, the hex indicator character must not occur in the input
data stream.
The default value at installation is set to _ (underscore). This value is controlled by the
ZebraHexControlChar setting in the [Options] section of the Print Agent configuration file,
jfmerge.ini.

-c (Number of Copies)
Format
-cnn

To specify the number of printed copies of a template, start Print Agent with the -c option. nn is
the number of copies, which must be an integer. The maximum number of copies is 99,999,999,
subject to the limitations of your printer. Refer to your printer documentation for limitations on
the maximum number of copies you can print.
For example, to merge the data in the file costs.dat with the template report.mdf and print five
copies, type this command:
jfmerge report.mdf costs.dat -aiijfmerge.ini -c5

Print Agent does not collate the output. For example, if report.mdf is a two page template and
Print Agent prints five copies, you receive five copies of page 1 and then five copies of page 2.
When you do not specify a number of copies, Print Agent prints the number of copies compiled
in the template in Output Designer.
This option is supported only for Print Agent presentment targets and only for printed copies.

-f (File Name Override)


Format
-fmdfname

To override any template name entered earlier on the command line, start Print Agent with the
-f option.
mdfname is the template name. It may be any of a fully qualified file name, a fully qualified URL
beginning with http:, or a file or resource name without a path. If mdfname is not fully
qualified, Print Agent will attempt to open it as a file in the current directory. If this attempt fails
and the -afp template path option (see page 82) has been supplied, Print Agent will try again
using the template path.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

134

mdfname may also be a place holder when a ^form command (see page 191) occurs early in
the data stream.

This option is useful when starting Print Agent within a script.

-i (Record Length Initial Value)


Format
-in

To change the initial value of the record length of a physical line in the data stream, start Print
Agent with the -i option. n is the record length initial value, and can be any number up to and
including the maximum positive value for an integer on the platform. For most machines, this is
2 to the power of 31.
The default record length initial value is 6144 bytes. The record length upper limit is 19996
bytes.
For example, to change the initial value of the record length for the file costs.dat to 8600 bytes,
type this command to merge the data in costs.dat with the template:
jfmerge report.mdf costs.dat -aiijfmerge.ini -i8600

-j (Suppress Banner)
Format
-j

When you start Print Agent on text-oriented platforms, a banner displays the version of Print
Agent you are running. When you do not wish to see this banner, start Print Agent with the -j
option.
For example, to merge the data in costs.dat with the template report.mdf without displaying
the banner, type this command:
jfmerge report.mdf costs.dat -aiijfmerge.ini -j

-l (Template Already Loaded)


Format
-l

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

135

To specify that the template may already be downloaded as a macro in the printer, start Print
Agent with the -l option. Note that this is the letter el, not the number one. Print Agent
merges the data with the template in the macro number specified by the -m option. This allows
for much faster printing, as Print Agent does not send the template to the printer at the
beginning of the print job.
For example, to merge the data in the file costs.dat with a template named prices.mdf stored
as permanent macro number 12, type this command:
jfmerge prices.mdf costs.dat -aiijfmerge.ini -l -m12p

You must download the macro before you can print using the -l option. Use the -m option
described below to download the template to the printer. Using the -l option affects all templates
in the data stream. You must download all referenced templates to the printer as macros.

-m (Download Macro to Printer)


Format
-mnn[p|t|f|m|r|h]

Start Print Agent with the -m option to:

Download a template to the printer with a macro number different from the macro number
assigned when the template was compiled.

Print a template that is already downloaded to the printer.

Both download and print the template.

nn is the number of the macro. It can have a maximum of five digits and be between 0 and
32767. To download a template to the printer as a specific macro number, replace nn with the
desired number. When you do not enter a value for nn, or when you enter a value of -1, the
macro number defaults to the number compiled into the template in Output Designer. This is the
default.

When you want to store a template as a permanent macro, you must use a macro number
greater than one. If you do not supply a macro type, a macro number of one is taken as a
temporary macro, and a macro number greater than one is taken as a permanent macro. A
macro number less than -1 tells Print Agent not to use macros at all, for any printer type.
For example, to download a template named lease.mdf to the printer as macro number 132,
type this command:
jfmerge lease.mdf -aiijfmerge.ini -m132

The -m option also prints a blank template. To download the template without printing a copy,
include the -q option (see page 139).
jfmerge lease.mdf -aiijfmerge.ini -m132 -q

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

136

To print a template that is already downloaded to the printer as a macro, specify the macro
number, append the p (Permanent) argument, and include the -l option (see page 134).
jfmerge lease.mdf -aiijfmerge.ini -m132p -l

When the template is a multipage template, Print Agent downloads the template into
consecutive macro numbers. For example, when you download a six-page template named
lease.mdf as macro number 14:
jfmerge lease.mdf -aiijfmerge.ini -m14

page 1 of the template is macro 14, page 2 is macro 15, and so on. This overwrites any macros
with these macro numbers. When you download a multipage template as macro 1 or as a
temporary macro, Print Agent clears all pages of the template from the printer memory when
printing finishes.
Your printer memory capacity determines the maximum number of macros that can reside in
your printer at any time. Refer to your printer documentation for limitations on resident macros.

-m Arguments
The arguments for the -m option tell Print Agent how and where to store printer macros. Print
Agent maintains this information for some types of macros in a Macro Status Table file for each
printer.
If the printer is powered off, all downloaded templates are lost, leaving the Macro Status Table
out of sync. You can download the permanent template macros to one or more printers and
re-synchronize the Macro Status Table files for each printer by choosing the Printer Reload
command from the Control menu in Central Control.
For the Printer Reload command, see the guide, Central Control.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

137

This table describes how Print Agent interprets the -m option, with the inclusion of its
arguments, and with and without the inclusion of the -l option. It also lists the supported printers
for each argument.
-m Argument

Without -l option

With -l option

p (Permanent)

For PCL 5, PostScript Level 2 and


some labels printers - downloads
the macro to the printer as a
permanent macro and updates the
Macro Status

For PCL 5, PostScript Level 2 and


some label printers - assumes the
macro is downloaded, but does not
consult or update the Macro Status
Table.

For PCL 6 printers, permanent macros are not supported.


t (Temporary)

The inclusion or not of the -l option does not affect the downloading of
temporary macros.
For PCL 5, PCL 6, PostScript Level 2, and some label printers, downloads
the macro to the printer as a temporary macro.
For PCL 5 and PCL 6 printers, the macro is deleted at the end of the print
job. For PostScript Level 2 and label printers, the macro remains in the
printer until replaced by another macro with the same number, or until the
printer is manually reset.

f (Load-first-time) For PCL 5, PostScript Level 2 and


some label printers - downloads the
macro to the printer the first time it is
used and updates the Macro Status
Table.

For PCL 5, PostScript Level 2 and


some label printers - checks the
Macro Status Table and downloads
the macro only if it is not currently
downloaded.

For PCL 6 printers, load-first-time macros are not supported.


m (Managed
Memory Macro)

Downloads the macro into managed


memory and updates the Macro
Status Table.

Checks the Macro Status Table and


downloads the macro only if it is not
currently downloaded. Before
downloading, it may remove other
managed macros from the printer in
order to make room for the new
macro.

This macro type is supported for PCL 5 and some label printers.
r (Nonvolatile
Memory Macro)

Downloads the macro into


nonvolatile memory. Does not
update the Macro Status Table.

Assumes the macro is downloaded,


but does not consult or update the
Macro Status Table.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

-m Argument

Without -l option

Command Line Options

138

With -l option

This macro type is supported for some PCL 5 and some label printers.
Print Agent does not print the template at the same time it is downloading it
into nonvolatile memory.
Note: Once the macro is downloaded to nonvolatile memory, it can be
invoked as a permanent macro with the p argument; the printer
searches both RAM and nonvolatile memory for the macro. This
can be convenient if you have some printers with nonvolatile
memory, and some without.
h (Macro in Hard
Disk Drive)

Downloads the macro into


the printers hard disk. Does not
update the Macro Status Table.

Assumes the macro is downloaded


already, but does not consult or
update the Macro Status Table.

This macro type is only supported on some models of PCL 5 and


PostScript Level 2 printers.
Print Agent does not print the template at the same time it is downloading it
into the printer hard disk.
Note: Once the macro is downloaded to disk, it can be invoked as a
permanent macro with the p argument; the printer searches both
RAM and hard disk memory for the macro. This can be convenient
if you have some printers with disks, and some without.

-n (Event Trace Level)


Format
-nnn

To specify the Intelligent Pagination event trace level, start Print Agent with the -n option. nn
can be any number within the range 0 to 100. When you do not enter a value for nn, the value
is set to 0. The default is 100. Print Agent sends the output to the log file
The possible values for the -n option are:.
Value

Description

Between 0 and 39

Returns all event trace messages, including the macro content of all
event macros found. In addition, each line of the data stream is
echoed to the log file.

Between 40 and 49

Returns all event trace messages, with the exception of the macro
content and the contents of the data stream.

Between 50 and 100

Sets event trace messaging off.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

139

-p (Printer Offset)
Format
-p[c|m|i]x,y

To offset the data on the page, start Print Agent with the -p option. Use c to indicate
centimeters as units of measure, m to indicate millimeters, or i to indicate inches. If you do
not specify a unit of measure, the default is inches.
x is the horizontal offset and y is the vertical offset. x and y may be decimals for offsets of
less than an even number of units. This enables you to arrange the data on a pre-printed
template correctly.

For example, to move the data to the right 5 inches and down 12.5 inches, start Print Agent with
this command:
jfmerge formname datafile -aiijfmerge.ini -pi5,12.5

When you want a vertical offset only, that is moved down 12.5 centimeters, start Print Agent
with this command:
jfmerge formname datafile -aiijfmerge.ini -pc0,12.5

-q (Quiet Download)
Format
-q

To download the template as a macro without printing it, start Print Agent with the -q option.
For example, to download a template named lease.mdf into the printer using the macro
number compiled into the template, use this command:
jfmerge lease.mdf -aiijfmerge.ini -q

Note: If you include the transaction file name with the command, Print Agent will print the
template and data.

-r (Reformat Data)
Format
-r{yes|no|fold|off|clip|trunc}

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

140

To control the handling of newline characters when processing multi-line fields, start Print Agent
with the -r option. The default is off.
You can achieve the same result by including the ^reformat command (see page 220) in the
data stream. However, the ^reformat command overrides the -r option on the command line.
Print Agent recognizes two newline characters in the data stream:

The <CR/LF> carriage return/line feed sequence.

The ~ (tilde), which is the Print Agent alternate newline character to the <CR/LF> carriage
return/line feed sequence.

The examples that follow use the ~ alternate newline character, although the data stream
representations make it appear otherwise. In order to depict the data on the page, the lines
were broken to fit the space. Only the ~ character represents actual new lines.
The arguments for -r are:

yes
When -r is yes:

Print Agent discards all newline characters in the data with these exceptions:

When the first character in a line is a space, Print Agent keeps the newline character at
the end of the previous line and the space.

When two or more newline characters immediately follow each other, Print Agent keeps
them all.

Print Agent word wraps the data within the field boundaries.

When there is more data than a field can hold, Print Agent overflows the data to the next field
on the template, and the next, until the data finishes. When the fields on the template cannot
contain all the data, Print Agent overflows the data to the next page. When there is data
specifically designated for a field that receives overflow data, Print Agent overprints the first
data with the second.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

141

This example shows how Print Agent handles data when the -r argument is yes:
This is the blank template showing the
position and size of fields.

This is the data stream, showing the data for


each field.
^field FIELD_1
This field is~field_1. All~data word~wraps
within the~field boundaries. If~there
is~more data~than will fit, the~data
overflows~to the next~field on~the form. If
there is~data specifically designated~for
the field that took the~overflow, the Print
Agent~overprints the first data with the
second.
^field FIELD_2
This field is~field_2. All~new
line~characters~in the data are~discarded
except~for the exceptions~in field_3
and~field_4.
^field FIELD_3
This field is~field_3.~ If the~first
character~in a line is a~space, the Print
Agent~keeps the~new line character~at the
end~of the~previous line~and the space.
^field FIELD_4
This field is~field_4.~~If two~or more
new~line characters~immediately follow~each
other, then the Print Agent keeps them all.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

142

This is the result of merging the template and


data stream.
This field is field_1. All
data word wraps within the
field boundaries. If there is
more data than will fit, the
data overflows to the next
field on the form. If there is
data specifically designated
for the field that took the
overflow, the Print Agent
overprints the first

This with
field
field_2.
data
theis
second.
new line characters in
data are discarded except
the exceptions in field_3

All
the
for
and

In Field_1 and Field_2, Print Agent discards


the newline characters and word-wraps the
data within the field boundaries.
Field_2, Field_3 and Field_4 show the
overflow of data from the previous fields. In
each instance, data overflows to the new
field, and data intended for that field
overprints the overflow data.

field_4.
This
field is field_3.
If the first character in a
line is a space, the Print
Agent keeps the new line
character at the end of the
previous
This
field
line
is and
field_4.
the space.
If two or more new line
characters immediately follow
each other, then the Print

Agent keeps them all.

Normally, merging this template and data


stream produces a one page output.
However, all data designated for Field_4 did
not fit in the field. The data overflows the field
to a second page.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

143

no
When -r is no, in fill justified fields Print Agent:

Retains all newline characters in the data.

Word wraps the data between newline characters.

Truncates the data at the end of the last word that fits in the field, when there is more data
than the field can hold.

When -r is no, in all other fields Print Agent:

Retains all newline characters in the data.

Does not word wrap the data.

Extends the data outside the left and right boundaries of the field, when there is more data
than the field can hold.

This example shows how Print Agent handles data when the argument for the -r option is no:
This is the blank template showing the
position and size of fields.

This is the data stream, showing the data for


each field.
^field FIELD_1
This field is field_1. The~field IS NOT
fill justified.~The data will overflow the
field boundary.
^field FIELD_2
This field is field_2. The field IS fill
justified. The data will truncate at the
end of the last word that fits in the
field.
^field FIELD_3
This field is~field_3. The field IS NOT
fill justified. The data will not
word-wrap.
^field FIELD_4
This field is field_4. The field~IS fill
justified. The data word-wraps between new
line characters.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

This field is field_1. The


field IS NOT fill justified.
The data will overflow the field boundary
This field is field_2. The
field IS fill justified. The
data will truncate at the end
This field is
field_3. The field IS NOT fill justified

This field is field_4. The


field
IS fill justified. The data

Command Line Options

144

This is the result of merging the template and


data stream. In all fields, Print Agent retains
the newline characters.
Field_2 and Field_4 are fill justified. Print
Agent word-wraps the data within the newline
characters and truncates the data at the end
of the last word that fits in the field.
Field_1 and Field_3 are top left justified. Print
Agent does not word-wrap the data. Where
data between newline characters is too long
to fit on one line, it extends outside the field
boundaries. In this example, it extends
outside the right boundary only because the
fields are left justified.

fold
When -r is fold, Print Agent:

Retains all newline characters in the data.

Word wraps data within the field boundaries.

When there is more data for a field than the field can hold:

For fields with a height of one line, overflows data outside the field boundaries.

For fields with a height of more than one line, truncates data at the end of the last word
that fits in the field.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

145

This example shows how Print Agent handles data when the argument for the -r option is fold:
This is the blank template showing the
position and size of fields.

This is the data stream, showing the data for


each field.
^field FIELD_1
This field is field_1. With~fold, the~Print
Agent retains all new line characters and
word-wraps data within the field
boundaries.
^field FIELD_2
This field is field_2. The Print Agent
overflows data outside the field boundaries
for fields with one line height.
^field FIELD_3
This field is field_3. The Print~Agent
truncates data at the end of the~last word
that fits in the field,~when there is more
data than the field can hold.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

This field is field_1. With


fold, the
Print Agent retains all new line
characters and word-wraps data within
the field boundaries.

Command Line Options

146

This is the result of merging the template and


data stream.
Field_1 shows that Print Agent retains the
newline characters. Where data between
newline characters is too long to fit on one
line, it word-wraps within the field boundaries.

This field is field_2. The Print Agent overf

This field is field_3. The Print


Agent truncates data at the end of the
last word that fits in the field, when

Where there is more data for a field than the


field holds, the resulting output depends on
the height of the field. When the field has a
height of one line, as shown in Field_2, the
data overflows outside the field boundaries.
When the field has a height of more than one
line, as shown in Field_3, the data truncates
at the end of the last word that fits in the field.

off
When -r is off, in fill justified fields Print Agent:

Discards newline characters from the data with these exceptions:

When the first character in a line is a space, Print Agent keeps the newline character at
the end of the previous line and the space.

When two or more newline characters immediately follow each other, Print Agent keeps
them all.

Word wraps the data within the field boundaries.

Truncates the data at the end of the last word that fits in the field, when there is more data
than the field can hold.

When -r is off, in all other fields Print Agent:

Retains newline characters.

Does not word wrap the data.

Extends the data outside the boundaries of the field, when there is more data than the field
can hold.

Does not keep vertical (top, middle and bottom) placement of the data, but begins printing
data at the top of the field.

Keeps horizontal (left, right and center) placement of the data.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

147

This example shows how Print Agent handles data when the argument for the -r option is off:
This is the blank template showing the
position and size of fields.

This is the data stream, showing the data for


each field.
^field FIELD_1
This field is field_1. In~fill
justified~fields, the Print Agent~discards
new line characters~except for the
exceptions in~field_2 and field_3.
Data~word-wraps within~field boundaries.
Data truncates at the end~of the last word
that fits in the field, when there~is more
data than the field can hold.
^field FIELD_2
This field is field_2.~ If the first
character~in a line is a space, the~Print
Agent keeps the new line~character at the
end of the~previous line and the space.
^field FIELD_3
This field is field_3.~~If two or more
new~line characters immediately~follow each
other, the Print Agent~keeps them all.
^field FIELD_4
This field is field_4. In~non fill
justified~fields, the Print Agent retains
new line characters but~does not word-wrap
the data.
^field FIELD_5
This field is field_5. This~field is
bottom~right justified. The Print Agent
does not keep vertical~placement~of the
data but keeps horizontal placement.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

This field is field_1. In


fill justified fields, the
Print
Agent
discards
new
line characters except for
the exceptions in field_2 and
field_3.
Data
word-wraps
within field boundaries. Data
This field is field_2.
If the first character in a
line is a space, the Print
Agent keeps the new line
character at the end of the

Command Line Options

148

This is the result of merging the template and


data stream.
Field_1, Field_2 and Field_3 are fill justified
fields. Other than the specified exceptions in
Field_2 and Field_3, Print Agent discards the
newline characters in these fields. Data word
wraps within the field boundaries and
truncates at the end of the last word that fits
in the field.

This field is field_3.


If two or more new line
characters immediately follow
This field is field_4. In
non fill justified
fields, the Print Agent retains new line
does not word-wrap the data.

Field_4 is top left justified and Field_5 is


bottom right justified. The data does not word
wrap and extends outside the field. Print
Agent keeps horizontal placement of the data
but does not keep vertical placement of the
data.

This field is field_5. This


field is bottom
right justified. The Print Agent
placement
of the data but keeps horizontal placement.

clip
When -r is clip, Print Agent:

Discards all newline characters in the data with these exceptions:

When the first character in a line is a space, keeps the newline character at the end of the
previous line and the space.

When two or more newline characters immediately follow each other, keeps them all.

Word wraps the data within the field boundaries.

Truncates the data at the end of the last word that fits in the field, when there is more data
than the field can hold.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

149

This example shows how Print Agent handles data when the argument for the -r option is clip:
This is the blank template showing the
position and size of fields.

This is the data stream, showing the data for


each field.
^field FIELD_1
This field is~field_1. The Print
Agent~discards new line characters~except
for the exceptions in
field_2 and~field_3. Data~word-wraps
within~field boundaries. Data truncates at
the end of the last word that~fits in the
field, when there~is more data than
the~field can hold.
^field FIELD_2
This field is~field_2.~ If the first
character~in a line is a space, the~Print
Agent keeps the new line~character at the
end of the~previous line and the space.
^field FIELD_3
This field is~field_3.~~If two or more
new~line characters immediately~follow each
other, the Print Agent~keeps them all.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

150

This is the result of merging the template and


data stream.
This field is field_1. The Print Agent
discards new line characters except for
the exceptions in field_2 and field_3.
Data word-wraps within field boundaries.
Data truncates at the end of the last
word that fits in the field, when there

This field is field_2.


If the first character in a line is a
space, the Print Agent keeps the new
line character at the end of the
previous line and the space.

Print Agent discards all newline characters,


other than the exceptions noted in Field_2
and Field_3 and word wraps data within the
field boundaries.
When there is more data for the field than the
field can hold, the data truncates at the end of
the last word that fits in the field.

This field is field_3.


If two or more new line characters
immediately follow each other, the Print
Agent keeps them all.

trunc
When -r is trunc, Print Agent:

Retains all newline characters in the data.

Word wraps the data within the field boundaries.

Keeps vertical (top, middle, and bottom) and horizontal (left, right and center) placement of
data.

Truncates data at the end of the last character that fits in the field, when there is more data
than the field can hold.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

151

This example shows how Print Agent handles data when the argument for the -r option is
trunc:
This is the blank template showing the
position and size of fields.

This is the data stream, showing the data for


each field.
^field FIELD_1
This field is~field_1. With trunc,~the
Print Agent retains~all new line characters
and~word-wraps data within the~field
boundaries.
^field FIELD_2
This field is field_2. The Print~Agent
truncates data at the end~of the last
character that fits in the field, when
there is more data than the field can hold.
^field FIELD_3
This field is field_3. This field~is middle
center justified. The~Print Agent keeps
vertical~and horizontal placement~of data.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

152

This is the result of merging the template and


data stream.
This field is
field_1. With trunc,
the Print Agent retains
all new line characters and
word-wraps data within the
field boundaries.

Print Agent retains all newline characters and


word-wraps the data within the field
boundaries.
When there is more data for the field than the
field can hold, the data truncates at the end of
the last character that fits in the field.

This field is field_2. The Print


Agent truncates data at the end
of the last character that fits in the f

Field_1 is top left justified, Field_2 is middle


left justified and Field_3 is middle center
justified. Print Agent keeps all vertical and
horizontal placement of data.

This field is field_3. This field


is middle center justified. The
Print Agent keeps vertical
and horizontal placement
of data.

-s (Starting Page Number)


Format
-snn

To override the starting page number for $PAGE fields, start Print Agent with the -s option. nn
is the starting page number. The default is 1.
For example, to set the starting page number to 17 for a template named estimate.mdf and
merge it with a transaction file named costs.dat, use this command:
jfmerge estimate.mdf costs.dat -aiijfmerge.ini -s17

$PAGE is an Output Designer special field name that is filled automatically at print time.

-v (Message Display)
Format
-v[nn]

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

153

As Print Agent processes a transaction file, it writes status and information messages to the log
file. It can also include trace messages in the log file, produced as a result of a ^trace (see
page 227) or \trace (see page 280) command in the data stream. To set the level of messages
written to the log file, start Print Agent with one of the -v options.
Option

Description

-v0

Writes all messages, including trace, informational, warning, error and severe
messages. This is the default.

-v10

Suppresses trace and informational messages.

-v20

Suppresses trace, informational, and warning messages.

-v30

Suppresses trace, informational, warning, and error messages.

-v40

Suppresses all messages.

Note: Trace messages, produced as a result of a ^trace or \trace command, can also be
directed to a file other than the log file. For details, see -atf (Trace File Name) on
page 119.

-z (Direct Output)
Format
-zxxx

- or -zdirpath,u[.ext]

- or -zqueue/q

- or -zport

- or -zqueuename

- or -z\\servername\queuename

- or -z"queuename/File=filename"

or -z"http://ip_address/ipp/q"

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

154

or -z$windows

To specify the output location, start Print Agent with the -z option.
Not all -z arguments are available for use with all supported platforms or with all presentment
targets. This table outlines the valid platforms and presentment targets for each.
-z Option

Platforms

Presentment Target

-zxxx

All supported platforms

Print Agent

-zdirpath,u[.ext]

All supported platforms

Print Agent

-zqueue/q

Windows 2000 and up

Print Agent

-zport

Windows 2000 and up

Print Agent

-zqueuename

Windows 2000 and up

Windows

-z\\servername\queuename
(with UNC queue name)

Windows 2000 and up

Windows

-z\\servername\queuename (with
UNC share name of the queue)

Windows 2000 and up

Print Agent and Windows

-z"queuename/File=filename"

Windows 2000 and up

Windows

-z"http://ip_address/ipp/q"

Windows 2000 and up

Print Agent

-z$windows

Windows 2000 and up

Windows

The default for the -z option is taken from the template (specified at compile time if the template
is created with Output Designer).

-zxxx
xxx specifies an output location, which can be a device or a disk file name.

For example, to merge a template named shop.mdf with a transaction file named needed.dat
and send the output to a file named output.prn in the current directory, start Print Agent with
this command:
jfmerge shop.mdf needed.dat -aiijfmerge.ini -zoutput.prn

The output file name can contain spaces. If it does, it must be enclosed in (quotation marks).
For example
jfmerge shop.mdf needed.dat -aiijfmerge.ini -z"My output.prn"

-zdirpath,u[.ext]
Use this argument with the -z option to direct output to a directory. This is used, in particular,
with fax packages that use a collector directory. The ,u argument allows for the creation of a
unique file name, to avoid overwriting a file which may be in the directory.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

155

Note: For some fax packages, the use of the ,u argument is mandatory.
dirpath specifies the name of a directory in which to create a file, and ,u is a keyword
indicating that a unique file name is to be generated. The .ext is an optional argument to
specify an extension, when you require a specific extension. The default extension is .tmp,
except for certain fax packages such as TOPCALL, where it is .fx.

For example, providing this option for -z:


-zd:\fax\collector,u.dat

generates a file of the template:


d:\fax\collector\jfmA1EOF.dat

-zqueue/q
queue is the name of a queue and /q is a keyword indicating that you want to direct the
output to the queue. Use the /q argument when you want to use the operating system spooler
facility to print a job in a queue, rather than treating the queue as a file.

For example, on a Windows platform:


-z\\server1\lj5si/q

or ...
-z"http://172.16.5.83/ipp/q"

This option only works with templates compiled for Print Agent presentment targets.

-zport
port causes the output to print to the first printer attached to the named port.

For example,
-zlpt1:

prints to a local printer port using the first printer in the [devices] section that uses lpt1:. The :
(colon) is required; in the Job Management Database, ensure that the default printer includes a
colon after the lpt1.

-zqueuename
queuename causes the output to print to the first port attached to the named printer name.

For example,
-z"LaserJet 4L"

prints to the first port attached to the LaserJet 4L printer.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

156

-z\\servername\queuename
\\servername\queuename prints to the device, specified using Universal Naming
Convention (UNC). queuename can be either the UNC queue name or the UNC share name
of the queue.

For example,
-z"\\central1\LaserJet 5si MX"

prints to the UNC queue name,


and,
-z\\central1\lj5si

prints to the UNC share name of the queue.

-zqueuename/File=filename
This format of the -z option tells Print Agent to save the output to a file rather than printing it.
queuename specifies the name of a queue. Print Agent will use the driver associated with the
queue to generate the output.
filename identifies the file where Print Agent will write the output.

When either queuename or filename contain spaces, enclose the arguments in


(quotation marks).
For example:
-z"HP LaserJet 4Si/File=MoreOutput.prn"

generates output in the file moreoutput.prn using the driver associated with the queue,
HP LaserJet 4Si.

-z"http://ip_address/ipp/q"
"http://ip_address/ipp/q" prints directly to the device specified by the Internet Protocol
(IP) address ip_address.

The string must start with the literal http://.


ip_address can be the numeric IP address, BUT it may be a better practice to use a name
instead of an ip address directly. Contact your network administrator for this information.
/ipp varies by printer manufacturer. Consult the printer documentation or the embedded Web
server on the printer for this information.
/q is required by Print Agent.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

157

For example:
-z"http://123.231.32.2/ipp/q"
-z"http://myprinter/ipp/q"

Caution: You may encounter difficulties when printing to an IP address, depending on the
speed of your communication link. Print Agent prints directly to the IP address; the
job is not placed in a queue. Therefore, Print Agent will not process a subsequent
job until the print job has been transmitted to the remote IP address.

-z$windows
Use this argument with the -z option to direct output to your default printer.

OutputFileName Parameter
Whenever Print Agent output is directed to a file or device, it automatically places the name of
the file or device into a Central substitution variable called @OutputFileName. This is
particularly useful in subsequent job steps, after Print Agent is invoked with the ,u argument.
For an example of this processing, see the job PREVIEW that ships with the Job Management
Database. This job consists of two steps, the first to invoke Print Agent to direct the output to a
temporary file, and the second to invoke Preview Agent to route the file to a users workstation
for previewing.

@parmfile (Parameter File)


Format
@parmfile

To direct Print Agent to read its command line options from a file, start Print Agent with the
@parmfile option. parmfile is a text file containing the options for starting Print Agent. When
you do not specify a path for the parameter file, Print Agent searches the current path.
Create the parameter file with any text editor that produces a plain text file. Separate the
options with spaces, or place the options on separate lines. When one of the options includes
(quotation marks), the entire option must be on one line.
You can place any command line options in the parameter file, including the names of the
template and transaction files.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

158

For example, when a parameter file named input.txt contains these entries:
bank.mdf branch.dat -aiijfmerge.ini -c3 -s25
-agv"BRANCH=Ash Place"

and you type this command:


jfmerge @input.txt

the result is the same as if you typed:


jfmerge bank.mdf branch.dat -aiijfmerge.ini -c3 -s25 -agv"BRANCH=Ash
Place"

Use the @parmfile option when your command line length exceeds the maximum command
line length set by the operating system. For example, in Microsoft Windows, the maximum
command line length is 120 characters.

XML OPTIONS
There are a number of options that determine the way in which Print Agent processes XML
data. These XML options use the same format as the Processing options (see page 65).
For a description of how XML data is translated, refer to the guide, Integrating XML with
Central.
You can choose any of the following XML options:

-axattributes (Map Attributes)


Format
-axattributes=ignore|preserve

To specify the processing of attributes for data group elements, start Print Agent with the
-axattributes option.
With -axattributes=ignore, Print Agent ignores all attributes for data group elements. This is
the default.
With -axattributes=preserve, Print Agent maps all attributes for data group elements to data
values, resulting in ^field commands. It ignores all attributes for data values.
For example, in this XML data fragment, the element <book> represents a data group that has
the attribute status with a value of stocked:
<book status="stocked">
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
</book>

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

159

Using the -axattributes=ignore option results in:


^group G_book
^field ISBN
15536455
^field title
Introduction to XML

Print Agent omits the attribute status and the value stocked from the translation.
Using the -axattributes=preserve option results in:
^group G_book
^field status
stocked
^field ISBN
15536455
^field title
Introduction to XML

Print Agent translates the attribute status into a ^field command with a value of stocked.
You can change the default for this option by editing the Attributes=ignore setting in the
[XMLOptions] section of the Print Agent configuration file, jfmerge.ini.

-axaxsl (Apply XSLT Stylesheet)


Format
-axaxsl=stylesheet_uri

To specify a stylesheet to use when processing data, start Print Agent with the -axaxsl option.
stylesheet_uri is the URI of the XSLT stylesheet.
By default, Print Agent does not apply an XSLT stylesheet. When you specify an XSLT
stylesheet, Print Agent calls an XSLT processor to translate the source XML data file into
another XML data file. Print Agent then processes the resulting XML data file.
For example, with -axaxsl=http://www.adobe.com/data/mystylesheet.xsl, Print Agent
applies the stylesheet mystylesheet.xsl.

-axcodepage (Specify Code Page)


Format
-axcodepage=codepage_name

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

160

Print Agent supports XML data files encoded in:


UTF-8

Russian (ISO-8859-5)

Roman 8

Greek (ISO-8859-7)

PC-850

Hebrew (ISO-8859-8)

Latin 1 (ISO-8859-1)

Turkish (ISO-8859-9)

Latin 2 (ISO-8859-2)

Russian (DOS)

Baltic (ISO-8859-4)
During processing, the XML data file is converted into a field-nominated data file. To specify the
code page to use when processing the field-nominated data file, start Print Agent with the
-axcodepage option.
codepage_name is the name of one of the supported code pages. The default code page is
UTF-8.
The supported code pages are:
Code Page Name

Output ^symbolset

UTF-8

UTF8

ISO-8859-1

WINLATIN1

ISO-8859-2

Latin2

Shift-JIS

SHIFT-JIS

KSC-5601

HANGEUL

Big-Five

BIGFIVE

GB2312

GB2312

For example, when you do not specify a code page name, Print Agent processes this XML data
fragment ...
<order>
<book>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<quantity>1</quantity>
<unitprice>25.00</unitprice>
</book>
</order>

... as:
^symbolset UTF8
^group G_order
^group G_book

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

161

^field ISBN
15536455
^field title
Introduction to XML
^field quantity
1
^field unitprice
25.00

With -axcodepage=ISO-8859-1, Print Agent processes the XML data fragment with the
^symbolset value from the -axcodepage option:
^symbolset WINLATIN1
^group G_order
^group G_book
^field ISBN
15536455
^field title
Introduction to XML
^field quantity
1
^field unitprice
25.00

-axendgroupprefix (End Group Prefix)


Format
-axendgroupprefix=prefix

To change the group prefix for a ^group command that represents the end of each data group,
start Print Agent with the -axendgroupprefix option.
The default value at installation is set to G_END_ (G underscore END underscore). This value
is controlled by the EndGroupPrefix=G_END_ setting in the [XMLOptions] section of the Print
Agent configuration file, jfmerge.ini.

-axexclude (Exclude Namespaces)


Format
-axexclude=uri1 uri2 ... uriN

To identify portions of the XML data to exclude from processing, start Print Agent with the
-axexclude option.
uri is a Uniform Resource Identifier (URI) that refers to a namespace. Print Agent ignores all
elements belonging to the specified URIs.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

162

For example, this XML data fragment contains a number of namespaces, each prefaced by the
namespace declaration attribute xmlns=.
<biztalk xmlns="urn:microsoft:biztalk">
<head>
<info/>
</head>
<body xmlns="urn:microsoft:body-biztalk">
<po xmlns="mypo">
<date xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:match="many">2000-11-10</date>
<shipTo>
<name>Pat White</name>
<address/>
</shipTo>
</po>
<po xmlns="mypo">
<date xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
xfa:match="many">2000-11-10</date>
<shipTo>
<name>Chris White</name>
<address/>
</shipTo>
</po>
</body>
</biztalk>

Using the -axexclude=urn:microsoft:biztalk urn:microsoft:body-biztalk option results in:


^symbolset UTF8
^group G_po
^global date
2000-11-10
^group G_shipTo
^field name
Pat White
^field address
^undefine global:date
^group G_po
^global date
2000-11-10
^group G_shipTo
^field name
Chris White
^field address
^undefine global:date

Print Agent ignores the elements <biztalk>, <head>, and <info> that belong to the namespace
urn:microsoft:biztalk, and the element <body> that belongs to the namespace
urn:microsoft:body-biztalk. It also ignores the namespace declaration attributes xmlns and
the XFA-Data attributes that belong to the namespace
http://www.xfa.org/schema/xfa-data/1.0/. It starts processing the XML data at the first
occurrence of the element <po>.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

163

-axflatten (Suppress Data Groups)


Format
-axflatten={yes|no|1|0|on|off}

To specify the handling of multiple level data groups, start Print Agent with the -axflatten option.
This is useful when the structure of the data does not match the structure of an existing
template.
With -axflatten=no, -axflatten=0, or -axflatten=off, Print Agent treats all data groups as
subforms and prefaces them with a ^group command. This is the default behavior.
With -axflatten=yes, -axflatten=1, or -axflatten=on, Print Agent treats only top level data
groups as subforms and prefaces them with a ^group command. It ignores all lower level data
groups and translates their data values to ^field commands, contained by the top level ^group
command.
For example, in this XML data fragment, the element <book> represents a top level data group
and the element <author> represents a lower level data group:
<book>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<author>
<firstname>Pat</firstname>
<lastname>White</lastname>
</author>
</book>

Using the -axflatten=yes option results in:


^group G_book
^field ISBN
15536455
^field title
Introduction to XML
^field firstname
Pat
^field lastname
White

Print Agent translates only the top level data group <book> to a ^group command. It ignores
the lower level data group <author> and translates its data values to ^field commands
contained by the top level data group <book>.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

164

-axincrementalload (Incremental Loading)


Format
-axincrementalload={yes|no|1|0|on|off}

When Print Agent processes an XML data file, it first loads the data into the XFA-Data
Document Object Model (XFA -Data DOM), then translates it into Central field-nominated
format. For large XML data files that contain many records, Print Agent provides the capability
to incrementally load the XML data into memory on a record-by-record basis.
To specify how Print Agent loads XML data when converting it to field-nominated format, start
Print Agent with the -axincrementalload option.
With -axincrementalload=yes, -axincrementalload=1, or -axincrementalload=on, Print
Agent will load the XML data one record at a time. This is the default behavior.
With -axincrementalload=no, -axincrementalload=0, or -axincrementalload=off, Print
Agent will load the entire XML data file before converting it to field-nominated format.

-axorder (Output Order)


Format
-axorder=document|datavaluesfirst

When using Print Agent and dynamic templates, depending on the template design, it may be
necessary to process all the data values for a data group before processing a child data group.
To specify the processing order for data values and data groups, start Print Agent with the
-axorder option.
With -axorder=document, Print Agent outputs the data values and data groups in the same
order as in the XML data. This is the default.
With -axorder=datavaluesfirst, for each parent data group, Print Agent outputs the data
values first, then the child data groups.
For example, this XML data fragment contains the element <author>, which represents a child
data group of the data group <bookitem>:
<order>
<bookitem>
<ISBN>15536455</ISBN>
<author>
<firstname>Pat</firstname>
<lastname>White</lastname>
</author>
<title>Introduction to XML</title>
<quantity>1</quantity>

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

<unitprice>25.00</unitprice>
</bookitem>
<musicitem>
<cdid>4344-31020-2</cdid>
<title>Big Calm</title>
<quantity>1</quantity>
<unitprice>19.00</unitprice>
</musicitem>
</order>

Notice how the data value elements <title>, <quantity>, and <unitprice> belong to the data
group element <bookitem>.
Using the -axorder=document option results:
^symbolset UTF8
^group G_order
^group G_bookitem
^field ISBN
15536455
^group G_author
^field firstname
Pat
^field lastname
White
^field title
Introduction to XML
^field quantity
1
^field unitprice
25.00
^group G_musicitem
^field cdid
4344-31020-2
^field title
Big Calm
^field quantity
1
^field unitprice
19.00

In the example above, the translation results do not match the template. The fields title,
quantity, and unitprice do not belong to the subform author. These fields belong to the
subform bookitem.
To have Print Agent associate the fields title, quantity, and unitprice with the subform
bookitem, use the -axorder=datavaluesfirst option:
^symbolset UTF8
^group G_order
^group G_bookitem
^field ISBN
15536455

165

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

^field title
Introduction to XML
^field quantity
1
^field unitprice
25.00
^group G_author
^field firstname
Pat
^field lastname
White
^group G_musicitem
^field cdid
4344-31020-2
^field title
Big Calm
^field quantity
1
^field unitprice
19.00

The fields title, quantity, and unitprice appear below the subform bookitem. The data
structure now matches the structure of the template.
Using the -axorder=datavaluesfirst option results in:
^group G_order
^group G_bookitem
^field ISBN
15536455
^field title
Introduction to XML
^field quantity
1
^field unitprice
25.00
^group G_author
^field firstname
Pat
^field lastname
White
^group G_musicitem
^field cdid
4344-31020-2
^field title
Big Calm
^field quantity
1
^field unitprice
19.00

The child data group <author> appears after the data values for its parent data group
<bookitem>.

166

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

167

-axrecord (Specify Records)


Format
-axrecord={record-name|record-number}

To specify the data group elements that represent records, start Print Agent with the -axrecord
option. Print Agent will process the data contained within the designated records.
record-name is the tag name of an element. Print Agent maps each data group element at the
same level in the hierarchy of the specified record-name as a separate record. Data groups
with names that match record-name will translate to top-level ^group commands in the data
file. Print Agent ignores:

All higher-level nodes.

Same-level data groups with names that do not match record-name.

record-number is an integer that indicates the level in the hierarchy down from the start
element. The start element is located at a node level of 1. Print Agent maps each data group
element at the record-number level in the hierarchy as a separate record. Data groups that
match record-number will translate to top level ^group commands in the data. Print Agent
ignores all higher-level nodes.

The default record is the outermost node.


This example demonstrates the result of including record-name in the -axrecord option. This
XML data fragment contains a single record, which is the element <order>. This element
represents the top-level data group within the document range.
<order>
<number>1</number>
<shipto>
<reference><customer>c001</customer></reference>
</shipto>
<date><day>14</day><month>11</month><year>1998</year></date>
<item>
<book>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<quantity>1</quantity>
<unitprice>25.00</unitprice>
</book>
</item>
<item>
<book>
<ISBN>15536456</ISBN>
<title>XML Power</title>
<quantity>2</quantity>
<unitprice>30.00</unitprice>
</book>

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

168

</item>
</order>

Using the -axrecord=item option results in:


^group G_item
^group G_book
^field ISBN
15536455
^field title
Introduction to XML
^field quantity
1
^field unitprice
25.00
^group G_item
^group G_book
^field ISBN
15536456
^field title
XML Power
^field quantity
2
^field unitprice
30.00

When the XML data makes use of different element types for similar groupings of data, the
ability to express data records via a record number is useful. This example demonstrates the
result of including record-number in the -axrecord option:
<order>
<bookitem>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<quantity>1</quantity>
<unitprice>25.00</unitprice>
</bookitem>
<musicitem>
<cdid>4344-31020-2</cdid>
<title>Big Calm</title>
<quantity>1</quantity>
<unitprice>19.00</unitprice>
</musicitem>
</order>

Using the -axrecord=2 option results in:


^group G_bookitem
^field ISBN
15536455
^field title
Introduction to XML
^field quantity
1

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

169

^field unitprice
25.00
^group G_musicitem
^field cdid
4344-31020-2
^field title
Big Calm
^field quantity
1
^field unitprice
19.00

-axstartgroupprefix (Start Group Prefix)


Format
-axstartgroupprefix=prefix

To change the group prefix for a ^group command that appears at the beginning of each data
group, start Print Agent with the -axstartgroupprefix option.
The default value at installation is set to G_ (G underscore). This value is controlled by the
StartGroupPrefix=G_ setting in the [XMLOptions] section of the Print Agent configuration file,
jfmerge.ini.

-axstartnode (Specify Start Node)


Format
-axstartnode="xfasom(xfasom-expression)"

To identify the portion of the XML data to process, start Print Agent with the -axstartnode
option. This lets you constrain the processing to a fragment of the data.
xfasom(xfasom-expression) is an XFA-Scripting Object Model (XFA-SOM) Expression,
specifying the start (top-level) element of the XML data. The expression must be a
fully-qualified path of element types (tag names), starting with the root of the XML data and
referring to a single element. The expression must be surrounded with (quotation marks).
Print Agent will ignore all elements outside this element. The default start element is the
outermost node.

In this XML data fragment, the top level element is <order>, under which there are two <item>
elements, each containing a <book> element.
<order>
<number>1</number>
<shipto>
<reference><customer>c001</customer></reference>
</shipto>

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

170

<item>
<book>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<quantity>1</quantity>
<unitprice>25.00</unitprice>
</book>
</item>
<item>
<book>
<ISBN>15536456</ISBN>
<title>XML Power</title>
<quantity>2</quantity>
<unitprice>30.00</unitprice>
</book>
</item>
</order>

With -axstartnode=xfasom(order.item[2].book), Print Agent starts processing the data at


the second <book> element:
^group G_book
^field ISBN
15536456
^field title
XML Power
^field quantity
2
^field unitprice
30.00

All elements outside the <book> element of the second occurrence of the <item> element are
ignored.

-axuseendgroup (End Group)


Format
-axuseendgroup={yes|no|1|0|on|off}

To specify the insertion of a ^group command at the end of each data group, start Print Agent
with the -axuseendgroup option. The creation of a ^group command at the end of a data
group enables Print Agent to recognize when a data group ends and identify the next data
group in the data file.
With -axuseendgroup=yes, -axuseendgroup=1, or -axuseendgroup=on, Print Agent
generates a ^group command at the beginning of each data group with the default start group
prefix G_, and a ^group command at the end of each data group, with the default end group
prefix G_END_.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

171

With -axuseendgroup=no, -axuseendgroup=0, or -axuseendgroup=off, Print Agent


generates a ^group command at the beginning of each data group, with the default start group
prefix G_. This is the default behavior.
For example, in this XML data fragment, the elements <book> and <author> represent data
groups:
<book>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<author>
<firstname>Pat</firstname>
<lastname>White</lastname>
</author>
</book>

Using the -axuseendgroup=no option results in:


^group G_book
^field ISBN
15536455
^field title
Introduction to XML
^group G_author
^field firstname
Pat
^field lastname
White

Using the -axuseendgroup=yes option results in:


^group G_book
^field ISBN
15536455
^field title
Introduction to XML
^group G_author
^field firstname
Pat
^field lastname
White
^group G_END_author
^group G_END_book

-axuseformcommand (Use ^form Command)


Format
-axuseformcommand={yes|no|1|0|on|off}

To specify the name of the template that Central uses to process the data, start Print Agent with
the -axuseformcommand option.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Line Options

172

With -axuseformcommand=no, -axuseformcommand=0, or -axuseformcommand=off,


Print Agent prefaces all top level data groups with a ^group command. This is the default
behavior.
With -axuseformcommand=yes, -axuseformcommand=1, or -axuseformcommand=on,
Print Agent prefaces all top level data groups with a ^form command.
For example, in this XML data fragment, the element <order> represents a top level data group:
<order>
<bookitem>
<ISBN>15536455</ISBN>
<title>Introduction to XML</title>
<quantity>1</quantity>
<unitprice>25.00</unitprice>
</bookitem>
<musicitem>
<cdid>4344-31020-2</cdid>
<title>Big Calm</title>
<quantity>1</quantity>
<unitprice>19.00</unitprice>
</musicitem>
</order>

Using the -axuseformcommand=yes option results in:


^form order
^group G_bookitem
^field ISBN
15536455
^field title
Introduction to XML
^field quantity
1
^field unitprice
25.00
^group G_musicitem
^field cdid
4344-31020-2
^field title
Big Calm
^field quantity
1
^field unitprice
19.00

Print Agent translates the top level data group <order> to a ^form command.

Command Reference
This chapter describes the four groups of commands available for Print Agent:

Dynamic Merge commands

Inline Text Control commands

Intelligent Pagination commands

Variable Substitution commands

Within each command group, the commands appear in alphabetical order. Print Agent is
case-insensitive, unless otherwise stated in the command description.
The command format is:
command options arguments

where command is the name of the Print Agent command, options are mandatory or
non-mandatory conditions that refine the command, and arguments are values that you
provide for the option.
Options without brackets or in brace brackets are mandatory. If the options in brace brackets
are separated by vertical lines, such as
{item1|item2|item3}

you may use only one of the options within the brace brackets at any one time.
Options in square brackets are optional. If the options in square brackets are separated by
vertical lines, such as
[item1|item2|item3]

you may use only one of the options within the square brackets at any one time.

DYNAMIC MERGE COMMANDS


Dynamic Formatting commands are the base upon which Print Agent processes a transaction
file. These commands control field and template sequencing, data formats, transaction files and
the appearance of the templates. Using Dynamic Formatting commands, Print Agent can print
multipage templates, multipart templates, or can build a template dynamically using subforms.
A ^ (caret) prefixes Dynamic Merge commands. A space must separate the command from its
options.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

174

^unrecognized-command (Unrecognized Command)


Format
^unrecognized-command text

When Print Agent encounters a line beginning with a Dynamic Merge command prefix
character but does not recognize the command, it issues a message to the log file but
continues processing. It closes the currently active field, if any. Then it discards all text on the
remainder of the line and on subsequent lines until it encounters another line beginning with the
Dynamic Merge command prefix character.
Note: This information is provided solely to help you debug your data stream. Do not rely on
Print Agent to not recognize a particular command. Print Agent currently recognizes
some commands that are not documented, and Adobe reserves the right to add any
other commands, documented or undocumented, in future.

^comment (Insert Comment in Data Stream)


Format
^comment text

To include a non-printing comment in the data stream, use the ^comment command. Print
Agent does not print a line beginning with ^comment. text can be any number of lines long,
provided each line starts with the ^comment command.
For example:
field VENDOR_CODE
1001
^field VENDOR_NAME
A1 Business Products
^comment
IMPORTANT
^comment
When issuing purchase orders,
^comment
please ensure that you are using
^comment
the latest version of the vendor
^comment
address file.
^field VENDADDR1
234 Second St.
^field VENDADDR2
Anytown, ST
^field VENDADDR3
USA 12345-6789

results in:
1001
A1 Business Products
234 Second St.
Anytown, ST
USA 12345-6789

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

175

^continue (Continue Record Structure)


Format
^continue fieldname length [position]...

To use multiple lines for the definition of a fixed format record, use the ^continue command. A
^record command must precede the first ^continue command for the record structure.
For example, defining this record layout for a purchase order:
^record PO_DETAIL
^continue ITEM04 01
^continue QTY04 05
^continue DESC14 09

is the same as this ^record command:


^record PO_DETAIL ITEM 04 01 QTY 04 05 DESC 14 09

If your record must span more than one page in the template, indicate this with a ^continue
and a ^page command.
For example:
^record PO_DETAIL
^continue ^page 1
^continue ITEM04 01
^continue QTY04 05
^continue DESC14 09
^continue ^page 2
^continue SUB_TOTAL14 01
^continue DISCOUNT14 15
^continue TOTAL14 29

The fields ITEM, QTY and DESC appear on page 1 of the template and the fields SUB_TOTAL,
DISCOUNT and TOTAL appear on page 2 of the template. Define the records in order by page.
For example, you cannot define some fields from page 1, then some fields from page 2, then
more fields from page 1.
There may be portions of the data you want Print Agent to ignore. This happens when you use
the same data stream to print different templates. Print Agent ignores the data for the field
name FILLER.
For example, to ignore the data in the fifth and sixth characters in the record, use this definition:
^record PO_DETAIL
^continue ITEM04 01
^continue FILLER02 05
^continue QUANTITY 04 07
^continue DESCRIPTION14 11
^continue UNITS04 25
^continue UNIT_PRICE 07 29
^continue TOTAL14 36

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

176

^copies (Number of Copies)


Format
^copies nn

To specify the number of copies of the template that Print Agent outputs, insert a ^copies
command in the data stream. nn is the number of copies of the completed template to print,
and must be an integer. The maximum number of copies is 99,999,999, subject to the
limitations of your printer. Refer to your printer documentation for limitations on the maximum
number of copies you can print.

^copies Considerations
When you use the ^copies command, keep these considerations in mind:

This command is supported only for printed copies.

This command is supported only for Print Agent presentment targets and only for print
engines that support multiple copy printing.

The ^copies command must appear in the data stream before the template is opened. It
then applies to that template and any subsequent templates in the same data stream. If Print
Agent opens a template before it encounters the ^copies command, the number of copies
specified in the ^copies command will not apply to the template.
Conditions other than the execution of a ^form command can cause Print Agent to open the
template. For a list of these conditions, see either ^form (Open Template) on page 191, or
\form (Open Template) on page 260.

The printed output is not collated. For example, if the template has two pages and Print
Agent prints five copies, you receive five copies of page 1 and then five copies of page 2. If
you do not specify a number of copies, Print Agent prints the number of copies compiled in
the template in Output Designer.

^currency (Currency Formatting)


Format
^currency [symbol=symbol] [comma=comma] [decimal=decimal]
[parenthesis=parenthesis] [location=left|right] [credit=credit]
[debit=debit] [incomma=incomma|DEFAULT] [indecimal=indecimal|DEFAULT]

To define currency specifiers, use the ^currency command. This command applies only to
fields with a numeric picture format, either complied into the template in Output Designer or
added using the \pic command (see page 242).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

177

symbol is the currency symbol. The default is a $ (dollar sign). To change the currency
symbol to another character, for example, (pound sterling), use this command:
^currency symbol=
comma is the thousands separator. The default is a , (comma). To change the thousands
separator to another character, for example, . (period), use this command:
^currency comma=.
decimal is the decimal separator. The default is a . (period). To change the decimal
separator to another character, for example, , (comma), use this command:
^currency decimal=&
parenthesis is the pair of characters used as currency parentheses, indicating negative
values. The default is ( ) (left and right parentheses). To change the currency parentheses to
another pair of characters, for example, { } (left and right brace brackets), use this command:
^currency parenthesis={}
left|right is the location of the currency symbol. The default is left. To change the location
of the currency symbol to the right of the currency string, use this command:
^currency location=right
credit is the credit symbol, indicating a credit balance. The maximum size is four characters.
The default is CR. To change the credit symbol to other characters, for example, PLUS, use
this command:
^currency credit=PLUS
debit is the debit symbol, indicating a debit balance. The maximum size is four characters.
The default is DB. To change the debit symbol to other characters, for example, LESS, use
this command:
^currency debit=LESS
incomma|DEFAULT is the thousands separator for incoming data. The DEFAULT option sets
the incoming thousands separator to revert to using the comma value. At least one option must
be supplied. To change the thousands separator for incoming data to another character, for
example, . (period), use this command:
^currency incomma=.
indecimal|DEFAULT is the decimal separator for incoming data. At least one option must be
supplied. The DEFAULT option sets the incoming decimal separator to revert to using the
decimal value. To change the decimal separator for incoming data to another character, for
example, , (comma), use this command:
^currency indecimal=,

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

178

The ^currency command is useful in cases where:

You have a requirement to specify different currency symbols for specific fields on your
template.
For example:
^currency symbol=DM comma=. decimal=, location=right
^field TOTAL_GERMAN
1234.45
^currency symbol=$ comma=, decimal=. location=left
^field TOTAL_ENGLISH
1234.56

results in:
1.234,56DM
$1,234.56

The incoming data stream is generated with different currency separators than those defined
for the numeric picture clauses in the fields on your template.
For example, consider that you have these settings, typical for a German environment:
thousands separator (comma)

. (period)

decimal separator (decimal)

, (comma)

currency symbol (symbol)

DM

However, the transaction file contains English North American style numeric data. A value of
1234.56 (with a picture clause of $$$,$$$,$$9.99) will print as:
123.456,00DM

Adding these settings:


incoming thousands separator (incomma)

, (comma)

incoming decimal separator (indecimal)

. (period)

will cause the correct value to print:


1.234,56DM

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

179

^data (Change Active Record Definition)


Format
^data recname

To change the active record definition or to restore fixed record format after a ^field command,
insert a ^data command in the data stream. recname is the name assigned to a record
structure in the data stream. The specified record structure, defined by a ^record command,
must appear in the data stream before a ^data command that references it.
When you do not specify a recname, the active record definition defaults to the most recent
^record processed, either as a definition or as data.
For example, to use the record name PO_DETAIL defined in a ^record command, insert this
command in the data stream:
^record PO_DETAIL
^continue ITEM04 01
^continue QUANTITY 04 05
^continue DESCRIPTION 14 09
^continue UNITS04 23
^continue UNIT_PRICE07 27
^continue TOTAL_PRICE11 34
^data PO_DETAIL
101D 10Paper Clips
BOX
343D 10Foldback ClipsBOX

1.25
.80

12.50
8.00

^datagroup begin (Begin Data Group)


Format
^datagroup begin subformname

To enclose a section of the data stream containing data associated with a particular subform,
use the ^datagroup begin and ^datagroup end (see page 180) commands. Print Agent
performs new-subform processing when it encounters ^datagroup begin, provided the
previous section was associated with a different subform (or no subform).
^datagroup commands are always used in pairs, as in:
^datagroup begin subformname
.
.
.
^datagroup end [subformname]

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

180

In the ^datagroup begin command, subformname is mandatory. In the ^datagroup end


command, subformname is optional. If subformname is present with ^datagroup end, the
Print Agent ignores the value.

^datagroup end (End Data Group)


Format
^datagroup end [subformname]

This command can only be used in conjunction with the ^datagroup begin command. For
details, see ^datagroup begin (Begin Data Group) on page 179.

^define (Assign Value to Dictionary Variable)


Format
^define [resolve] [[dictionary-name]:]variable-name value

The ^define command assigns a value to a dictionary variable. These variables remain in
memory until the end of the Print Agent session or until Print Agent encounters the ^undefine
command (see page 231). Print Agent stores dictionary variables separately from global
variables, to avoid a conflict between a global field and a dictionary variable of the same name.
resolve is a literal that tells Print Agent to substitute a macro at the time the variable is
assigned.
The resolve option in the ^define command allows for variable substitution at the time the
variable is defined, rather than when the variable is actually used. For example, the resolve
option enables you to store the current page number into a variable that you can use later in a
document.
An example of using the resolve option with the ^define command is:
^define name Pat Brown
^define text1 Dear @:name, payment in the amount of........
^define resolve text2 Dear @:name, thank you for your
order
^define name Chris Green
^field PAYMENT
@:text1
^field ORDER
@:text2

which results in the text for fields PAYMENT and ORDER reading respectively:
Dear Chris Green, payment in the amount of.....
Dear Pat Brown, thank you for your order.....

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

181

At the time the variable @:text1 is defined, the value assigned to the variable @:name is Pat
Brown. However, when the @:text1 variable is actually used, the value assigned to the
variable @:name changes to Chris Green, and this is the name that appears in the result.
At the time the variable @:text2 is defined, the value assigned to the variable @:name is Pat
Brown. Because the resolve option is included, the value is substituted at that time, even
though the value assigned to @:name changes to Chris Green by the time the @:text2
variable is used.
dictionary-name: is the name of one of the dictionaries (see page 57) where Print Agent
stores variables, and is one of:

Global

User

Group

If you include a dictionary name, you must include the : (colon) after the dictionary name. In
the absence of a dictionary name, or if you include a colon without a dictionary name, the
default dictionary is User.
variable-name is the name of the variable. value is the value of the variable.

There are two ways to retrieve the value of a dictionary variable:

Use the @ (at sign) and provide the name of the variable and an optional dictionary name.
An example of storing and referencing a variable in the User dictionary is:
^define name Pat Brown.
Dear @:name.,
Thank you for your order..........

which results in:


Dear Pat Brown,
Thank you for your order..........

Use the ^define command with the Group dictionary to define group event and field event
handlers for intelligent pagination (see page 306). The variable-name defines the
dictionary group name and an associated event handler. The value consists of one or
more Intelligent Pagination commands. When the specified event occurs or the group is
explicitly called, Print Agent inserts the Intelligent Pagination commands into the data stream
for execution by the command processor.
Note that the Intelligent Pagination commands for ^define may use more than one line in the
data stream, for example:
^define group:ITEM!FldUsed \fieldPOSITION4
\groupPODETAIL.

Any data following a ^define command is treated by Print Agent as part of the ^define
command, until the next Dynamic Merge command prefix character is encountered. This
means that the \groupPODETAIL command in the example is not executed right away, but
instead is saved in the FldUsed event handler for the ITEM field.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

182

The string of Intelligent Pagination commands following a ^define command executes when
the event handler is called; Print Agent treats the string as though it was dispersed
throughout the data stream. Therefore, if the string is not delimited, portions of the data
stream may be interpreted as part of the last Intelligent Pagination command. Always
terminate a string of Intelligent Pagination commands with a . (period).
See also:

-adv (Define Dictionary Variable) on page 79, for another method of defining dictionary
variables.

Page 316 for replacing lines of input data using !Replace! and the ^define command.

^defineresolve (Assign Resolved Value to Variable)


Format
^defineresolve [[dictionary-name]:]variable-name [value]

To set the value of a dictionary variable, using the current value of other variables referenced in
value, include ^defineresolve in the data stream. This is a synonym for ^define resolve.

^duplex (Duplex Printing)


Format
^duplex {off|on|left|long|top|short|*ptrstring|+encoded-ptrstring}

For details about the duplexing arguments, see -adu (Duplex Printing) on page 76.
To specify two-sided printing, use the ^duplex xxxx command in the data stream. xxxx can be
one of:

off

on

left

long

top

short

*ptrstring

+encoded-ptrstring

For details about the duplexing arguments, see -adu (Duplex Printing) on page 76.
The ^duplex command is useful when you want to bind output in data binders.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

183

Print Agent uses the duplex option compiled into the template by default. When you change the
duplex option, the new option takes effect after the current page ejects.

^eject (Send Formfeed to Printer)


Format
^eject [options]

To send a formfeed to the printer, insert a ^eject command in the data stream. Print Agent
continues printing with the first field of the next page.
There are three options for the ^eject command:

trayin
Format
^eject trayin {traynum|*ptrstring|+encoded-ptrstring}

To print from a specific input paper tray, use the trayin option. Note that changing paper trays
while printing in duplex ejects the current page; data originally destined to print on the reverse
of this page now prints on a physically new sheet.
For example, to select input paper tray number 4, insert this command in the data stream:
^eject trayin 4

For a complete description of the trayin option, see ^trayin (Input Tray) on page 227.

trayout
Format
^eject trayout {traynum|*ptrstring|+encoded-ptrstring}

To direct the printed output to a specific output paper tray, use the trayout option. Note that
changing paper trays while printing in duplex ejects the current page; data originally destined to
print on the reverse of this page now prints on a physically new sheet.
For example, to select paper tray number 4, insert this command in the data stream:
^eject trayout 4

The trayout option is not supported for Windows printer drivers.


For a complete description of the trayout option, see ^trayout (Output Tray) on page 230.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

184

duplex
Format
^eject duplex
{off|on|left|long|top|short|*ptrstring|+encoded-ptrstring}

To handle two-sided printing after a page eject, use the duplex option.
For example, to eject a page and change the printing to duplex along the left edge, insert this
command in the data stream:
^eject duplex left

For a complete description of the duplexing arguments, see -adu (Duplex Printing) on
page 76.

^fax (Fax Data)


Format
^fax keyword1 "value1" keyword2 "value2" ... keywordN "valueN"

To send a template as a fax using one of the Central supported fax packages, insert a ^fax
command in the data stream.
keyword can be one or more of the following. Use only the keywords supported by your
particular fax package.

Keyword

Description

COVER_PAGE_TEXT

Additional text that prints on the cover page of your fax.

FROM_COMPANY

The name of the company sending the fax.

FROM_FAX_NUM

The number of the fax machine sending the fax.

FROM_NAME

The name of the person sending the fax.

FROM_VOICE_NUM

The voice number of the person sending the fax.

JOB_ID

A customizable unique ID number for the fax job.

MAIL

The mail-id of the person to be notified, via a mail message, of


success or failure of the fax transmission.

NEXT

Used for fax packages, such as Fax Sr. and RightFAX, that require
a keyword to separate multiple entries.

NOTIFY

Notify success or failure of the fax transmission.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Keyword

Command Reference

185

Description

OPTION_1 to OPTION_5 Used to pass optional parameters directly, without substitution, to


the fax program. For example:
^fax TO_FAX_NUM 123-4567 OPTION_1 "#NCP#"

sends the fax without the cover page in a Teubner FAXGATE


system. #NCP# means no cover page to FAXGATE.
PHONE_BOOK

A unique identifier corresponding to an entry in the phone book, on


a one phone book system.

PHONE_BOOK_G

A unique identifier corresponding to an entry in the global phone


book, on a two phone book system.

PHONE_BOOK_P

A unique identifier corresponding to an entry in the personal phone


book, on a two phone book system.

PRIORITY

The priority of the fax job.

RETRY

The number of times to attempt to send the fax.

SUBJECT

The subject description of the fax.

TO_ALT_NUM

The number of the alternate fax machine to receive the fax, in the
event that transmission to the TO_FAX_NUM fails.

TO_COMPANY

The company receiving the fax.

TO_FAX_CC_NUM

The number of the fax machine receiving a carbon copy of the fax.

TO_FAX_NUM

The number of the fax machine receiving the fax.

TO_NAME

The name of the person receiving the fax.

TO_VOICE_NUM

The voice number receiving the fax.

For example, including this command in the data stream:


^fax PHONE_BOOK_G tbrown TO_FAX_CC_NUM "Pat Green" FROM_NAME "Chris
White" RETRY 4 NOTIFY Failure MAIL cwhite SUBJECT "Contract for Computer
Workstations"

Sends a fax to the number associated with the identifier tbrown in the global phone book.

Sends a copy of the fax to Pat Green.

Indicates that the fax is sent by Chris White.

Tells the fax program to attempt to send the fax four times before terminating the operation.

Tells the fax program to return a failure notification to the e-mail address, cwhite.

Indicates that the subject of the fax is Contract for Computer Workstations.

Note: When a value includes spaces or non-alphanumeric characters, enclose the value
in (quotation marks).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

186

Faxing Considerations
When you use the ^fax command, keep these considerations in mind:

You may include any number of ^fax commands in the data stream; however, they must
immediately follow the ^job command and they may not be interspersed with other
commands or data. Once Print Agent processes a command other than the ^fax command,
it ignores all subsequent ^fax commands.
For example, in this data stream:
^job jobname
^fax TO_FAX_NUM "1-123-456-7890"
^form formname
^fax TO_ALT_NUM "1-987-654-3210"

Print Agent ignores the command ^fax TO_ALT_NUM "1-987-654-3210".

You can only direct the printed output to a fax driver. For details, see -apm (Print Fax Mode)
on page 113.

You can use the ,u argument with the -z option to direct fax output to a fax package that
has a collector directory. For details, see -z (Direct Output) on page 153.

Print Agent stores the options for the ^fax command in the Fax dictionary. For details, see
Fax Dictionary on page 58.

Specifying Fax Information Without Using ^fax


You may want to specify the information required to fax a document in a manner that does not
use the ^fax command. Typically, this will occur when you cannot alter the data stream for the
transaction file. You can use this approach under any circumstances as a alternative to ^fax.
To send a document as a fax using one of the Central supported fax packages, use the
-adv command line option to define each of the required faxing parameters. The -adv option
uses the format:
-advfax:keyword_n=value
fax is the name of the dictionary where Print Agent stores the faxing parameter.
keyword_n is one of the keywords defined for the ^fax command (See the examples on
page 187.) Use only the keywords supported by your particular fax package. Add a numeric
suffix, _n, to each keyword that groups the options associated with one fax. Assign the suffix
for a group of keywords sequentially, starting at 1.
value is the value associated with the keyword, such as the fax telephone number or the
subject of the fax.

Note: When a value includes spaces or non-alphanumeric characters, enclose the value in
(quotation marks).
Specify as many -adv options as are necessary to properly output each fax.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

187

Print Agent has two requirements for sending faxes using this approach:

You must specify the number of faxes that you want to send. Use the keyword
NumCommands as the first -adv option. For example, to specify that there will be
commands to output two faxes:
-advfax:NumCommands=2

Note: The value that you specify for NumCommands determines the number of faxes that
Print Agent will send. If you specify fewer that the number of fax telephone numbers
you provide, only the number specified will be sent. Print Agent will ignore the others.

For each fax device, you must specify the keyword TO_FAX_NUM_n and the telephone
number.

You can provide the -adv options to Print Agent in a variety of ways:

In a preamble, using the -apr command line option

From the command line, using -adv command line options, or in a parameter file specified
by @parmfile

In the JMD, by specifying the -adv options in the program options on the Task Table

The following example shows the command line options in a parameter file that will send a fax
to two fax numbers.
-advfax:NumCommands=2
-advfax:TO_FAX_NUM_1="1-234-555-6789"
-advfax:FROM_COMPANY_1="Any Company Inc."
-advfax:FROM_NAME_1="Finance Department"
-advfax:RETRY_1=3
-advfax:TO_FAX_NUM_2="1-234-565-3456"
-advfax:TO_ALT_NUM_2="1-234-565-2379"
-advfax:FROM_COMPANY_2="Any Company Inc."
-advfax:FROM_NAME_2="Finance Department"
-advfax:RETRY_2=2

This example shows how the -adv options would appear on the command line. In this example,
although the command line appears to overflow onto more than one line, it is all one long line.
jfmerge formname datafilename -advfax:NumCommands=2
-advfax:TO_FAX_NUM_1="1-234-555-6789" -advfax:FROM_COMPANY_1="Any
Company Inc." -advfax:FROM_NAME_1="Finance Department"
-advfax:RETRY_1=3 -advfax:TO_FAX_NUM_2="1-234-565-3456"
-advfax:TO_ALT_NUM_2="1-234-565-2379"
-advfax:FROM_COMPANY_2="Any Company Inc." -advfax:FROM_NAME_2="Finance
Department" -advfax:RETRY_2=2 ...

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

188

This example shows how the command line options would appear in a preamble:
^define
^define
^define
^define
^define

fax:NumCommands=2
fax:TO_FAX_NUM_1="1-234-555-6789"
fax:FROM_COMPANY_1="Any Company Inc."
fax:FROM_NAME_1="Finance Department"
fax:RETRY_1=3

^define
^define
^define
^define
^define

fax:TO_FAX_NUM_2="1-234-565-3456"
fax:TO_ALT_NUM_2="1-234-565-2379"
fax:FROM_COMPANY_2="Any Company Inc."
fax:FROM_NAME_2="Finance Department"
fax:RETRY_2=2

^field (Move to Specific Field)


Format
^field [fieldname]

To fill a specific field, insert a ^field command in the data stream. fieldname is the name
assigned to the field in Output Designer.
For example, to fill a field named USERNAME, use this command:
^field USERNAME
data

For templates designed with version 5.2.6 or later of Output Designer, a field can be defined as
a graphic field in the template. The text placed in such a field is interpreted by Print Agent in the
same way as the parameters for a ^graph command (see page 194). The image is rotated in
accordance with the field rotation setting, and then scaled to fit into the field boundaries. The
resolution parameter, if supplied, is ignored. For example, to fill a field named
COMPANY_LOGO with the graphics file, abc.jpg, with a gamma value of 0.75, use this
command:
^field COMPANY_LOGO
abc.jpg gamma 0.75

Note: You can provide a full path specification. However, if the path name contains spaces,
use the -alp command line option to identify the path and provide the name of the
graphics file as the data for the ^field command.
When you do not specify a field name, Print Agent moves to the next field on the template. Print
Agent processes the fields on the page in the tabbing sequence defined in Output Designer.
The default tabbing sequence in Output Designer is top to bottom, left to right on the page using
the top left-hand corner of the fields. You can also go to the next field by entering a ` (back
quotation mark) in the data.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

189

The ^field command enables you to:

Skip over fields where there is no data to print.

Skip lines of a multiline field that have no data.

Make the sequence of the data independent of the order of the fields on the page.

Set the pen position for laying down a subform on a page.

To change the way Print Agent handles data for fields, use the -afx option (see page 84). For
printing template pages without fields, see -aap (Print All Pages) on page 66.

^file (Include File in Data)


Format
^file filename [axml[yes|no|strict|medium|lax]] [skiplinesnumber]
[skipcharsnumber]

- or ^file [[dictionary name]:]variable name dictionary [skiplinesnumber]


[skipcharsnumber]

To include a file in the data stream, insert a ^file command in the data stream. This is similar to
an include file in a programming language.
Use the ^file command to:

Merge information into a field from a separate file.

Include a standard record description or global field data at the beginning of a transaction file
containing fixed format records.

Direct the input data stream to a dictionary variable as though it was a file.

The file may contain any information Print Agent can accept, including another ^file command.
You can nest up to one hundred levels of files, plus the main data file. However, in practice, the
operating system settings may limit the number of open files to be less than one hundred.
Note: The ^file command supports file names with embedded blanks (spaces). However, file
names with embedded blanks must be enclosed in (quotation marks).

^file filename [axml[yes|no|strict|medium|lax]] [skiplinesnumber]


[skipcharsnumber]
filename is the name of the file to include. It may include the full path specification. When you
do not provide the path specification, Print Agent searches the data path.

The axml parameter, if supplied, controls auto-detection of an XML data file. If the axml
parameter is not supplied, then the ProcessAsXML option in the Pring Agent configuration file,
jfmerge.ini, controls auto-detection of XML.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

190

The skiplines and skipchars parameters, if supplied, cause Print Agent to skip the
specified number of lines and characters, respectively, in the file. If you include both the
skiplines and skipchars parameters, Print Agent processes the skiplines parameter
first, then the skipchars parameter. This is similar to the -asc and -asl command line
options, which apply only to the main data file.
The skiplines and skipchars parameters have no effect when the file is opened as XML,
in the same way that the -asc and -asl command line options have no effect when the main
data file is opened as XML. However, if the file is opened as field-nominated, then the
skiplines and skipchars parameters apply as usual.
For example, the file info.dat may contain XML or field-nominated data and commands. If the
first non-whitespace character in the file is < then it is known to be XML, so it can be identified
as XML using the lax XML detection rule. However if info.dat contains field-nominated data
and commands, then the first three lines of the file must be discarded. To accomplish this, insert
this command sequence in the data stream:
^subform address
^file info.dat axmllax skiplines3

If the file is detected as an XML data file, the skiplines3 parameter is ignored and the entire
file is processed. If the file is not detected as an XML file, the file, minus its first three lines, is
processed.
To continue with the previous example, if the field ADDRESS is a global field, then specify the
^file command in the data stream and identify the global field in the file. In this case, the data
stream would contain the command:
^file info.dat

and the file info.dat would specify the field and its data:
^global address
123 Main Street
AnyCity, AnyCountry

^file [[dictionary name]:]variable name dictionary [skiplinesnumber]


[skipcharsnumber]
dictionary name can be any one of the Print Agent dictionaries. In the absence of a
dictionary name, the default dictionary is Global.
variable name is the name of the variable. If the variable name does not exist or is empty,
the command is silently ignored.
dictionary is a literal that tells Print Agent that the data is coming from a dictionary variable,
rather than a file.

The skiplines and skipchars parameters, if supplied, cause Print Agent to skip the
specified number of lines and characters, respectively, in the file. If you include both the
skiplines and skipchars parameters, Print Agent processes the skiplines parameter
first, then the skipchars parameter. This is similar to the -asc and -asl command line
options, which apply only to the main data file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

191

Using the ^file command with the dictionary keyword is useful for variables (such as
document variables) which contain multiple ^ commands.
For example, the document variable mypreamble contains:
^global manager
Chris White
^global host
@manager.

Trying to expand mypreamble as a macro (using the syntax @docvar:mypreamble.) does


not work properly. This is because it contains a reference to manager and manager is not yet
defined (it will be defined during the execution of the macro, after expansion has already been
done). Use ^file with the dictionary keyword instead to get the desired result.
^file docvar:mypreamble dictionary

Note: Print Agent makes a duplicate of the variable and reads subsequent input from the
duplicate. Therefore, if subsequent processing changes the value of the variable, there
is no effect on the input data stream.

^form (Open Template)


Format
^form MDFname [options]

To open a template (form), insert a ^form command in the data stream. This command
instructs Print Agent to close the currently open template and to open the template, MDFname.
For example, to open a template named newform.mdf, use this command:
^form newform.mdf
MDFname is the file name or URL for a template. When you specify a file name you may include
the full path specification. If you do not include the path and Print Agent was started with the
-afpformpath option (see page 82), it uses the formpath to assemble the complete file name or
URL. Print Agent also appends an .mdf extension to the name if no extension is given.

If the resulting full name starts with http:, Print Agent downloads the file from an HTTP server
using the full name as the URL. Otherwise, it opens the file within the file system.
Normally when the ^form command is specified in the data stream, Print Agent ignores any
template name on the command line. This means that you can start Print Agent with a dummy
file name if the data stream contains a ^form command. However, whether the template name
from the command line is actually ignored depends on the contents of your data stream. Certain
conditions cause Print Agent to immediately open the template. If Print Agent encounters one of
these conditions in the data stream before it encounters the ^form command, it will try to open
the template from the command line. If that happens and the command line contains a dummy
file name, your job will fail.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

192

When Print Agent encounters one of the conditions that cause it to immediately open a
template, it sends a reset sequence to the printer, and positions at the initial page. The default
initial page is page 1, but this can be changed with the -aip option.
The conditions that cause Print Agent to immediately open a template are:

Printing a blank template (no preamble or data file)

Starting in quiet download format (no preamble or data file and -q)

Starting with the print all pages flag (-aapon)

Processing text that is to be printed immediately (not into a global field)

Processing a reference to a document variable

Processing any of the following commands:

^form

^subform

^field

^graph

^position

^page

^eject

^macro

^passthru

^tab

Note: Although -axpson causes Print Agent to open the template when it starts, once it reads
and stores the preamble it closes the file again. If the open fails or there is no preamble,
it quietly ignores the -axpson.
When Print Agent reads a ^form command in the data stream and it is the first template
opened for that job, it makes page one of the template active. When opening subsequent
templates, Print Agent does end-of-page processing and sends a formfeed and soft reset to the
printer. The printed result is similar to that obtained when using the ^page command. The
difference is that all possible pages must be compiled into the template when using ^page. In
some cases you may wish to compile individual pages as separate templates and use the
^form command to reference them.
Use care when using the ^form command with multipart templates. Print Agent can only cope
with one template during a multipart print execution. For each part in a multipart template, Print
Agent repositions in the data stream to the start of the file. If you use a ^form command after
Print Agent has already opened the template, it forces Print Agent to reopen the template again.
Opening the template again may cause Print Agent to lose track of where it is in processing the
multipart template.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

193

^form options override equivalent options set on the command line, for the duration of the
template. Adding an option to the ^form command only affects the template specified by the
^form command. When you do not add a particular option to the ^form command, Print Agent
uses the equivalent option on the command line.
The options for the ^form command can be one or more of the following:

-aap (Print All Pages) (page 66)

-adu (Duplex Printing) (page 76)

-afx (Discard Unknown Fields) (page 84)

-aip (Start Print at Page Specified) (page 88)

-aob (Use Older Font Baseline) (page 97)

-apf (Picture Formatting) (page 111)

-ati (Input tray) (page 121)

-ato (Output Tray) (page 124)

-axpf (Execute Preamble Upon Processing ^form) (page 131)

-c (Number of Copies) (page 133)

-l (Template Already Loaded) (page 134)

-m (Download Macro to Printer) (page 135)

-p (Printer Offset) (page 139)

-s (Starting Page Number) (page 152)

For example, to print all pages of a template and use picture formatting, include the -aapon and
-apfon options respectively with the ^form command:
^form newform.mdf -aapon -apfon

^global (Define Global Field)


Format
^global fieldname
data

To insert the same data into fields of the same name on many template pages or templates,
insert a ^global command in the data stream. data can be one or more lines of text. data
can also be a graphic file name, if the field is defined as a graphic field in Output Designer.
For example, to insert the name Chris White into every field named MANAGER on the
template, insert this command into the data stream:
^global manager
Chris White

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

194

To insert the text Directs the operation of the Finance Department, including the supervision of
four subordinates. into every field named DUTIES on the template, insert this command into
the data stream:
^global duties
Directs the operation of the Finance Department, including the
supervision of four subordinates.

To insert the graphic file, abc.tif into every field named COMPANY_LOGO on the template,
insert this command into the data stream:
^global COMPANY_LOGO
abc.tif

When you are using fixed record format, placing an * (asterisk) at the beginning of global field
names in the record definition has the same effect. For details, see Global Field Processing
on page 40.
For example, to define a record called PROCUREMENT with a global field named MANAGER,
insert one of the following in the data stream:
^record PROCUREMENT *manager 25

- or ^record PROCUREMENT
^continue *manager 25

You can also define global variables in the Global dictionary (see page 59) using the ^define
command (see page 180).

^graph (Print Logo or Raster Image)


Format
^graph filename [type type] [resolution value] [gamma value]

To print a logo or raster graphic starting at the current position on the page, insert a ^graph
command in the data stream.
For example, to print a graphic called logo.pcx with a resolution of 600 dpi and a gamma value
of 2.2, use this command:
^graph logo.pcx resolution 600 gamma 2.2
filename is the name of the graphic file. Print Agent searches the template for a graphic file
included in the template with the given name. If it does not find the graphic file in the template, it
looks in the file system. When looking in the file system, if filename does not include the full
path, it uses the path specification from the -alp option (see page 91).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

195

type is one of the supported graphic types listed in the table below. If type is not supplied,
Print Agent infers it from the extension of filename. type is useful when filename refers
to a temporary file. For example:
^graph \tmp\ABAE1231.tmp type pcx

These are the supported graphic formats:


Type

Supported Formats

bmp

Most, but not including 32-bit color or bitfield encoding

not applicable

eps

Encapsulated PostScript File Format Version 1.2, 2.0, and


3.0, with these previews:

not applicable

Default Resolution

Device-specific screen preview:

Apple Macintosh PICT Resource

Windows Metafile or TIFF

Device-independent screen preview:

Encapsulated PostScript Interchange


Format (EPSI)

Note: EPS graphics are supported only for templates compiled using a PostScript
presentment target and printed to a PostScript printer. EPS graphics are not
supported for templates compiled using a Windows printer driver, even if the
templates are printed using a PostScript printer.
gif

jpg

lgo

gif87a and gif89a

interlaced and non-interlaced

24-bit color

Progressive and standard compression

1 bit monochrome

96 dpi

72 dpi

300 dpi

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

Type

Supported Formats

pcx

1 bit monochrome

8 and 24 bit color

png

8 and 24 bit color, but not 8 or 16 bit alpha channels

75 dpi

tif

1 bit monochrome

not applicable

- or -

8 bit gray-scale

gr3

8 and 24 bit color

Type 1 - no compression

Type 2 - CCITT 1D (CCITT Group 3 1D modified Huffman)


compression

Type 32773 - Packbits compression

Group 4 2D compression

196

Default Resolution
not applicable

resolution value indicates the resolution in dots per inch of the graphic file. This can be
any positive number or the word default.

For templates designed with version 5.2.6 or later of Output Designer, a field can be defined as
a graphic field in the template. When placing an image in a graphic field, Print Agent rotates the
image in accordance with the fields rotation setting and then scales the image to fit within the
field boundaries. resolution value, if supplied, is ignored.
When Print Agent places an image into a non-graphic field, it uses resolution value to
control the scaling of the image from its original resolution to the printers resolution. You can
use resolution value to force the image to be scaled differently. For example, if the image
was scanned at 144 dots per inch but you specify a resolution of 72 dots per inch, the image will
print at twice life-size.
If you supply a value of 0 or default for resolution value and the field is a non-graphic
field, Print Agent examines the image file. If the image file specifies the resolution, Print Agent
uses the value from the file. Otherwise Print Agent defaults to a value from the table above. In
the table, not applicable indicates that the resolution is always taken from the image file.
However, if you set the value of DefaultBitmapResolution in the Print Agent configuration file,
jfmerge.ini, to Yes, Print Agent will use 300 dots per inch as the default resolution for all
image formats. This provides backwards compatibility with data streams created for earlier
versions of Print Agent.
The gamma value indicates the degree of light intensity to assign to a color graphic. The
practical values are between 0 and 4. A value of 1 does not change the light intensity of the
graphic. A value less than 1 decreases the light intensity; a value greater than 1 increases the
light intensity. Note that the effect of a gamma value assigned with the ^graph command can
be impacted by other considerations, such as the gamma built into the graphic, or the gamma
of your printer.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

197

Color Image Considerations


For all color images printed with the ^graph command, the quality of the printed image is
dependent on the capabilities of your printer.
Print Agent does not support transparency. This applies to all colors in all image formats,
including the alpha channel in .png images.
When supplied with a color image, Print Agent sends it in color to the printer if the printer will
accept it. All PostScript printers and all Lexmark PCL 5 printers accept color images, including
monochrome models. These printers convert color images to gray-scale by themselves as
necessary. However, other monochrome printers will not accept color images. For such
printers, Print Agent converts color images to dithered gray-scale images. This is restricted to
images with an 8-bit palette or with 24 bits per pixel. Other color images will not be printed
properly on such printers.
The ^graph command is computationally intensive. If you are printing the same image
repeatedly, you should consider using Output Designer to create a subform and to place the
graphic into the boilerplate for the subform. (This is not the same as merely including the
graphic file in the template file.) In your data stream, use ^subform (see page 221) or
\subform (see page 279) to print the image. When you include an image in this manner, the
image is precompiled by Output Designer and Print Agent runs much faster. If you must use
^graph, be aware that color images are much more computationally intensive than other
images, even when printing to a monochrome printer.

Graphic Placement
The ^graph command does not begin a new field and does not respond to -afx (see page 84)
or to other options and commands that affect the placing of data into fields. If text has already
been placed into the current field, ^graph places the image below the text. You may precede
^graph with ^position (see page 207) to control the position of the image.
In templates created with version 5.2.6 or later of Output Designer, a field can be defined as a
graphic field. You can place an image into a graphic field using the ^field command (see
page 188). An image placed in this manner cannot be accompanied by text and cannot be
repositioned. However, the ^field command does respond in the normal way to -afx.

Label Printers
For label printers, the ^graph command will accept images in 1, 4, 8 and 24 bit format.
However, whether images provided in 4, 8 and 24 bit format will appear on the output depends
on the capabilities of the printer.
Color or gray-scale images are supported only if compiled into the template. For all color
images printed with the ^graph command, the quality of the printed image is dependent on the
capabilities of your printer.
The ^graph command is fully supported for Tec and Intermec label printers. For Datamax and
Zebra label printers, the graphic will print only if already downloaded to the printer or if compiled
into the template.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

198

Maximum Visible Detail Printing Gray-scale Images


Laser printers are designed so that if adjacent pixels are black, they bleed together; this makes
the text look like solid letters rather than the collection of pixels it really is. However, for images
on which the dithering method, -agsmdither (see page 86),was used this has the effect of
making dark grey areas into solid black. This causes the printed image to have a higher
contrast than the image stored in the image file. Although this may be acceptable, it does
actually obscure some detail in the image. If you want maximum visible detail, you can bring it
out by reducing the contrast somewhat using -agscnn (see page 85). The optimum setting
depends on the printer and may vary with time and the condition of the toner cartridge, but a
setting in the range of 40 to 45 seems to be a good compromise.

^group (Execute Specified Group)


Format
^group [groupname][eventname]

To call a group, use the ^group command.


groupname is the name assigned to one or more values placed in the Group dictionary, using
the ^define command (see page 180).

A group is a logical collection of information on a page or subform; it may contain any


combination of text, graphics, or fields. For example, a purchase order detail line containing
boilerplate graphics for the detail line outline and the fields for the item, description, units, price
and so on.
eventname is either one of the supported group or field events, or a unique name. For a
description of the supported group or field events, see Intelligent Pagination on page 306.

A ^group command in the data stream can be specified in these ways:

With a groupname that is defined in the Group dictionary, for example:


^group PODETAIL

-orwith a groupname and eventname that are defined in the Group dictionary, for example:
^group PODETAIL!FldUsed

If the current group is not PODETAIL, Print Agent will:

Execute the !OnExit event for the current group, if one exists.

Execute the !OnEntry event for the group PODETAIL, if one exists.

Change the current group to PODETAIL.

Execute any actions defined for the group and event, if specified.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

199

If the current group is PODETAIL, Print Agent will only execute any actions defined for the
group and event.

With no groupname, but with an eventname that is defined in the Group dictionary, for
example:
^group !Output_Special_Footer

Print Agent will execute any actions defined for the event. The current group remains
unchanged.
If Print Agent cannot find an entry in the Group dictionary for a specified group and/or event, it
will ignore the ^group command.
When Print Agent starts processing a transaction file, it is initially in a default group called
JFDEFGROUP. It remains in this group until the activation of a user-defined group, specified
with a ^group or \group command. JFDEFGROUP is useful where an event is triggered before
the activation of a user-defined group. In this case, Print Agent calls the group event handlers
from JFDEFGROUP to process the event. JFDEFGROUP supports all group event handlers
except !OnEntry.
At the end of the transaction file, Print Agent triggers the !OnExit event for the current group. It
will also trigger a JfEndData event, if one is defined.

^inline (Activate Inline Text Control Processing)


Format
^inline {on|off} [fixed|variable|fixed variable] [varsub|novarsub]
[freset|nofreset]

{on|off}
Format
^inline {on|off}

This command activates processing of Inline Text Control commands. Without this command,
Print Agent processes Inline Text Control commands as data and prints them literally, rather
than executing them. You can enable Inline Text Control processing with ^inline on and set it
off with ^inline off.
By default, Print Agent processes Inline Text Control commands.
For another method of activating Inline Text Control commands, see -aitc (Set Inline Text
Control) on page 88.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

200

Custom Line Spacing


When using a multi-line field with line spacing set to a different height than the default and with
inline text control on, the physical line spacing on the printed output is not the same as with
inline text control off. The problem exists whether you use -aitcon on the command line or
^inline on in the data stream.
The suggested method of resolving this issue to ensure inline text control is off when custom
line spacing is required. An alternative method of resolving the issue is to have the reformat
option set to no, either with -rno or ^reformat no.

[fixed|variable|fixed variable]
Format
^inline {on|off} [fixed|variable|fixed variable]

Leading is the space between printed lines of text. When the font size for a field changes from
the default font, the leading may need to change accordingly.
fixed is the default leading option. Normally, all text processed by Print Agent uses the line
spacing from the field definition, as provided by the template designer. Print Agent processes all
data in a fixed line spacing regardless of the font size used.

Inline Text Control commands enable you to select fonts that are larger or smaller than the base
font defined for the field by the template designer. These fonts may be incompatible with the
fields line spacing and fixed leading results in large gaps between lines of small text, or
overlapping of large text.
variable adjusts all line spacing based on the largest font within a line of text.
fixed variable adjusts the line spacing only if the font used within a line of text is larger than
the default font for the field. Using smaller fonts does not adjust the line spacing.

[novarsub|varsub]
Format
^inline {on|off} [varsub|novarsub]

Normally, Print Agent does a pre-pass on the data and processes variable substitution
commands (see page 281) first, before it processes Inline Text Control commands. novarsub
suspends variable substitution processing, except for the automatic filling of global fields that
appear on a template. varsub restores variable substitution processing.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

201

[freset|nofreset]
Format
^inline {on|off} [freset|nofreset]

When Print Agent encounters a ^field command, it sets all field attributes to those of the new
field. Field attributes include font, indentation, tab settings, and sub/superscripting. The
freset option is the default and causes a ^field command to reset the current attributes.
Including the nofreset option means Print Agent does not reset field attributes when it
encounters a ^field command. The exception to this is the first field encountered by Print
Agent. The font of that field establishes the initial font.

^inlinegraphbegin (Graphic Image Follows)


Format
^inlinegraphbegin [global] [encoding encoding-type] [type
filename-extension] [resolution value] [gamma value]
...encoded-graphic-image...
^inlinegraphend

To print a graphic image contained in the data stream, use the ^inlinegraphbegin and
^inlinegraphend commands. The image is printed starting at the current location on the page.
Parameters for ^inlinegraphbegin can be in any order.
global must be supplied if the current field is a global field. It causes Print Agent to set aside
the graphic for later use when it is ready to fill global fields.
encoding-type can be either hex (for hexadecimal) or b64 (for base-64). The default is
b64. This parameter tells Print Agent how to decode encoded-graphic-image. The image
cannot be placed into the data stream un-encoded.
type is one of the standard file name extensions which would tell Print Agent how to interpret
the graphic data, if it was an external file. type can be tif, gr3, lgo, pcx, bmp, jpg, or
png. The default is tif. For the restrictions that apply to the supported graphic types, see
^graph (Print Logo or Raster Image) on page 194.

The resolution value is governed by the setting, DefaultBitmapResolution, in the Print


Agent configuration file, jfmerge.ini. If this value is set to YES, Print Agent ignores a
resolution value on the ^inlinegraphbegin command and:

For pre-PCL 6 printers, the graphic is treated as if scanned at printer resolution.

For PostScript Level 2 and PCL 6 printers, the graphic is treated as if scanned at 300 dpi.

If the value of DefaultBitmapResolution is set to NO or not present, the resolution from the
graphic is used when processing the graphic, unless overridden by the resolution value
on the ^inlinegraphbegin command.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

202

The gamma value indicates the degree of light intensity to assign to a color graphic. The
practical values are between 0 and 4. A value of 1 does not change the light intensity of the
graphic. A value less than 1 decreases the light intensity; a value greater than 1 increases the
light intensity. Note that the effect of a gamma value assigned with the ^inlinegraphbegin
command can be impacted by other considerations, such as the gamma built into the graphic,
or the gamma of your printer.
encoded-graphic-image is either a series of hexadecimal numbers or a series of characters
in base-64.

In hexadecimal encoding, each byte of image data is represented by two hexadecimal digits.
The hexadecimal digits may be any of the characters 0 through 9, A through F, or a
through f. Print Agent discards all other characters.

In base-64 encoding, groups of three bytes are encoded as sets of four characters. The
standard for base-64 encoding is laid out in RFC1521, section 5.2, which is available online
from the Internet Engineering Task Force at http://www.ietf.org. Print Agent discards all
characters that are not part of the base-64 character set.

Whichever encoding scheme you choose, the encoded image data can occupy one long line or
be broken up freely into multiple lines. The usual input line length restriction governed by the -i
command line option (see page 134) does not apply to encoded image data. Furthermore, a
base-64 encoded image is not required to conform to the line-length limit specified in RFC1521.
However, both the ^inlinegraphbegin statement, including its options, and the
^inlinegraphend statement, must occupy lines by themselves.
The ^inlinegraphbegin command serves the same purpose as the ^graph command (see
page 194), but frees you from the need to maintain a separate file containing the graphic image.
Caution: Print Agent will not process ^inlinegraphbegin and ^inlinegraphbegin commands
when the value of path names in the TMP variable contains ~ (tilde) characters and
the value of the alternate newline character is also set to be a tilde character
character. There are a number of workarounds for this situation:

Redefine your TMP environment variable to avoid long filename paths. For
example, you could define your TMP environment variable as C:\temp.

If your TMP environment variable must include tilde characters, set the alternate
newline character to be something other than the tilde character, such as, for
example, the null character.

Graphic Placement
The ^inlinegraphbegin command does not begin a new field and does not respond to -afx
(see page 84) or to other options and commands that affect the placing of data into fields. If text
has already been placed into the current field, ^inlinegraphbegin places the image below the
text. You may precede ^inlinegraphbegin with ^position (see page 207) to control the
position of the image.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

203

In templates created with version 5.2.6 or later of Output Designer, a field can be defined as a
graphic field. You can place an image into a graphic field using the ^field command (see
page 188), followed by a ^inlinegraphbegin command. An image placed in this manner
cannot be accompanied by text and cannot be repositioned. However, the ^field command
does respond in the normal way to -afx.

^inlinegraphend (Graphic Image Ends)


This command can only be used in conjunction with the ^inlinegraphbegin command. For
details, see ^inlinegraphbegin (Graphic Image Follows) on page 201.

^key (Specify Record Type)


Format
^key keyname value [value ... value]

Use this command with fixed record format to determine the type of record from the data. The
^key command appears with a record structure defined by the ^record command. To define a
key value for a record, use the ^key command with a keyname, and at least one value
identifier. When Print Agent processes a record in the data stream, it compares the value with
the contents of the field named keyname and determines the type of record to use. The ^key
command must be within the record structure, and the value must be different for each record
type.
When ^key commands exist for more than one record structure, and the ^key commands
appear in different byte positions in the record structures, there is the possibility that more than
one ^key specification may apply. Print Agent uses the first record definition that matches on
key value.
For example, to have Print Agent choose between record definitions for a purchase order
header and detail, a data stream could contain these commands:
^record PO_HEADER
^continue REQ_TYPE02
^continue PO_DATE08
^continue REQNO07
^continue VENDOR_CODE04
^key REQ_TYPE 01 03
^record PO_DETAIL
^continue DETAIL_TYPE02
^continue ITEM04
^continue QUANTITY04
^continue DESCRIPTION14
^continue UNITS04
^continue UNIT_PRICE07
^key DETAIL_TYPE02

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

204

For this example, the ^key command tells Print Agent that the keyed field is REQ_TYPE, which
is the first two bytes of the data record. Print Agent checks the value of the first two bytes of the
data record. When the value is 01 or 03, Print Agent processes the record as a purchase order
header record. When the value is 02, Print Agent processes the record as a purchase order
detail.
Print Agent checks the record structures until it makes a match for the key value. When no
record structure matches the key value, Print Agent processes the data record according to the
last record structure used.

^macro (Insert Macro at Current Position)


Format
^macro nn

To insert a printer macro at the current position, insert a ^macro command in the data stream.
nn is the number of the macro to insert.
For example, to print macro number 42 at the current position, insert this command in the data
stream:
^macro 42

You must download the macro to the printer before you execute this command. For details, see
-m (Download Macro to Printer) on page 135. The ^macro command is valid for PCL 5 and
PostScript Level 2 printers.
When the template designer creates the macro as a page in an Output Designer template, the
page must be compiled as a subform. For a multipage template, the first page is downloaded as
the specified macro number, the second page as the macro number plus one, the third page as
the macro number plus two, and so on. Ensure that the ^macro command references the
specific macro number for the subform page.

^newfield (New Field Character)


Format
^newfield x

To change the new field character (see page 322), insert a ^newfield command in the data
stream. The default new field character is a ` (back quotation mark). When Print Agent
encounters this character in the data stream, it ends the current field and advances to the next
field on the template.
For example, to change the new field character to % (percent sign), insert this command in
the data stream:
^newfield %

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

205

For another method of changing the new field character, see -anf (New Field Character) on
page 96.

^page (Move to New Page in Template)

UP

TE
DA

Format
^page {name|num} [options]

To move to a new page in the template (form), use the ^page command. {name|num} is the
page to activate, and can be either a name or a number. When you do not specify
{name|num}, Print Agent ejects the current page and activates the next page in the template.
When there is only one page in the template, Print Agent ejects the current page and
reactivates the current page.
When you use the ^page command after you activate inline text control processing, you must
specify {name|num}, or Print Agent ignores the ^page command.
For example, to activate page dependents of the current template, insert this command in the
data stream:
^page dependents

To end the current template and start a new copy of the currently active template, specify
{name|num} where {name|num} is either number 1 or the name of your first page. Note that
even though your pages may have names instead of numbers, Print Agent still retains the
numerical count of the pages in the template. Therefore, even if the first page is named
dependents, you can still specify page 1 to start a new copy of the currently active template.
Note: The ^page command will not work with multipart templates. The ^eject command
should be used with multipart templates instead of ^page.
The options for the ^page command are:

trayin
Format
^page {name|num} trayin {traynum|*ptrstring|+encoded-prtstring}

To print from a specific input paper tray, use the trayin option. Note that changing paper trays
while printing in duplex ejects the current page; data originally destined to print on the reverse
of this page now prints on a physically new sheet.
For example, to select input paper tray number 4, insert this command in the data stream:
^page 7 trayin 4

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

206

For a complete description of the trayin option, see ^trayin (Input Tray) on page 227.

trayout
Format
^page {name|num} trayout {traynum|*ptrstring|+encoded-prtstring}

To direct the printed output to a specific output paper tray, use the trayout option. Note that
changing paper trays while printing in duplex ejects the current page; data originally destined to
print on the reverse of this page now prints on a physically new sheet.
For example, to select an output paper tray designated by the printer manufacturer as paper
tray number 4 with a printer command string of <ESC> (the ASCII escape character) followed by
&l4G, you can use either of the following trayout options:
^page dependents trayout 4
^page dependents trayout *=\027&l4G

The trayout option is not supported for Windows printer drivers.


For a complete description of the trayout option, see ^trayout (Output Tray) on page 230.

duplex
Format
^page {name|num} duplex {off|on|left|long|top|short|*ptrstring|+encoded-ptrstring}

To handle two-sided printing, use the duplex option.


For example, to change to page 3 of the current template and change the printing to duplex
along the long edge, insert this command in the data stream:
^page 3 duplex long

For a complete description of the duplexing arguments, see -adu (Duplex Printing) on
page 76.

^passthru (Send Data Directly to Output)


Format
^passthru filename

- or ^passthru
data
...
^command

To send data directly to the output destination, use the ^passthru command. When you specify

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

207

filename after the command, Print Agent passes all information in filename as binary data
to the output.

When you do not specify filename, Print Agent sends all data in the transaction file to the
printer until it encounters the next command. Without filename, Print Agent strips all carriage
returns from the data in the transaction file.

^popsymbolset (Restore Saved Symbol Set)


Format
^popsymbolset [all]

To restore the most recently saved symbol set, include a ^popsymbolset command in the data
stream. You save the symbol set with the ^pushsymbolset command (see page 218).
Including the all option restores the symbol set in effect prior to any ^pushsymbolset
commands.

^position (Change Placement of Data)


Format
^position options

To change the placement of the next subform, next macro, logo or passthru data, or to return to
a saved position on the page after one of the above, use the ^position command.
Caution: You can use the ^position command to move to a position that exists outside the
printable area of a page. For example, ^position absolute 0.00 3.50 in.
This may be useful when positioning other objects, so that you have a fixed
reference point for a subsequent command. However, it you place an object outside
the printable area of a page, that object may not print properly. Moreover, Print
Agent will not display a warning if you attempt to print an object that exists outside
the printable area of a page.
Use caution when using the ^position command. Print Agent does not display any warnings if
you attempt to print an object off the printable area of the page.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

208

All ^position commands refer to directions relative to the current template:

Portrait orientation

up
left
right
down

Landscape orientation

up
left
down

right

At times it may be difficult to determine your current position on the page for placing the next
object. In those instances, lay down a dummy field with the ^field command and position from
that field.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

209

The ^position command supports a number of options. Where the options use graphical
examples to demonstrate the result, these purchase order subform pages are used:
Page 1
Any Company Inc.
PURCHASE ORDER

Date

Requisition Number

Vendor

This template page contains the header


information for the purchase order.

Vendor Code

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country

Item

Qty

Description

Units

Unit Price

Total Price

Page 2
This subform page contains the detail line
headings.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

210

Page 3
This subform page contains detail lines and a
field for setting the pen position.

[]

Subtotal
Tax - 7.25%
Total

Page 4
This subform page contains the totals
information.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

211

Page 5
[]

This template page is for laying down the


subforms for continuation pages.

The ^position command has these options:

[absolute]
Format
^position [absolute] x y [units]

To place an object at a specific location on the page, use the absolute option. x is the number
of units from the left edge of the physical page. y is the number of units down from the top of
the physical page.
units can be one of:

Dots

cm (centimeters)

in (inches)

The default unit is dots. The size of a dot varies and depends on your printer configuration file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

212

For example, to position a subform on a template page at the location 1 inch from the left edge
of the page and 5.5 inches from the top of the page, insert these commands in the data stream:
^position absolute 1 5.5 in
^subform 2

The result is:


(0,0)

Any Company Inc.


PURCHASE ORDER

Date

Requisition Number

Vendor

Print Agent positions the first subform page


on the purchase order page at the
coordinates specified.

Vendor Code

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country
(1,5.5)
Item

Qty

Description

Units

Unit Price

Total Price

When only numeric information or numeric information with units follows the ^position
command, Print Agent defaults to absolute positioning. Another way of expressing the example
is:
^position 1 5.5 in
^subform 2

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

213

up|down
Format
^position up|down y [units]

To position an object at a location up or down from the last object placed on the page, use the
up or down option. y is the number of units up or down to move.
units can be one of:

Dots

cm (centimeters)

Lines

in (inches)

The default unit is dots. The size of a dot varies, based on your printer configuration file. A line
is the line spacing defined for the current font in the current field.
For example, to position a subform to a location 150 dots down from the current position, insert
these commands in the data stream:
^position down 150
^subform 3

The result is:

Any Company Inc.


PURCHASE ORDER

Date

Requisition Number

Vendor

Vendor Code

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country
(0)
Item

(150)

Qty

Description

Units

Unit Price

Total Price

Print Agent positions the second subform on


the page down 150 dots from the top left
hand corner of the first subform.
With the detail line subform positioned, Print
Agent can now fill the fields with the items in
the transaction file. When there are more
items than will fit on the first page of the
purchase order, you can position as many
copies of subform pages 2 and 3 as are
needed on blank continuation pages.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

214

relative
Format
^position relative x y [units]

To place an object a specific distance from the current position, use the relative option. x is
the number of units right from the current position. y is the number of units down from the
current position.
Both x and y can be negative numbers. When x is negative, motion is to the left. When y
is negative, motion is up the page.
units can be one of:

Dots

cm (centimeters)

in (inches)

The default unit is dots. The size of a dot varies and depends on your printer configuration file.
For example, to position a subform to a location 3.125 inches left from the current point and .5
inches down from the current point, insert these commands in the data stream:
^position relative -3.125 .5 in
^subform 4

The result is:

Item

Qty

Description

Units

Unit Price

To ensure the proper positioning of the


subform page containing the totals
information, a dummy field appears on the
template. The totals subform is then placed
relative to this field, 3.125 inches left and .5
inches down.

Total Price

(0,0)
[]
(-3.123,.5)

Subtotal
Tax - 7.25%
Total

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

215

left|right
Format
^position left|right x [units]

To place an object at a location left or right on the page, use the left or right option. x is the
number of units left or right to move.
units can be one of:

Dots

cm (centimeters)

in (inches)

The default unit is dots. The size of a dot varies based on your printer configuration file.
For example, to move to a point 3.5 inches right of the current position, insert this command in
the data stream:
^position right 3.5 in

restore
Format
^position restore save_id

To return to a specific location on the page, use the restore option. You must use the save
option before issuing the restore option. save_id is the name of the previously saved
location; it cannot contain spaces, and is case-insensitive.
For example, to return to a saved location named JUMP_SPOT, insert this command in the
data stream:
^position restore jump_spot

save
Format
^position save save_id

To save the current location on the page, use the save option. save_id is the name of the
location to save; it cannot contain spaces, and is case-insensitive.
For example, to save the current location as JUMP_SPOT, insert this command in the data
stream:
^position save jump_spot

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

216

^prefix (Prefix Character)


Format
^prefix options

To change a prefix character, insert a ^prefix command in the data stream.


Use caution when changing prefix characters. Do not set any two to the same value. If you do,
Print Agent cannot distinguish between the different types of commands.
Use one of these options with the ^prefix command:

x
Format
^prefix x

To change the prefix character that specifies Dynamic Merge commands, use the x option. x is
the designation for the new character. The default prefix character (see page 322) is ^ (caret).
For example, to change the prefix character to # (number sign), insert this command in the
data stream:
^prefix #

To change this prefix character on the command line, see -apcc (Dynamic Merge Command
Prefix Character) on page 98.
Note: When the Print Agent is processing a form that includes an internal preamble, it does
not recognize an attempt made in the data file to change the default Dynamic Merge
Command prefix character (from ^ (caret) to some other character).
To resolve this issue, append a ^prefix command to the preamble. For example,
^prefix #, to change the prefix character to the number sign. Appending the ^prefix
command to the preamble allows the change in prefix character to take place before the
data file is read, but after the preamble has been processed.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

217

dictvar x
Format
^prefix dictvar x

To change the prefix character that acts as a dictionary name separator, use the dictvar x
option. x is the designation for the new character. The default prefix character (see page 322)
is : (colon).
For example, to change the prefix character to # (number sign), insert this command in the
data stream:
^prefix dictvar #

To change this prefix character on the command line, see -apcd (Dictionary Name Separator
Prefix Character) on page 99.

inline x
Format
^prefix inline x

To change the prefix character that specifies Inline Text Control commands, use the inline x
option. x is the designation for the new character. The default prefix character (see page 323)
is \ (backslash).
For example, to change the prefix character to # (number sign), insert this command in the
data stream:
^prefix inline #

To change this prefix character on the command line, see -apci (Inline Text Control Command
Prefix Character) on page 100.

Considerations When Changing the Inline Text Control Command


Prefix Character
Output Designer uses the default inline text control prefix character (the backslash \ character)
in its internal auto-generated preamble. You should not attempt to change this character on the
command line using the -apci command line option or in the data file using the ^prefix inline
command if an internal auto-generated preamble is used. This is because the backslash
character is used in inline processing during Print Agent execution. The commands in the
internal auto-generated preamble must be executed using the same reserved character that is
defined in the Group Dictionary.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

218

The -apci command line option or the ^prefix inline command can only be used to change the
default inline text control prefix character to another character in the following cases:

When a static form is being used.

When an external preamble is being used with a dynamic form file.

When an internal preamble that was not auto-generated by Output Designer is being used.

If you must pass the reserved inline text control prefix character in the data file with a dynamic
form that contains an internal auto-generated preamble, the only other way to make this work
would be to change the reserved character in the data file to some other character and then
change it back again once the inline commands have been executed. This can be done by
using Transformation Agent to change the reserved character and then using the JetKeys.ini
file to remap the character back to the reserved character before the data is written to the
output file.

varsub x
Format
^prefix varsub x

To change the prefix character that specifies a substitution variable created with a ^global or
^define command, use the varsub x option. x is the designation for the new character. The
default prefix character (see page 323) is an @ (at sign).
For example, to change the prefix character to # (number sign), insert this command in the
data stream:
^prefix varsub #

To change this prefix character on the command line, see -apcv (Variable Substitution Prefix
Character) on page 101.
Caution: If you are using dynamic templates created in version 5.2 or later of Output
Designer, we do not recommend that you change the variable substitution prefix
character. The preamble generated automatically by these products contains
references to many variables that are specified using the @ (at).

^pushsymbolset (Save Current Symbol Set)


Format
^pushsymbolset

To save the current symbol set, include a ^pushsymbolset command in the data stream. This
is an easy way of saving the current symbol set prior to a symbol set change, so that you can
reinstate the original symbol set with a ^popsymbolset command (see page 207).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

219

^record (Define Record Structure)


Format
^record recname [fieldname length [position]]... [fieldname length
[position]]

To define a fixed format record for fixed record processing, use the ^record command.
recname is the name of the record. fieldname is the field name defined in the template.
length is the length of the field in bytes.
position is the position of the data for the field in the record. Print Agent counts the first
character in the record as position 1, the second character as position 2, and so on. When you
do not specify position, Print Agent uses the length to determine the position in the
record.

For example, you could define this record layout for a purchase order detail line:
^record PO_DETAIL ITEM 04 01 QTY 04 05 DESC 14 09

You could also define the record layout as:


^record PO_DETAIL ITEM 04 QTY 04 DESC 14

In either case, the data looks like this:


0001
2Pens, Black
0002 100File Folders
0003 12Pencils

For the first line of data, 0001 is the data for the ITEM field, 2 is the data for the QTY field, and
PENS, BLACK is the data for the DESC field of the first record. 0002 and 0003 are the data for
the ITEM fields in subsequent records, 100 and 12 are the data for the QTY fields, and FILE
FOLDERS and PENCILS are the data for the DESC fields.
To specify a field is a global field, place an * (asterisk) at the beginning of the field name.
For example, to treat the field ITEM in the following record structure as a global field, insert
these commands in the data stream:
^record PO_DETAIL
^continue *ITEM04 01
^continue UNIT_PRICE07 05
^continue TOTAL_PRICE11 12

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

220

^reformat (Reformat Data)


Format
^reformat {yes|no|fold|off|clip|trunc}

To set the processing of newline characters in multiline fields, insert a ^reformat xxxx
command in the data stream. xxxx can be one of:

yes

no

fold

off

clip

trunc

For a complete description of the reformat options, see -r (Reformat Data) on page 139.
When you do not specify a value, ^reformat defaults to off.
The ^reformat command in the data stream overrides the -r option on the command line.

^shell (Invoke an Operating System Command)


Format
^shell commandline

To have Print Agent invoke an operating system command while processing a transaction file,
include a ^shell command in the data stream.
For example, to extract a logo file from a zipped file on a Windows 2000 system, include these
commands in the data stream:
^shell c:\pk\pkunzip c:\logos\logos.zip mylogo.tif c:\logos
^graph mylogo.tif
^shell c:\winnt\system32\cmd.exe /c del c:\logos\mylogo.tif

When Print Agent encounters ^shell, it spawns the given command and waits until it finishes
running. If the command exits with an error status (or if the spawn fails), Print Agent prints an
error message but continues processing. If the spawned command hangs, Print Agent hangs.
The use of the ^shell command is governed by a setting called SecurityLevel in the [JetForm]
section of the Print Agent configuration file, jfmerge.ini. The value of SecurityLevel is an
integer. One (1), the default, deactivates ^shell. If ^shell is deactivated and Print Agent
encounters a ^shell command, it produces a security warning message, discards the ^shell
command, and continues processing.
For a list of the other facilities governed by the SecurityLevel setting, see Security
Considerations on page 62.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

221

^subform (Activate Subform)


Format
^subform {nn|subformname} [MDFname]

To place a subform page at the current position on the template page, insert a ^subform
command in the data stream.
For dynamic templates created with version 5.2 or later of Output Designer, use subformname
to identify the subform page name in the template.
For dynamic templates created with Output Designer 5.1 or earlier, use nn to identify the
subform page number in the template. In this case, the page must be compiled as a subform.
MDFname is the file name or URL for a template. When you specify a file name you may include
the full path specification. If you do not include the path and Print Agent was started with the
-afpformpath option (see page 82), it uses the formpath to assemble the complete file name or
URL. Print Agent also appends an .mdf extension to the name if no extension is given.

If the resulting full name starts with http:, Print Agent downloads the file from an HTTP server
using the full name as the URL. Otherwise, it opens the file within the file system.
MDFname is optional. When you do not specify MDFname, Print Agent takes the subform from
the current template.

For example:
^subform 2 newform.mdf
^subform 2
^subform dependents

When Print Agent places a subform, it does not execute a formfeed. It places the selected
subform relative to the current position. To change the current position, use the ^position or
^field command, explained earlier in this chapter.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

222

^symbolset (Select Symbol Set)


Format
^symbolset symset

- or ^symbolset unicode

^symbolset symset
To select a symbol set, include a ^symbolset command in the data stream. symset may be
one of:

A Print Agent symbol set number (listed below).

A Print Agent symbol set name (listed below).

A Windows ANSI or DOS OEM code page number supported by Print Agent (listed below).
Prefix the code page with ACP_ for ANSI code pages or OEMCP_ for OEM (DOS) code
pages.

A user-specified symbol set number. A numerical value in the range 200 through 254
inclusive is interpreted as a user-defined symbol set. Translations for this symbol set to any
other symbol set can be achieved with the jetkeys.ini file.

Print Agent attempts to translate the input data symbol set to the symbol set expected by the
printer. Translations can be redefined using the jetkeys.ini file (see page 304).
The defined symbol sets are listed below. Note that Thai, Hebrew, and Arabic code pages /
languages are listed for documentation completeness; however, the use of Thai, Hebrew, and
Arabic with Output Designer and Central is neither certified nor supported by Adobe.

Symbol Set

Set #

Set Name

Code Page
Number

Code Page
Type

Roman-8

ROMAN-8

not applicable

not applicable

PC-850 (this is the default)

PC-850

850

OEM

Windows ANSI (Latin 1)

WINLATIN1

1252

ANSI

DEC Supplemental

DEC

not applicable

not applicable

Shift-Jis

10

SHIFT-JIS

932

ANSI

KSC5601-87

20

HANGEUL

949

ANSI

Big-Five

30

BIGFIVE

950 - not completely


compatible

ANSI

GB2312-80

35

GB2312

936

ANSI

GBK

36

GBK

936 - not completely


compatible

ANSI

ANSI CP 950 (Taiwan)

37

MS-BIGFIVE

950

ANSI

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

223

Symbol Set

Set #

Set Name

Code Page
Number

Code Page
Type

EBCDIC

40

EBCDIC

not applicable

not applicable

EBCDIC

42

EBCDIC

not applicable

not applicable

Thai

50

Thai

874

ANSI

Windows Latin 2

60

WINLATIN2

1250

ANSI

Russian

61

Russian

1251

ANSI

Greek

63

Greek

1253

ANSI

Turkish

64

Turkish

1254

ANSI

Hebrew

65

Hebrew

1255

ANSI

Arabic

66

Arabic

1256

ANSI

Baltic

67

Baltic

1257

ANSI

Russian (DOS)

86

RUSSIAN_OEM

866

OEM

Some Microsoft Windows code pages correspond to more than one Asian symbol set, with
varying degrees of compatibility. For example, Traditional Chinese Microsoft Windows uses
code page 950, which is directly compatible with the Print Agent symbol set ACP_950; it is also
partially compatible with Big-Five. This partial compatibility is because the Microsoft code page
950 contains extensions to the character set that do not exist in Big-Five. A similar compatibility
issue applies to the GB2312-80, GBK and code page 936.
Symbol set numbers 10, 20, 30, 35, 36 and 37 require support for double byte character sets
(DBCS) in the output device or viewer.
The following shows examples of using the ^symbolset command:

To select the ANSI SHIFT-JIS code page, include this command in the data stream:
^symbolset ACP_932

To select the Windows ANSI symbol set, use any one of:
^symbolset WINLATIN1
^symbolset 5
^symbolset ACP_1252

To select the IBM PC-850 DOS symbol set, use any one of:
^symbolset 2
^symbolset PC-850
^symbolset OEMCP_850

The ^symbolset command is case-insensitive. In other words, these commands are


equivalent:
^symbolset roman-8
^symbolset ROMAN-8

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

224

^symbolset unicode
To select a Unicode transformation format, include a ^symbolset command in the data stream.
Unicode transformation formats are Unicode 2 based. unicode is the supported Unicode
format:
Unicode Format

Set #

Set Name

UNICODE_UTF8

108

UTF8

For example, to specify the UNICODE_UTF8 format, include one of these commands in the
data stream:
^symbolset 108
^symbolset UTF8

Print Agent attempts to translate the input data format to the format expected by the printer.
Translations can be redefined or added using the jetkeys.ini file (see page 304). Print Agent
includes translation tables for translations between Unicode and:
Symbol Set

Set #

Roman-8

PC-850

Windows ANSI (Latin 1)

DEC Supplemental

Shift-Jis

10

KSC5601-87

20

Big-Five

30

GB2312-80

35

ANSI CP 950

37

Windows Latin 2

60

Russian

61

Greek

63

Turkish

64

Baltic

67

Caution: When Print Agent is started with the -autf8on option (see page 126), mixing symbol
sets is not a problem. However, when started with the -autf8off option, be careful
when mixing symbol sets. In this case, Print Agent does not keep track of the
symbol set that was in use when a global field was filled. It applies the current
symbol set at the moment it prints the field. Similarly, when substituting a variable, it
applies the current symbol set to the content of the variable.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

225

^tab (Set or Clear Horizontal Tab Stops)


Format
^tab options

To set or clear horizontal tab stops, use the ^tab command. Tabs are processed only when field
justification is left, that is left top, left middle or left bottom. For other field justifications, spaces
replace tabs.
A ^tab command must precede any text for a field:
^field memo
^tab -.5
text
text
text

Use one of these options with the ^tab command:

[default]
Format
^tab [default] n[n] [units]

To specify the position of horizontal tab stops, use the [default] option. n identifies the
positions of the tabs stops in the specified units.
units can be one of:

Dots

cm (centimeter)

in (inch)

The default unit is dots. The size of a dot varies based on your printer configuration file. The
measurements are always relative to the current field position.
Tab stops can be set either in the current field, or if the command includes the default
keyword, the settings become the default tab settings for the current Print Agent session. In this
way, you can provide default settings with the ability to easily override them within the context of
a field. Settings placed within the current field automatically clear when Print Agent exits the
field.
For example, to set tab stops at 1, 3 and 5 inches, place this command in the data stream:
^tab default 1 3 5 in

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

226

To set repeating tabs, specify a single tab stop as a negative value.


For example:
^tab -0.25 in

sets tab stops at a repeating interval every quarter inch. Note that you cannot mix positive and
negative tab values.

[default] clear
Format
^tab [default] clear

To clear tab stops, use the [default] clear option. When the command specifies the default
keyword, Print Agent removes all tab settings for the current session and reinstates the default
tab stops, which are tabs every 0.5 inches.
^tab default clear

When the command does not specify the default keyword, only tab settings defined in the
current field are removed, and any default tab settings for the field are reinstated.
^tab clear

^terminator (Alternate Newline Character)


Format
^terminator x

To change the alternate newline character (see page 324), that is, the character used to end a
line in a multiline field or to end a single line field, insert a ^terminator command in the data
stream. The default alternate newline character is a ~ (tilde) character.
For example, to change the alternate newline character to # (number sign) character, use this
command:
^terminator #

For another method of changing the alternate newline character, see -anl (Alternate Newline
Character) on page 97.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

227

^trace (Trace Facility)


Format
^trace text

To pass text to the log file, insert a ^trace command in the data stream. Print Agent sends the
output directly to the log file; it does not print. text can be any word or phrase.
You use the ^trace command for debugging.
For example:
^trace This text appears in the log file.

Note: To direct the output from the ^trace command to a file other than the log file, start Print
Agent with the -atf command line option (see page 119).
A ^trace command will write trace messages to the log file or to a specified file only if
you start Print Agent with the -v0 command line option (see page 152).

^trayin (Input Tray)


Format
^trayin {traynum|*ptrstring|+encoded-ptrstring}

To print from a specific input paper tray, insert a ^trayin command in the data stream. Note that
changing paper trays while printing in duplex ejects the current page; data originally destined to
print on the reverse of this page now prints on a physically new sheet.
For surface specific processing, see \checksurface (Duplex Mode and Surface) on page 257
and $duplexsurface (Duplex Mode and Surface) on page 284.
traynum is the input tray number. By default, if the template is compiled with version 5.3 or
later of Output Designer, traynum is a Print Agent universal input tray number. This is a
printer-independent identifier. Print Agent translates the Print Agent input tray number into the
number assigned to the printer tray by the printer manufacturer. For example, for HP LaserJet
printers, the multi-purpose tray is physically labelled 1, but to select this tray it is necessary to
command the printer to select tray 8 in PCL 5 or tray 3 in PostScript. To select the tray
labelled Tray 1, regardless of whether the template is compiled for PCL 5 or PostScript,
include the following command in your data stream:
^trayin 1

Refer to the documentation provided with your printer for the manufacturers paper tray
numbering.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

228

Print Agent understands the following Print Agent tray numbers:


Print Agent Tray Number Manufacturer Printer Tray
0

The current tray

HP tray 1 (multi-purpose tray)

HP tray 2

HP tray 3

HP tray 4 (large capacity tray)

HP tray 5 (large capacity tray)

Envelope tray

Auto select

Manual feed

20 through 59

Large capacity trays 1 through 40. For example, Print Agent tray
23 is large capacity tray 4.

100

Middle tray

101

Tractor feed

102

Small format tray

103

Large format tray

201 through 220


(PostScript printers only)

PostScript tray 1 through 20. For example, Print Agent tray 217 is
PostScript tray 17.

301 through 320

External trays 1 through 20. For example, Print Agent tray 311 is
external tray 11.

401

Upper tray

402

Lower tray

403

Envelope manual feed

404

Multi-purpose tray

405

Label stock

traynum may specify a tray that is not available on the printer. When this happens, Print Agent
selects the next-best tray. The template (compiled with version 5.3 or later of Output Designer)
contains a prioritized list of alternate input trays. For Print Agent presentment targets, the
template also tells Print Agent what input trays are available. For Windows printer drivers, Print
Agent queries the Windows driver to obtain the list of available input trays.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

229

For example, given the command:


^trayin 102

Print Agent checks whether the printer has a small-format input tray available. Finding it is not
available, it looks up the list of alternate input trays in the template. Suppose the list contains, in
order, 401, 402, 20, and 0. This causes Print Agent to try, in turn, the upper tray (401), the lower
tray (402), and the large capacity tray (20). If none of these are available, it falls back to the
current tray (0), that is, it does not issue an input tray selection command to the printer.
The template designer can change the list of alternate trays. The template designer can also
compile the template with a setting that causes Print Agent to treat input tray numbers as printer
tray numbers, that is, pass them through unaltered to the printer. You can override both the
default behavior and the template designers setting using the -atj command line option (see
page 124).
When printing from an older (pre-5.3) template, Print Agent always interprets traynum as a
printer tray number. To change this behavior, you must recompile the template with version 5.3
or later of Output Designer.
Note:

When the template is compiled for a PCL presentment target and the requested tray
contains paper of the size compiled into the template, that input tray will be selected.
However, if the requested tray does not contain paper of the correct size, the printer
will attempt to print from a tray containing paper that matches.

When the template is compiled for a PostScript presentment target, the printer will
attempt to print from the tray referenced in the ^trayin command.

Regardless of the presentment target, when the manual feed tray contains paper, the
printer will attempt to print from the manual feed tray.

ptrstring is the printer command string for the input paper tray, as set by the printer
manufacturer. It must be preceded by an * (asterisk). It is not interpreted by Print Agent, but
sent directly to the printer. It may not contain newline characters or other characters that are
special to Print Agent. For example, to select a paper tray designated by the printer
manufacturer with a printer command string of 6 setpapertray, use this command:
^trayin *6 setpapertray

Windows printer drivers do not support the use of *ptrstring with ^trayin.
encoded-ptrstring is the printer command string, but potentially with some or all characters
encoded, as described in the Appendix Numeric Character Values on page 319. It must be
preceded by a + (plus). For example, to select a paper tray designated by the printer
manufacturer with a printer command string of <Esc> (the escape character) followed by
&l4H, use this command:
^trayin +\027&l4H

Windows printer drivers do not support the use of +encoded-ptrstring with ^trayin.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

230

^trayout (Output Tray)


Format
^trayout {traynum|*ptrstring|+encoded-ptrstring}

To direct the printed output to a specific output paper tray, insert a ^trayout command in the
data stream. Note that changing paper trays while printing in duplex ejects the current page;
data originally destined to print on the reverse of this page now prints on a physically new
sheet.
For surface specific processing, see \checksurface (Duplex Mode and Surface) on page 257
and $duplexsurface (Duplex Mode and Surface) on page 284.
traynum is the number of the output tray, as set by the printer manufacturer. For example, to
select an output paper tray designated by the manufacturer as tray 4, use the following
command:
^trayout 4

Refer to the documentation provided with your printer for the manufacturers paper tray
numbering.
ptrstring is the printer command string for the output paper tray, as set by the printer
manufacturer. It must be preceded by an * (asterisk). It is not interpreted by Print Agent, but
sent directly to the printer. It may not contain newline characters or other characters that are
special to Print Agent. For example, to select a paper tray designated by the printer
manufacturer with a printer command string of 4 setpagedevice, use this command:
^trayout *4 setpagedevice
encoded-ptrstring is the printer command string, but potentially with some or all characters
encoded, as described in the Appendix Numeric Character Values on page 319. It must be
preceded by a + (plus). For example, to select a paper tray designated by the printer
manufacturer with a printer command string of <Esc> (the escape character) followed by
&l4G, use this command:
^trayout +\027&l4G

The ^trayout command is not supported for Windows printer drivers.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

231

^undefine (Clear Defined Variables)


Format
^undefine [[dictionary-name]:][variable-name]

The ^undefine command clears a defined variable. When a dictionary name appears without a
variable name, the ^undefine command clears the entire dictionary. When a variable name
appears without a dictionary name, the ^undefine command clears the variable from the User
dictionary. When the ^undefine command is supplied without parameters, all variables are
cleared from the User dictionary.
For example:
^undefine manager

clears the variable name manager from the User dictionary,


^undefine global:color

clears the variable name color from the Global dictionary,


^undefine group:

clears all entries from the Group dictionary, and


^undefine :

- or ^undefine

clears all entries from the User dictionary.


For defining variables, see ^define (Assign Value to Dictionary Variable) on page 180.

^$page (Page Number)


Format
^$page nn

To change the current page number for $PAGE fields, use the ^$page command in the data
stream. nn is the page number to change to.
$PAGE is an Output Designer special field name that Print Agent fills automatically during
processing.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

232

INLINE TEXT CONTROL COMMANDS


Inline Text Control commands are an advanced feature of Print Agent that you can use when
your data is in field-nominated or XML format. They enable you to control field formatting from
within a data stream.
Inline Text Control commands are present directly inside (inline) the data for a field. They
override the formatting set by the template designer, with one exception:

When a numeric field has a picture clause assigned in Output Designer, using Inline Text
Control commands in the data stream will not alter the appearance of the field in the output.

You must activate the processing of Inline Text Control commands for Print Agent to process
the commands. You can activate Inline Text Control processing in two ways:

Within the data stream or a preamble file by using the ^inline {on|off} command

At the command line by using the -aitc{on|off} option

Syntax
A \ (backslash) character prefixes Inline Text Control commands. This prefix is the command
character that enables Print Agent to distinguish a command from data.
You can set the prefix character to any other single character. Regardless of the character set
as the prefix, there are occasions for using this character as data instead of at the beginning of
an Inline Text Control command. Print Agent interprets two prefix characters together as a
single character of data, and not as the start of an Inline Text Control command.
For example, to print the current Inline Text Control prefix character as part of the data, use:
The current Inline Text Control prefix character is \\.

which results in:


The current Inline Text Control prefix character is \.

To change the prefix character, see inline x on page 217 and -apci (Inline Text Control
Command Prefix Character) on page 100.
Inline Text Control commands appear directly inside (inline) the data for a field. To enable Print
Agent to distinguish between data and commands, you must delimit the command with one of
the following:

Newline (carriage return/line feed)

Space

Period

Another Inline Text Control command

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

233

The use of a . (period) is the recommended method of delimiting Inline Text Control
commands. A space or newline will delimit the Inline Text Control command but the space or
newline character will also be retained.
This example shows text improperly delimited:
You \bmust\b0 \ulwdelimit
\b\ul.Inline\b0\ul0 Text
\b.Control commands\b0.

and results in:


You
Inline Text
Control commands

The example illustrates the following errors:

Print Agent reads the command in front of the word must as \bmust, and not as a
command to bold the word must. Because there is no delimiter after the \b and no
command \bmust, Print Agent ignores the command.

Print Agent reads the command to underline the word delimit as \ulwdelimit and because
there is no delimiter after \ulw, ignores the command.

Print Agent uses the space between the command \ul0 and the word Text to delimit the
\ul0 command. Be aware that if you use a space to delimit a command, Print Agent prints
the space. One space will both delimit and print.

Print Agent uses the period after the \b0 command following the word commands to
delimit the command. When you use a period to delimit a command and also want to leave a
period at the end of the word, you require two periods.

The correct way to code the example is:


You \b.must\b0. \ulw.delimit
\b\ul.Inline\b0\ul0 Text
\b.Control commands\b0..

which results in:


You must delimit
Inline Text
Control commands.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

234

The following syntax rules apply when using Inline Text Control commands:

Commands do not contain spaces.


For example, the command:
\field[fieldname]

is specified as:
\fieldITEM

Square brackets in the command format indicate the text is optional. When the user provides
no optional text, Print Agent uses the default option for that command.
For example, the command:
\dn[points]

is specified as:
\dn3

- or \dn

Protect information included within the command containing spaces or non-alphanumeric


characters with quotation marks.
For example, the command:
\fnfont-name

is specified as:
\fn"Times New Roman"

Separate multiple options with a comma. There is no comma between the command and the
first option.
For example, the command:
\positionoptions

is specified as:
\positionabsolute,"8.5",15,cm

A comma shown within the square bracket in the command format indicates a comma must
separate the arguments.
For example, the command:
\page{name|num}[,options]

is specified as:
\page3,duplex,long

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

235

\b (Set Bold Font)


Format
\b[0]

To set bold on for the currently selected font, use the \b command. All text appears in bold until
you issue the command \b0. to set bold off.
For templates compiled with Output Designer versions earlier than 5.3, this command works
only if the template contains an instance of the currently selected font with the bold attribute.
For templates compiled with Output Designer version 5.3 or later, this restriction no longer
applies.
For example:
This \b.word\b0. appears in a bold type.

results in:
This word appears in a bold type.

\c (Select Color by Index Number)


Format
\cn

To select a color by index number, use the \c command. n is the index number of a color in the
Output Designer palette. Use the Report with Fields command in version 5.1 or later of Output
Designer for a list of the color index numbers for a template.
In the example,
You owe us \c2.$2,000.00 \c1.by the end of the month.

You owe us appears in the field color set in Output Designer, $2,000.00 appears in red, and
by the end of the month. appears in black.
You can also show the example as:
You owe us \c2.$2,000.00 \cndefault.by the end of the month.

The selected color remains in effect until you change it with either a \c or \cn command, or until
Print Agent activates another field and the field attribute default remains unchanged. Print
Agent resets all field attributes to those of the new field when it encounters a ^field command.
Including either the -afroff option (see page 84) on the command line or the ^inline option
nofreset (see page 201) in the data stream causes Print Agent to ignore the resetting of field
attributes when it encounters a ^field command.
The command \cndefault causes the color to default to the field color set in Output Designer.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

236

Printing Color Commands on PCL Black and White Printers


Inline Text Control color commands will only print on PCL black and white printers which have
the PCL Color Extension. To determine whether your black and white printer has the PCL Color
Extension, check the .ics file for your printer for the presence of the statement:
128 = PCL Color Extension support

This file is located in the \Config folder in the directory where Output Designer is installed.

\cn (Select Color by Name)


Format
\cnname

- or \cndefault

To select a color by name, use the \cn command. name is the name of a color in the Output
Designer palette. Use the Report with Fields command in version 5.1 or later of Output
Designer for a list of the palette colors for a template. The option default restores the color of
the data back to the field color set in Output Designer.
In the example,
You owe us \cnred.$2,000.00 \cndefault.by the end of the month.

You owe us appears in the field color set in Output Designer, $2,000.00 appears in red, and
by the end of the month. appears in the field color set in Output Designer.
The selected color remains in effect until you change it with either a \c or \cn command, or until
Print Agent activates another field and the field attribute default remains unchanged. Print
Agent resets all field attributes to those of the new field when it encounters a ^field command.
Including either the -afroff option (see page 84) on the command line or the ^inline option
nofreset (see page 201) in the data stream causes Print Agent to ignore the resetting of field
attributes when it encounters a ^field command.

Printing Color Commands on PCL Black and White Printers


Inline Text Control color commands will only print on PCL black and white printers which have
the PCL Color Extension. To determine whether your black and white printer has the PCL Color
Extension, check the .ics file for your printer for the presence of the statement:
128 = PCL Color Extension support

This file is located in the \Config folder in the directory where Output Designer is installed.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

237

\dn (Lower Text from Baseline)


Format
\dn[points]

To lower or subscript text relative to the baseline, use the \dn command. The baseline is an
imaginary horizontal line directly beneath the line of text. points is the number of points to
lower the text, relative to the baseline. The default is 3 points. This command does not affect
the size of the current font, only its position on the line. All text appears lowered until you issue
the command \dn0. to return to the baseline.
For example:
This \dn.word\dn0. shifts down by 3 points and \dn6.these words\dn0.
shift down by 6 points.

results in:
This word shifts down by 3 points and
shift down by 6 points.
these words

\f (Select Font by Index Number)


Format
\findex-number

To select a font by index number from the internal font list contained within the template, use the
\f command. Use the Report with Fields command in version 5.1 or later of Output Designer
for a list of the font index numbers for a template.
Print Agent selects a font in its default point size, as determined by the template designer at
template creation time. Font 0 (zero) equates to the NOPRINT font. Specifying font 0 does not
print the subsequent data; instead, Print Agent leaves a blank space equal to the length of the
data. The NOPRINT font is a twelve point/ten pitch font.
For example:
\f1.These words are in font 1 and \f0.these words are in font 0 and\f1.
these words are in font 1 again.

results in:
These words are in font 1 and
are in font 1 again.

these words

When you change fonts within text, the attributes for the font are set off. Attributes include
subscript, superscript, bold, italics and underline.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

238

\fn (Select Font by Name)


Format
\fnfont-name

To select a font by name from the internal font list contained within the template, use the \fn
command. font-name must match, except for case, a font name compiled into the template.
Enclose the font name in quotation marks in cases where the font name contains spaces or
non-alphanumeric characters.
For example:
\fn"Times New Roman".This sentence is in the Times New Roman typeface.

results in:
This sentence is in the Times New Roman typeface.

The selected font remains in effect until you change it with either a \f or a \fn command, or until
Print Agent activates another field and the field attribute default remains unchanged. Print
Agent resets all field attributes to those of the new field when it encounters a ^field command.
Including either the -afroff option (see page 84) on the command line or the ^inline option
nofreset (see page 201) in the data stream causes Print Agent to ignore the resetting of field
attributes when it encounters a ^field command.
When you change fonts within text, the style attributes for the font are disabled. Style attributes
include subscript, superscript, bold, italics and underline.

\freset (Reset Field Attributes)


Format
\freset

To reset all field attributes to those of the new field, use the \freset command. This means that
when Print Agent encounters a ^field command and moves into the new field, it drops the field
attributes of the previous field and adopts the field attributes of the new field. This is the default.
Field attributes include font, indentation, tab settings, and sub/superscripting.
For retaining the field attributes of the previous field, see \nofreset (Retain Field Attributes) on
page 241.
For another method of defining field reset values, see the [freset|nofreset] options of the
command, ^inline (Activate Inline Text Control Processing) on page 199. When a field
contains conflicting field reset values, that is, defined with both the \freset command and with
the nofreset option of the ^inline command, the \freset command takes precedence.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

239

\fs (Adjust Font Size)


Format
\fspoint-size

To change the point size of the current typeface, use the \fs command. You express the font
size in decipoints. The decipoints unit enables you to select a size in tenths of a point as a
whole number. For example, 10.5 point becomes 105 decipoints.
For templates compiled with Output Designer versions earlier than 5.3, this command works
only if the template contains an instance of the point size for the desired typeface. For
templates compiled with Output Designer version 5.3 or later, this restriction no longer applies
for scalable fonts. For non-scaleable fonts the restriction still applies - the template must contain
an instance of the point size for the desired typeface.
For example:
This \fs160.word\fs95. appears in 16 point type which is 160 decipoints,
and the balance of the sentence appears in 9.5 point type which is 95
decipoints.

results in:
This word appears in 16 point type, which is 160 decipoints, and the
balance of the sentence appears in 9.5 point type which is 95 decipoints.

\i (Set Italics Font)


Format
\i[0]

To set italics for the currently selected font, use the \i command. All text appears in italics until
you issue the command \i0. to set italics off.
For templates compiled with Output Designer versions earlier than 5.3, this command works
only if the template contains an instance of the desired font with the italics attribute. For
templates compiled with Output Designer version 5.3 or later, this restriction no longer applies.
For example:
This \i.word\i0. appears in italics.

results in:
This word appears in italics.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

240

\li (Indent Left Margin to Next Tab Stop)


Format
\li[0]

To indent the left margin to the next tab stop, use the \li command. Repeat the command to
indent multiple tab stops. All text appears left indented until you issue the command \li0. to set
indenting off. When indenting is set off, succeeding text appears at the fields left margin.
For example:
\li.These lines appear indented until you disable indenting by issuing
\li0. the command to set indenting off.

results in:
These lines appear indented until you
disable indenting by issuing
the command to set indenting off.

When you specify the command within the text, Print Agent supports hanging indents.
For example:
The left margin \li.indents at the command and, until you disable
indenting by issuing the command to set indenting off, Print Agent
\li0.supports hanging indents.

results in:
The left margin
indents at the command and, until you
disable indenting by issuing the command
that sets indenting off, Print Agent
supports hanging indents.

\n (Insert Newline Character)


Format
\n

To insert a newline character in the data stream, use the \n command. The text breaks at the \n
command and text following the command starts printing on a new line.
For example:
Use this command to insert a \n.new line.

results in:
Use this command to insert a
new line.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

241

\nofreset (Retain Field Attributes)


Format
\nofreset

To retain the field attributes of the previous field, use the \nofreset command. This means that
when Print Agent encounters a ^field command and moves into the new field, it applies the
field attributes of the previous field to the new field. Field attributes include font, indentation, tab
settings, and sub/superscripting.
The exception to \nofreset processing is the first field encountered by Print Agent. The font of
that field establishes the initial font.
For resetting the field attributes to those of the new field, see \freset (Reset Field Attributes)
on page 238.
For another method of defining field reset values, see the [freset|nofreset] options of the
command, ^inline (Activate Inline Text Control Processing) on page 199. When a field
contains conflicting field reset values, that is, defined with both the \nofreset command and
with the freset option of the ^inline command, the \nofreset command takes precedence.

\normal (Set Style Attributes Off)


Format
\normal

To set style attributes off, use the \normal command. Style attributes include subscript,
superscript, bold, italics and underline.
For example:
\b\ul.This is bold and underlined,\normal and this is not.

results in:
This is bold and underlined, and this is not.

\off (Suspend Inline Text Control Processing)


Format
\off

To suspend the processing of Inline Text Control commands, use the \off command. Processing
remains suspended until Print Agent encounters a \on command.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

242

\on (Resume Inline Text Control Processing)


Format
\on

To resume the processing of Inline Text Control commands, use the \on command. This
command resumes processing previously suspended with the \off command, but only if either
^inline on or -aitcon is already in effect. When either ^inline on or -aitcon is not in effect, Print
Agent does not recognize the \on command, but interprets it as data and prints it literally.

\pic (Picture Formatting)


Format
\pic"[format-specifier][[currency-ind]]picture-specifier",data

- or \pic "daten",data

To implement picture formatting for a data string, use the \pic command. This command places
the formatted result back into the data stream.
Caution: The \pic command is intended to apply picture formatting to a particular data string,
which may possibly exist within a larger data string. You can also apply picture
formatting at the field level, by including a picture clause in the template at design
time. Use caution when mixing both \pic commands and picture clauses. When a
template field contains a picture clause and a \pic command is also provided in the
data stream, unpredictable results may occur.

\pic[format-specifier][[currency-ind]]picture-specifier,data
format-specifier is optional, and can be one of:

Specifier

Description

datejf

date in Print Agent format only

date

date in Print Agent format only

datexpg

date in XPG format only

datejx

date in mixed Print Agent/XPG format

timejf

time in Print Agent format only

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

Specifier

Description

time

time in Print Agent format only

timexpg

time in XPG format only

timejx

time in mixed Print Agent/XPG format

num

numeric format

243

The date and time specifiers are provided for compatibility with older versions of Print Agent.
It is recommended that you use datejf and timejf instead. If you use date, you must ensure
that the picture specifier does not start with a digit. Otherwise Print Agent interprets the specifier
as including the digit, that is, as a daten specifier.
[currency-ind] is optional and is a string enclosed in [ ] (square brackets). The string is
from the Print Agent configuration file, and is the text following Currency_ in the currency
section name. For example, to use the currency section from the configuration file with the
name:
[Currency_FFR]

the currency indicator element for the \pic command is [FFR]. The currency indicator element
must be coded at the beginning of the picture clause, following the format specifier. For
example,
\pic"num[FFR]zz,zz9.99","1234.56"

When Print Agent is processing a data file and encounters a picture clause, it uses the currency
indicator element to look up values in the referenced currency section in its configuration file. If
the referenced currency section does not exist, or if the \pic command does not contain a
currency indicator element, Print Agent formats the data using the default currency characters
from its configuration file [Special] section.
picture-specifier can be:

One or more of the allowable picture specifiers in the Date and Time Picture Specifiers
table on page 245.

One or more of the allowable picture specifiers in the Numeric Picture Specifiers table on
page 248.

One or more of the allowable picture specifiers in the Text Picture Specifiers table on
page 250.

You can use up to 255 characters to define a picture.


The series of picture specifiers used to create a picture is called a picture clause. A picture can
be one of date, time, numeric, or text. Within text, the picture can be alpha, numeric, or
alphanumeric. Print Agent uses the format-specifier to decide the type of data. If you
leave out the format-specifier in a \pic command, Print Agent assumes that the picture is
a text picture.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

244

data is the data to be formatted using the picture clause. When the format-specifier is a
time, data must be a 24-hour time expressed as hhmmss (for example 174502). When the
format-specifier is a date, data must be an eight-digit date expressed as mmddyyyy (for
example 02272000) or a six-digit date expressed as mmddyy (for example 022700).

Six-digit dates supply only the last two digits of the year, so the century is ambiguous. When
Print Agent is interpreting a six-digit date, it uses the -acs option (see page 69) to decide what
century the date refers to. For example, by default 022700 is interpreted as February 27th,
1900 but with -acs20 it is interpreted as February 27th, 2000. However this only works when
the format-specifier tells it to interpret data as a date. Also, -acs has no effect upon the
number of digits with which the year is printed - this is determined solely by the picture clause.
We strongly recommend that you use eight-digit dates whenever possible.
When you want characters that Print Agent normally views as picture specifiers to print literally,
precede each character with a \ (backslash).
For example Print Agent prints:
MM

as the numeric month of the year.


To print it literally, provide it to Print Agent in the format:
\M\M

In this example, the backslash protects the data from being interpreted as part of the picture
clause. When Print Agent encounters the backslash, it discards it and prints the data following
as provided.

\picdaten,data
daten is an allowable date format from the Date Format table on page 247.
data is the data that Print Agent formats and must appear in the data stream in one of the
allowable input formats - mmddyy or mmddyyyy.

Note: daten can be specified for a field in Output Designer. For details, see the Output
Designer Help topic Add the system date to a template design. Enter the picture
clause in the Picture attribute in the Format Field dialog box. For details, see the Output
Designer Help topic Picture clauses.
The \pic command works regardless of whether you set picture formatting on with the -apfon
command line option (see page 111).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

245

Date and Time Picture Specifiers


This table shows the allowable values for date and time picture specifiers. These values are
case-sensitive.
Print Agent
Date and Time
Formats

XPG
Date and Time
Formats

Description

DD

%d

numeric day of the month

DDD

%a

three letter abbreviated English day of the week

DDDD

%A

full English day of the week

MM

%m

numeric month of the year

MMM

%b

three letter abbreviated English month

MMMM

%B

full English month of the year

YY

%y

two digit numeric year (no century)

YYYY

%Y

four digit numeric year (century included)

hh

%I

hour in 12 hour format

HH

%H

hour in 24 hour format

mm

%M

minutes

ss

%S

seconds

XM

%p

the am or pm designator

WKS

%U

the week number where weeks begin on a


Sunday

WKM

%W

the week number where weeks begin on a


Monday

JJJ

%j

the day of the year (Julian)

TZ

%Z

time zone abbreviation derived from localization


information

MM/DD/YY hh:mm: XM

%c

US-English date and time

MM/DD/YY

%x

US-English date

hh:mm: XM

%X

US-English time

no equivalent Print
Agent format

%w

the weekday number where the first day of the


week is Sunday

%%

with XPG formats, %% is required to print %

Note: When using the above date specifiers, Print Agent produces English month names
regardless of your systems locale setting. For non-English or bilingual applications, see
Date Formats on page 247.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

246

This is an example of a Print Agent date and time format in the data stream:
Invoice Date: \pic"datejfDDDD MMMM DD, YYYY",122900.

which you can also specify as:


Invoice Date: \pic"dateDDDD MMMM DD, YYYY",122900.

This is an example of a XPG date and time format in the data stream:
Invoice Date: \pic"datexpg%A %B %d, %Y",122900.

This is an example of a combined Print Agent/XPG date and time format in the data stream:
Invoice Date: \pic"datejx%A MMMM DD, %Y",122900.

All these examples result in:


Invoice Date: Friday December 29, 2000

In each of these examples, Print Agent accepts data as 122900. Print Agent also accepts
the substitution variable @$date0 (see page 283), which returns the date in the same format.
For example:
Invoice Date: \pic"dateDDDD MMMM DD, YYYY",@$date0.

also results in:


Invoice Date: Friday December 29, 2000

You can also add the substitution variable @$timen (see page 289) to the above example, so
that the result includes the current time, as well as the current date. For example:
Invoice Date: \pic"dateDDDD MMMM DD, YYYY",@$date0., \pic"datehh:mm XM",@$time7.

results in:
Invoice Date: Friday December 29, 2000, 09:55 AM

Use caution with the \pic command. Print Agent interprets the command exactly as provided.
When you want spaces in your date and time pictures, ensure that you include them.
For example, if a Print Agent date and time format in the data stream appears:
Invoice Date: \pic"datejfDDDDMMMMDD,YYYY",122900.

the result is:


Invoice Date: FridayDecember29,2000

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

247

Date Formats
This table shows the allowable date formats when using daten:
Date Format

Output Format

Example

date0

mmddyy

122900

date1

yymmdd

001229

date2

mm/dd/yy

12/29/00

date3

mm-dd-yy

12-29-00

date4

Mmm dd, yyyy

Dec 29, 2000

date5

Mmm..m dd, yyyy

December 29, 2000

date6

dd Mmm yy

29 Dec 00

date7

dd Mmm yyyy

29 Dec 2000

date8

dd/mm/yy

29/12/00

date9

dd-mm-yy

29-12-00

date10

mmmm dd, yyyy

dc 29, 2000

date11

m..m dd, yyyy

dcembre 29, 2000

date12

dd mmmm yy

29 dc 00

date13

dd mmmm yyyy

29 dc 2000

date14

dd m..m yyyy

29 dcembre 2000

date15

yy/mm/dd

00/12/29

date16

mm.dd.yy

12.29.00

date17

dd.mm.yy

29.12.00

date18

yy.mm.dd

00.12.29

date19

dd.mm.yyyy

29.12.2000

date20

mm/dd/yyyy

12/29/2000

date21

yyyy-mm-dd

2000-12-29

date22

mmddyyyy

12292000

date23

mmddyy

122900

date27

dd/mm/yyyy

29/12/2000

The values for date4 to date7 inclusive use Language 1 and the values for date10 to date14
inclusive use Language 2. The Language values are taken from the [MonthNames] section of
the Print Agent configuration file, jfmerge.ini. Your systems locale setting has no effect on
Language values.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

248

This is an example of using daten with the \pic command:


Invoice Date: \pic"date5",12292000

and results in:


Invoice Date: December 29, 2000

Numeric Picture Specifiers


This table shows the allowable characters for numeric picture specifiers. These specifiers are
case-insensitive.
Character

Description

currency symbol place holder

decimal character symbol place holder

thousands character symbol place holder

()

parentheses symbol place holder

CR

credit symbol place holder

DB

debit symbol place holder

number place holder

suppress leading zeros place holder

minus sign place holder

Some examples of valid numeric pictures are:


9,999.99

which displays numbers with leading zeros and 2 decimal places.


Z,ZZZ.ZZ

where leading zeros before the decimal point are suppressed. A zero value prints nothing at all.
$,$$9.99

where leading zeros are suppressed and with the currency symbol preceding the value. The
9.99 prints at least one digit with 2 decimal places, even if zero.
$,$$9.99-

which prints as above, except negative numbers print with the - (minus sign) character on the
right instead of the left.
($,$$9.99)

which prints as above, except negative numbers print in parentheses.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

249

Note: Inline Text Control commands can be terminated by a . (period). When the data for a
picture clause contains a period, be sure to place quotation marks around the data. For
example:
\pic"num99,999.99","23441.00".

results in
23,441.00

Quotation marks are required even when the period is introduced by a variable
substitution or calculation. For example,
^define global:total 53134.97
...\picnum"99,999.99","@total ".

results in
53,134.97

As explained in the Date and Time Picture Specifiers, use caution with the \pic command. Print
Agent interprets the command exactly as provided. With numeric pictures, Print Agent treats a
blank between the format specifier and the picture clause as a 9, causing a leading zero to
appear in the space. Print Agent treats an invalid character as a 9. If the data has more digits
to the right of the decimal point than the picture clause specifies, the least significant digits are
rounded to the precision of the picture clause. However, if the data has more digits to the left of
the decimal point than the picture clause specifies, an overflow occurs. Print Agent places the
most significant digits of the data immediately to the left of the digits accounted for by the
picture clause. For example,
\pic"num9,999.99","1234567.899"

results in:
1234,567.90

As well, there is a floating point limit that will vary depending on your platform. This floating
point limit may result in rounding up or down, depending on how many digits you are passing to
the picture clause.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

250

Text Picture Specifiers


This table shows the allowable characters for text picture specifiers. These specifiers are
case-insensitive. Any other characters are treated as literals and copied directly to the output.
Character

Description

number place holder

any character

upper case character

lower case character

Note: To include one of these characters


literally, precede it with a \ (backslash).

An example of a valid text picture is


!xxx

which displays an alphanumeric field of four places, converting the first character to uppercase.
Note: Text conversion to upper or lower case characters can handle accented characters.
However, the printer symbol set must be Roman-8 and the UTF8 text conversion option
must be false (-autf8off). Otherwise, the data must be restricted to printable ASCII.
Take care when creating a text picture for a field. If the picture specifies fewer characters than
are present in the data, the trailing characters from the data are thrown away. For example,
inside a field that has not been defined in Output Designer as a numeric field,
\pic"9,999.99","1234567.899"

results in
1,234.56

This also illustrates the difference between numeric and text picture specifiers. To a text picture
specifier, the data is a string of individual characters (which may be digits), not a number.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

251

Design Time Picture Clauses and \pic


You cannot use inline commands in a field with a picture clause defined at design time. You can
use !format, but if the result of the !format expression includes inline text commands, then the
picture clause will fail. You can avoid this problem by defining the picture clause with the \pic
command.
For example, using Output Designer, the detail line ITEM_COST field has a picture format of
ZZZ,ZZ9.99 defined in the Format Field dialog. As well, a !Format event is used to accumulate
the Item_Cost field into a global variable. A preamble override is used to initially define the
global variable with the value zero.
The generated preamble shows:
^define group:ITEM_Cost!Format
@_$_.\defineresolveglobal:Total_Amount,"@(@global:Total_Amount.+@_$_.).".

The picture clause will not be processed. It will fail because it tries to format the inline
command.
However, the picture clause will be processed if it is defined using the \pic command:
^define group:ITEM_Cost!Format
\pic"numZZZ,ZZ9.99","@_$_.".\defineresolveglobal:Total_Amount,"@(@global:
Total_Amount. +@_$_.).".

Advanced Functions
You can use the \pic command with variable substitution and other Inline Text Control
commands. When you do, you must precede all Inline Text Control commands, except \pic,
with two backslashes instead of one. As explained earlier, a backslash within a picture clause
has the effect of protecting the character following it. Print Agent discards this backslash as it
processes the data. When you provide two backslashes, Print Agent discards the first
backslash and then recognizes the second backslash as the prefix character for an Inline Text
Control command.
For example:
^DEFINE datefmt "datejf\\push\\fs160DDDD, MMMM DD, YYYY\\pop"
Due Date:\pic@user:datefmt.,12292000.
No extensions will be granted.

results in:
Due Date: Friday, December
No extensions will be granted.

29, 2000

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

252

\plain (Field Default Font)


Format
\plain

To change the current font and attributes to the default font set for the field by the template
designer, use the \plain command.
For example:
\fn"Times New Roman".This sentence is in Times New Roman typeface
and\plain. this is not.

results in:
This sentence is in the Times New Roman typeface and this is not.

\pop (Restore Saved Font)


Format
\pop[all]

To restore the most recently saved font, use the \pop command. You save the font with the
\push command. Including the all option restores all saved fonts in effect prior to any \push
commands.
For example:
This is Times New Roman and \push\fnArial\fs110.this is Airal\pop. and
this is Times New Roman again.

results in:
This is Times New Roman and this is Arial and this is Times New Roman again.

\push (Save Current Font)


Format
\push

To save the current typeface, style (including underline), and baseline offset, use the \push
command. This is an easy way of saving the current font prior to a font change so that you can
reinstate the original font with a \pop command.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

253

For example:
This is Times New Roman and \push\fnArial\fs100.this is Arial, 10 point
and \fs140.this is Arial, 14 point \pop. and this is Times New Roman
again.

results in:
This is Times New Roman and this is Arial, 10 point and this
New Roman again.

is Arial, 14 point and this is Times

\strike (Set Strikethrough)


Format
\strike[0]

To set strikethrough on for the currently selected font, use the \strike command. All text
appears with strikethrough characters until you issue the command \strike0. to set
strikethrough off.
For example:
\strike.This text includes strikethrough characters,\strike0. and this
text does not.

results in:
This text includes strikethrough characters, and this text does not.

This command does not apply to a rotated field.

\t (Move to Next Tab Stop)


Format
\t

To move to the next tab stop, use the \t command. Repeat the command to move multiple tab
stops. This is an alternative to embedding an ASCII decimal 9 (tab) in the data stream to
signify a move to the next tab stop.
For example:
Item\t.Quantity\t\t.Units
1001\t.
12\t\t.EACH

results in:
Item
1001

Quantity
12

Units
EACH

For setting tab stops, see ^tab (Set or Clear Horizontal Tab Stops) on page 225.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

254

\u+ (Insert Unicode Code Point)


Format
\u+codepoint

To insert a Unicode code point into the data stream, use the \u+ command. This is useful for
including a character in the data that is not available on the keyboard.
codepoint is the hexadecimal number used to represent a character. A complete listing of
Unicode code points is available from the Unicode Web site at www.unicode.org.

For example:
The Euro sign, \u+20AC, is the currency sign for the European Monetary
Union.

results in:
The Euro sign, , is the currency sign for the European Monetary Union.

Note: With -autf8on, all incoming data is converted to the Unicode format UTF-8 before
processing occurs. This is the default. When running Print Agent with -autf8off and
using the \u+ option, the code point must fall within the current field symbol set.

\ui (Unindent Left Margin to Previous Tab Stop)


Format
\ui

To unindent the left margin to the previous tab stop, use the \ui command. Repeat the
command to unindent multiple tab stops.
For example:
All lines following the indent
\li\li\li.command indent three tab stops. To \ui\ui.unindent two tab
stops, use the unindent command.

results in:
All lines following the indent
command indent three tab stops. To
unindent two tab stops, use the unindent command.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

255

\ul (Set Underlining)


Format
\ul[w|db|0]

To set underlining on for the currently selected font, use the \ul command. To set underlining
off, use the \ul0. command. The w option enables word underlining. The db option enables
double underlining.
For example:
\ul.This text shows single underlining,\ul0. \uldb.this text shows
double underlining\ul0. and \ulw.this text shows word underlining\ul0..

results in:
This text shows single underlining, this text shows double underlining
and this text shows word underlining.

This command does not apply to a rotated field.

\up (Raise Text from Baseline)


Format
\up[points]

To raise text relative to the baseline, use the \up command. The baseline is an imaginary
horizontal line directly beneath the line of text. points is the number of points to raise the text,
relative to the baseline. The default is 3 points. This command does not affect the size of the
current font, only its position on the line. All text appears raised until you issue the \up0.
command to return the text to the baseline.
For example:
This \up.word\up0. shifts up by 3 points and \up6.these words\up0. shift
up by 6 points.

which results in:


these words
This word shifts up by 3 points and
shift up by 6 points.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

256

INTELLIGENT PAGINATION COMMANDS


Intelligent Pagination commands are an advanced feature of Print Agent. The rules governing
Inline Text Control commands also apply to the Intelligent Pagination commands.
The Intelligent Pagination commands control the pagination for a static or dynamic template.
Using the Dynamic Merge command, ^define (see page 180), you create group and field
events (see page 307) for a template page. The ^define commands include the Intelligent
Pagination commands that tell Print Agent the action to take to complete the event. When you
use Intelligent Pagination, your data must be in field-nominated or XML format.
The command string that starts with the ^define command and includes Intelligent Pagination
commands may extend over multiple lines in the data stream. A ^define command that
includes Intelligent Pagination commands must be delimited at the end of the string.
For example:
^define group:POTOTALS!OnBOF
\page2\fieldPOSITION2.

The . (period) at the end of the command string delimits the last command in the string.
Individual commands within the string, such as \page2 are delimited by the next Intelligent
Pagination command, in this case with \fieldPOSITION2.
Print Agent interprets Intelligent Pagination commands that are inline to the ^define commands
as though they are embedded within the data stream, even though the ^define commands
normally appear at the top of the data stream. When an event triggers the execution of a field or
group event handler, the Intelligent Pagination commands execute at that point in the data
stream where Print Agent is currently processing.
Some of the Intelligent Pagination commands, when not delimited at the end of the ^define
command string, interpret data from the data stream as part of the command, effectively
causing Print Agent to drop that data from the printed output. In addition, other delimiters, such
as a space, cause Print Agent to use the space as a delimiter and also print the space. This
may not produce the desired output. Therefore, we recommend that you delimit each ^define
command string that uses Intelligent Pagination commands with a . (period).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

257

\checksurface (Duplex Mode and Surface)


Format
\checksurface

To check which surface of a page is currently printing, use the \checksurface command.
\checksurface detects the current print surface and causes a group event handler to activate.
Depending upon the actual surface, the event handler is one of:
Event Handler

Execution Circumstance

DuplexFront
(see page 309)

Executes when Print Agent is operating in duplex mode and the current
print surface is a page front.

!DuplexBack
(see page 309)

Executes when Print Agent is operating in duplex mode and the current
print surface is a page back.

!Simplex
(see page 312)

Executes when Print Agent is operating in simplex mode.

A typical use for \checksurface is to force the printer to switch to a new front page when
printing in duplex mode, by conditionally inserting a blank surface on the back of the current
page. For example:
^define group:SECTION \checksurface\page1\fieldPOS
^define group:SECTION!DuplexFront \page3

Here the group SECTION uses the \checksurface command to determine the current duplex
surface. The event handler for the !DuplexFront event activates when the current print surface
is a front page. The event handler inserts page 3 from the current template as a filler surface on
the back before moving to page 1 on the next front surface. As a result, the new page 1 will be
on a duplex front surface, regardless of whether the previous page was a front or a back
surface. The filler surface may be entirely blank, contain static text, such as This page
intentionally left blank, or contain fields which are filled by global definitions active at the time
\checksurface is used. It may also contain a dummy field that can trigger a !FieldNotAvail
event specific to the insertion. In any case, Intelligent Pagination commands directly
referencing fields on that page should not be depended on, because the page is only
conditionally inserted.
For another method of performing surface specific processing, see $duplexsurface (Duplex
Mode and Surface) on page 284.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

258

\defineresolve (Assign Resolved Value to Variable)


Format
\defineresolve[dictionary-name:]variable-name,value.

Use \defineresolve to assign a value to a dictionary variable. Variable substitution occurs even
as the variable is being defined, let alone when it is being used.
dictionary-name: is the name of one of the Print Agent dictionaries. You must include the :
(colon) after the dictionary name. Likewise, if you supply a colon, you must supply a dictionary
name. When you do not specify a dictionary, the default is the User dictionary.
variable-name is the variable name.
value is the value to assign to the variable. Typically, value references substitution variables
such as calculation expressions (see page 292). If value contains spaces, decimal points, or
if it requires more than one line, enclose it in (quotation marks). When value contains a
decimal point that is not enclosed in quotation marks, the decimal point will be treated as a
delimiter, rather than as a decimal point.

Note: If value just contains (quotation marks) but with no actual value contained within
the quotation marks, the first quotation mark is treated as an escape character and the
literal is then stored as the value.
Use a . (period) to delimit this command.
When Print Agent processes the expression for an event handler that contains both inline text
commands and calculation expressions, all of the substitution for the calculation expressions is
evaluated before any of the inline commands are processed. For example:
\defineresolveglobal:Amount,@(@Amount.+1).\defineresolveglobal:Tax,@(@
Amount.*2).

If on entry Amount is 7, then @Amount in both expressions will resolve to 7. The value stored for
Amount is 8 and the value stored for Tax is 14.
To perform sequential execution of the calculation expressions, you can define separate event
handlers. For example:
^define group:!IncrementAmount
\defineresolveglobal:Amount,@(@Amount.+1).
^define group:!CalculateTax \defineresolveglobal:Tax,@(@Amount.*2).

If the action for an event handler is:


\group!IncrementAmount.\group!CalculateTax.

Print Agent executes the group event handlers sequentially. Once again, with the value of
Amount at 7 on entry, the result is that the value for Amount is 8 and the value for Tax is 16.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

259

Note: Because the event handlers for !IncrementAmount and !CalculateTax do not have a
group or field name prefix, Print Agent does not trigger a change of group. Using this
syntax with the event handler is an effective way of executing calculations at the
appropriate time without altering the current group setting.
See ^group (Execute Specified Group) on page 198 or \group (Execute Specified
Group) on page 266.
Further to the previous example, the result is different if the actions for an event handler are:
@group!IncrementAmount.@group!CalculateTax.

Print Agent resolves the calculation expressions using the following interim steps:
Print Agent first resolves @group!CalculateTax.
@group:!IncrementAmount.\defineresolveglobal:Tax,@(@Amount.*2).
@group:!IncrementAmount.\defineresolveglobal:Tax,@(7*2).
@group:!IncrementAmount.\defineresolveglobal:Tax,14

Print Agent then resolves @group!IncrementAmount.


\defineresolveglobal:Amount,@(@Amount.+1).\defineresolveglobal:Tax,14
\defineresolveglobal:Amount,@(7+1).\defineresolveglobal:Tax,14
\defineresolveglobal:Amount,8\defineresolveglobal:Tax,14

The result is that the value for Amount is 8 and the value for Tax is 14.

\field (Move to Specific Field)


Format
\fieldfieldname

To set the pen position to a specific field, insert a \field command in the data stream.
fieldname is the name assigned to the field at template design time.
For example, to move to a field named USERNAME, use this command:
\fieldUSERNAME

For templates designed with version 5.2.6 or later of Output Designer, a field can be defined as
a graphic field in the template. The text placed in such a field is interpreted by Print Agent in the
same way as the parameters for a ^graph command (see page 194). The image is rotated in
accordance with the field rotation setting, and then scaled to fit into the field boundaries. The
resolution parameter, if supplied, is ignored. For example, to fill a field named
COMPANY_LOGO with the graphics file, abc.jpg, with a gamma value of 0.75, use this
command:
\fieldCOMPANY_LOGO
abc.jpg gamma 0.75

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

260

Note: You can provide a full path specification. However, if the path name contains spaces,
use the -alp command line option (see page 91) to identify the path and provide the
name of the graphics file with the \field command.
When you do not specify a field name, Print Agent moves to the next field on the template. Print
Agent processes the fields in tabbing sequence as defined in Output Designer. The default
tabbing sequence is left to right, top to bottom using the top left corner of the field.
When you include a \field command before each data record, you can:

Skip over fields where there is no data to print.

Skip lines of a multiline field that has no data.

Make the sequence of the data independent of the order of the fields on the page.

Set the pen position for laying down a subform or a logo on a page.

To change the way Print Agent handles data for fields, use the -afx command line option (see
page 84).

\form (Open Template)


Format
\formMDFname[,options]

To open a template (form), insert a \form command into the data stream. This command
instructs Print Agent to close the currently open template and to open the template, MDFname.
In cases where the file name or option contains spaces or non-alphanumeric characters, it is
necessary to enclose the file name or option in quotation marks.
For example, to change to a template named newform.mdf, use this command:
\form"newform.mdf"
MDFname is the file name or URL for a template. When you specify a file name you may include
the full path specification. If you do not include the path and Print Agent was started with the
-afpformpath option (see page 82), it uses the formpath to assemble the complete file name or
URL. Print Agent also appends an .mdf extension to the name if no extension is given.

If the resulting full name starts with http:, Print Agent downloads the file from an HTTP server
using the full name as the URL. Otherwise, it opens the file within the file system.
Normally when the \form command is specified in the data stream, Print Agent ignores any
template name on the command line. This means that you can start Print Agent with a dummy
file name if the data stream contains a \form command. However, whether the template name
from the command line is actually ignored depends on the contents of your data stream. Certain
conditions cause Print Agent to immediately open the template. If Print Agent encounters one of

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

261

these conditions in the data stream before it encounters the \form command, it will try to open
the template from the command line. If that happens and the command line contains a dummy
file name, your job will fail.
When Print Agent encounters one of the conditions that cause it to immediately open a
template, it sends a reset sequence to the printer, and positions at the initial page. The default
initial page is page 1, but this can be changed with the -aip option.
The conditions that cause Print Agent to immediately open a template are:

Printing a blank template (no preamble or data file)

Starting in quiet download format (no preamble or data file and -q)

Starting with the print all pages flag (-aapon)

Processing text that is to be printed immediately (not into a global field)

Processing a reference to a document variable

Processing any of the following commands:

^form

^subform

^field

^graph

^position

^page

^eject

^macro

^passthru

^tab

Note: Although -axpson causes Print Agent to open the template when it starts, once it reads
and stores the preamble it closes the file again. If the open fails or there is no preamble,
it quietly ignores the -axpson.
When Print Agent reads a \form command in the data stream and it is the first template opened
for that job, it makes page one of the template active. When opening subsequent templates,
Print Agent does end-of-page processing and sends a formfeed and soft reset to the printer.
The printed result is similar to that obtained when using the \page command. The difference is
that all possible pages must be compiled into the template when using \page. In some cases
you may wish to compile individual pages as separate templates and use the \form command
to reference them.
Use care when using the \form command with multipart templates. Print Agent can only cope
with one template during a multipart print execution. For each part in a multipart template, Print
Agent repositions in the data stream to the start of the file. If you use a \form command after

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

262

Print Agent has already opened the template, it forces Print Agent to open the template again.
Opening the template again may cause Print Agent to lose track of where it is in processing the
multipart template.
Caution: You cannot execute a preamble using a \form command. A typical preamble makes
use of Dynamic Merge commands (^define, ^group, etc) and you cannot execute
Dynamic Merge commands in inline mode. You can use a \form command within a
preamble, but if the form being loaded contains an internal preamble any Dynamic
Merge commands in that preamble will not be executed.
\form options override equivalent options set on the command line, for the duration of the
template. Adding an option to the \form command only affects the template specified by the
\form command. When you do not add an option to the \form command, Print Agent uses the
equivalent option from the command line.
The options for the \form command can be one or more of the following:

-aap (Print All Pages) (page 66)

-adu (Duplex Printing) (page 76)

-afx (Discard Unknown Fields) (page 84)

-aip (Start Print at Page Specified) (page 88)

-aob (Use Older Font Baseline) (page 97)

-apf (Picture Formatting) (page 111)

-ati (Input tray) (page 121)

-ato (Output Tray) (page 124)

-c (Number of Copies) (page 133)

-l (Template Already Loaded) (page 134)

-m (Download Macro to Printer) (page 135)

-p (Printer Offset) (page 139)

-s (Starting Page Number) (page 152)

For example, to print all pages of a template and use picture formatting, include the -aapon and
-apfon options respectively with the \form command:
\form"newform.mdf","-aapon","-apfon"

\graph (Print Logo or Raster Image)


Format
\graphfilename[type type][,resolution value][,gamma value]

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

263

To print a logo or raster graphic starting at the current position on the page, insert a \graph
command in the data stream.
For example, to print a graphic called logo.pcx with a resolution of 600 dpi and a gamma value
of 2.2, use this command:
\graph"logo.pcx","resolution 600","gamma 2.2"
filename is the name of the graphic file. Print Agent searches the template for a graphic file
included in the template with the given name. If it does not find the graphic file in the template, it
looks in the file system. When looking in the file system, if filename does not include the full
path, it uses the path specification from the -alp option.
type is one of the supported graphic types listed in the table below. If type is not supplied,
Print Agent infers it from the extension of filename. type is useful when filename refers
to a temporary file. For example:
graph"\tmp\ABAE1231.tmp","type pcx"

These are the supported graphic formats:


Type

Supported Formats

bmp

Most, but not including 32-bit color or bitfield encoding

not applicable

eps

Encapsulated PostScript File Format Version 1.2, 2.0, and


3.0, with these previews:

not applicable

Default Resolution

Device-specific screen preview:

Apple Macintosh PICT Resource

Windows Metafile or TIFF

Device-independent screen preview:

Encapsulated PostScript Interchange


Format (EPSI)

Note: EPS graphics are supported only for templates compiled using a PostScript
presentment target and printed to a PostScript printer. EPS graphics are not
supported for templates compiled using a Windows printer driver, even if the
templates are printed using a PostScript printer.
gif

jpg

lgo

gif87a and gif89a

interlaced and non-interlaced

24-bit color

progressive and standard compression

1 bit monochrome

96 dpi

72 dpi

300 dpi

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

Type

Supported Formats

pcx

1 bit monochrome

8 and 24 bit color

png

8 and 24 bit color, but not 8 or 16 bit alpha channels

75 dpi

tif

1 bit monochrome

not applicable

- or -

8 bit gray-scale

gr3

8 and 24 bit color

Type 1 - no compression

Type 2 - CCITT 1D (CCITT Group 3 1D modified Huffman)


compression

Type 32773 - Packbits compression

Group 4 2D compression

264

Default Resolution
not applicable

resolution value indicates the resolution in dots per inch of the graphic file. This can be
any positive number or the word default.

For templates designed with version 5.2.6 or later of Output Designer, a field can be defined as
a graphic field in the template. When placing an image in a graphic field, Print Agent rotates the
image in accordance with the fields rotation setting and then scales the image to fit within the
field boundaries. resolution value, if supplied, is ignored.
When Print Agent places an image into a non-graphic field, it uses resolution value to
control the scaling of the image from its original resolution to the printers resolution. You can
use resolution value to force the image to be scaled differently. For example, if the image
was scanned at 144 dots per inch but you specify a resolution of 72 dots per inch, the image will
print at twice life-size.
If you supply a value of 0 or default for resolution value and the field is a non-graphic
field, Print Agent examines the image file. If the image file specifies the resolution, Print Agent
uses the value from the file. Otherwise Print Agent defaults to a value from the table above. In
the table, not applicable indicates that the resolution is always taken from the image file.
However, if you set the value of DefaultBitmapResolution in the Print Agent configuration file,
jfmerge.ini, to Yes, Print Agent will use 300 dots per inch as the default resolution for all
image formats. This provides backwards compatibility with data streams created for earlier
versions of Print Agent.
The gamma value indicates the degree of light intensity to assign to a color graphic. The
practical values are between 0 and 4. A value of 1 does not change the light intensity of the
graphic. A value less than 1 decreases the light intensity; a value greater than 1 increases the
light intensity. Note that the effect of a gamma value assigned with the \graph command can
be impacted by other considerations, such as the gamma built into the graphic, or the gamma
of your printer.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

265

Color Image Considerations


For all color images printed with the \graph command, the quality of the printed image is
dependent on the capabilities of your printer.
Print Agent does not support transparency. This applies to all colors in all image formats,
including the alpha channel in .png images.
When supplied with a color image, Print Agent sends it in color to the printer if the printer will
accept it. All PostScript printers and all Lexmark PCL 5 printers accept color images, including
monochrome models. These printers convert color images to gray-scale by themselves as
necessary. However, other monochrome printers will not accept color images. For such
printers, Print Agent converts color images to dithered gray-scale images. This is restricted to
images with an 8-bit palette or with 24 bits per pixel. Other color images will not be printed
properly on such printers.
The \graph command is computationally intensive. If you are printing the same image
repeatedly, you should consider using Output Designer to create a subform and to place the
graphic into the boilerplate for the subform. (This is not the same as merely including the
graphic file in the template file.) In your data stream, use ^subform (see page 221) or
\subform (see page 279) to print the image. When you include an image in this manner, the
image is precompiled by Output Designer and Print Agent runs much faster. If you must use
\graph, be aware that color images are much more computationally intensive than other
images, even when printing to a monochrome printer.

Graphic Placement
The \graph command does not begin a new field and does not respond to -afx (see page 84) or
to other options and commands that affect the placing of data into fields. If text has already
been placed into the current field, \graph places the image below the text. You may precede
\graph with \position (see page 268) to control the position of the image.
In templates created with version 5.2.6 or later of Output Designer, a field can be defined as a
graphic field. You can place an image into a graphic field using the \field command (see
page 259). An image placed in this manner cannot be accompanied by text and cannot be
repositioned. However, the \field command does respond in the normal way to -afx.

Label Printers
For label printers, the \graph command will accept images in 1, 4, 8 and 24 bit format.
However, whether the images provided in 4, 8 and 24 bit format will appear on the output
depends on the capabilities of the printer.
Color or gray-scale images are supported only if compiled into the template. For all color
images printed with the \graph command, the quality of the printed image is dependent on the
capabilities of your printer.
The \graph command is fully supported for Tec and Intermec label printers. For Datamax and
Zebra label printers, the graphic will print only if already downloaded to the printer or if compiled
into the template.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

266

Maximum Visible Detail Printing Gray-scale Images


Laser printers are designed so that if adjacent pixels are black, they bleed together; this makes
the text look like solid letters rather than the collection of pixels it really is. However, for images
on which the dithering method, -agsmdither (see page 86), was used, this has the effect of
making dark grey areas into solid black. This causes the printed image to have a higher
contrast than the image stored in the TIFF file. Although this may be acceptable, it does actually
obscure some detail in the image. If you want maximum visible detail, you can bring it out by
reducing the contrast somewhat using -agscnn (see page 85). The optimum setting depends
on the printer and may vary with time and the condition of the toner cartridge, but a setting in
the range of 40 to 45 seems to be a good compromise.

\group (Execute Specified Group)


Format
\group[groupname][eventname]

To call a group, use the \group command. groupname is the name assigned to a value or
values and placed in the Group dictionary, using the ^define command (see page 180).
eventname is either one of the supported group or field events, or a unique name. For a
description of the supported group or field events, see Intelligent Pagination on page 306.

A \group command can be specified in these ways:

With a groupname that is defined in the Group dictionary, for example:


\groupPODETAIL

-orwith a groupname and eventname that are defined in the Group dictionary, for example:
\groupPODETAIL!FldUsed

If the current group is not PODETAIL, Print Agent will:

Execute the !OnExit event for the current group, if one exists.

Execute the !OnEntry event for the group PODETAIL, if one exists.

Change the current group to PODETAIL.

Execute any actions defined for the specified group and event.

If the current group is PODETAIL, Print Agent will only execute any actions defined for the
group and event.

With no groupname, but with an eventname that is defined in the Group dictionary, for
example:
\group!Output_Special_Footer

Print Agent will execute any actions defined for the event. The current group remains
unchanged.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

267

If Print Agent cannot find an entry in the Group dictionary for a specified group and/or event, it
will ignore the \group command.
When Print Agent starts processing a transaction file, it is initially in a default group called
JFDEFGROUP. It remains in this group until the activation of a user-defined group, specified
with a ^group or \group command. JFDEFGROUP is useful where an event is triggered before
the activation of a user-defined group. In this case, Print Agent calls the group event handlers
from JFDEFGROUP to process the event. JFDEFGROUP supports all group event handlers
except !OnEntry.
At the end of the transaction file, Print Agent triggers the !OnExit event for the current group. It
will also trigger a JfEndData event, if one is defined.

\page (Move to New Page in Template)


Format
\page{name|num}[,options]

To move to a new page in the template (form), use the \page command. {name|num} is the
page to activate, and can be either a name or a number. When you do not specify
{name|num}, Print Agent ignores the command.
For example, to activate page dependents of the current template, use this command:
\pagedependents

To end the current template and start a new copy of the currently active template, specify
{name|num} where {name|num} is either the number 1 or the name of your first page. Note
that even though your pages may have names instead of numbers, Print Agent still retains the
numerical count of the pages in the template. Therefore, even if the first page is named
dependents, you can still specify page 1 to start a new copy of the currently active template.
The options for the \page command are:

trayin
Format
\page{name|num}[,trayin{traynum|*ptrstring|+encoded-ptrstring}]

To print from a specific input paper tray, use the trayin option. Note that changing paper trays
while printing in duplex ejects the current page; data originally destined to print on the reverse
of this page now prints on a physically new sheet.
For example, to select input paper tray number 4, insert this command in the data stream:
\page7,"trayin 4"

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

268

For a complete description of the trayin option, see ^trayin (Input Tray) on page 227.

trayout
Format
\page{name|num}[,trayout{traynum|*ptrstring|+encoded-ptrstring}]

To direct the printed output to a specific output paper tray, use the trayout option. Note that
changing paper trays while printing in duplex ejects the current page; data originally destined to
print on the reverse of this page now prints on a physically new sheet.
For example, to select output paper tray number 4, insert this command in the data stream:
\pagedependents,"trayout 4"

The trayout option is not supported for Windows printer drivers.


For a complete description of the trayout option, see ^trayout (Output Tray) on page 230.

duplex
Format
\page{name|num}[,duplex {off|on|left|long|top|short|*ptrstring|+encoded-ptrstring}]

To handle two-sided printing, use the duplex option.


For example, to change to page 3 of the current template and change the printing to duplex
along the long edge, insert this command in the data stream:
\page3,"duplex long"

For a complete description of the duplexing arguments, see -adu (Duplex Printing) on
page 76.

\position (Change Placement of Data)


Format
\positionoptions

To change the placement of the next subform, next macro, logo or passthru data, or to return to
a saved position on the page after one of the above, use the \position command.
Caution: You can use the \position command to move to a position that exists outside the
printable area of a page. For example,
\positionabsolute,"0.00","3.50",cm. This may be useful when positioning

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

269

other objects, so that you have a fixed reference point for a subsequent command.
However, it you place an object outside the printable area of a page, that object may
not print properly. Moreover, Print Agent will not display a warning if you attempt to
print an object that exists outside the printable area of a page.
All \position commands refer to directions relative to the current template:

Portrait orientation

up
left
right
down

Landscape orientation

up
left
down

right

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

270

At times it may be difficult to determine your current position on the page for placing the next
object. In those instances, lay down a dummy field with the ^field command and position from
that field.
The \position command takes a number of options. Where the options use graphical
examples to demonstrate the result, these purchase order subform pages are used:
Page 1
Any Company Inc.
PURCHASE ORDER

Date

Vendor

Requisition Number

Vendor Code

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country

This template page contains the header


information for the purchase order.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Item

Qty

Description

Units

Unit Price

Command Reference

271

Page 2

Total Price

This subform page contains the detail line


headings.

Page 3
This subform page contains detail lines and a
field for setting the pen position.

[]

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Subtotal
Tax - 7.25%
Total

Command Reference

Page 4
This subform page contains the totals
information.

Page 5
[]

This template page is for laying down the


subforms for continuation pages.

272

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

273

The \position command requires one of these options:

[absolute]
Format
\position[absolute],x,y[,units]

To place an object at a specific location on the page, use the \positionabsolute option. x is
the number of units from the left edge of the physical page. y is the number of units down from
the top of the physical page.
units can be one of:

Dots

cm (centimeter)

in (inch)

The default unit is dots. The size of a dot varies based on your printer configuration file.
For example, to position a subform on a template page at the location 1 inch from the left edge
of the page and 5.5 inches from the top of the page, use these commands:
\positionabsolute,1,"5.5",in
\subform2

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

The result is:


(0,0)

Any Company Inc.


PURCHASE ORDER

Date

Requisition Number

Vendor

Print Agent positions the first subform page


on the purchase order page at the
coordinates specified.

Vendor Code

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country
(1,5.5)
Item

Qty

Description

Units

Unit Price

Total Price

When only numerics or numerics with units follows the \position command, Print Agent
defaults to absolute positioning. Another way of expressing this example is:
\position1,"5.5",in
\subform2

up|down
Format
\positionup|down,y[,units]

To set an object at a location up or down from the last object placed on the page, use a
\positionup,y or \positiondown,y option. y is the number of units up or down to move.
units can be one of:

Dots

cm (centimeters)

Lines

in (inches)

274

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

275

The default unit is dots. The size of a dot varies based on your printer configuration file. A line is
the line spacing defined for the current font in the current field.
For example, to position a subform to a location 150 dots down from the current position, use
these commands:
\positiondown,150
\subform3

The result is:

Any Company Inc.


PURCHASE ORDER

Date

Requisition Number

Vendor

Vendor Code

Ship To

Any Company Inc.


123 Any Ave.
Any Town
Any Country
(0)
Item

Qty

Description

Units

Unit Price

Print Agent positions the second subform on


the page down 150 dots from the top left
hand corner of the first subform.
With the detail line subform positioned, Print
Agent can now fill the fields with the items in
the transaction file. When there are more
items than will fit on the first page of the
purchase order, you can position as many
copies of subform pages 2 and 3 as are
needed on blank continuation pages.

Total Price

(150)

relative
Format
\positionrelative,x,y[,units]

To place an object a specific distance from the current position, use a \positionrelative
command. x is the number of units right from the current point. y is the number of units down
from the current point.
Both x and y can be negative numbers. When x is negative, motion is to the left. When y
is negative, motion is up the page.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

276

units can be one of:

Dots

cm (centimeters)

in (inches)

The default unit is dots. The size of a dot varies based on your printer configuration file.
For example, to position a subform to a location 3.125 inches left from the current point and .5
inches down from the current point, use these commands:
\positionrelative,"-3.125",".5",in
\subform4

The result is:

Item

Qty

Description

Units

Unit Price

To ensure the proper positioning of the


subform page containing the totals
information, a dummy field appears on the
template. The totals subform is then placed
relative to this field, 3.125 inches left and .5
inches down.

Total Price

(0,0)
[]
(-3.123,.5)

Subtotal
Tax - 7.25%
Total

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

277

left|right
Format
\positionleft|right,x[,units]

To place an object at a location left or right on the page, use a \positionleft,x or


\positionright,x command. x is the number of units left or right to move.
units can be one of:

Dots

cm (centimeters)

in (inches)

The default unit is dots. The size of a dot varies based on your printer configuration file.
For example, to move to a point 3.5 inches right of the current position, use this command:
\positionright,"3.5",in

restore
Format
\positionrestore,save_id

To return to a specific location on the page, use a \positionrestore command. You must use a
\positionsave command for the \positionrestore command to work. save_id is the name of
the previously saved location; it can not contain spaces, and is case-insensitive.
For example, to return to a saved location named JUMP_SPOT, use this command:
\positionrestore,"jump_spot"

save
Format
\positionsave,save_id

To save the current location on the page, use a \positionsave command. save_id is the
name of the location to save; it cannot contain spaces, and is case-insensitive.
For example, to save the current location as JUMP_SPOT, use this:
\positionsave,"jump_spot"

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

278

\reserve (Reserve Space for Subform)


Format
\reserveoptions

To reserve the specified amount of vertical space for printing a subform or group, use the
\reserve command. Print Agent adds the specified size to the current vertical position. When
there is enough space in the printable area on the page, then the group or subform prints. When
there is not enough space in the printable area on the page, then Print Agent looks for an
!OnBOF event handler (see page 311). You require an !OnBOF event handler when you use a
\reserve command. The !OnBOF should include an action to move the current pen position
with either a \page or \position command.
The options for the \reserve command are:

n
Format
\reserven[,units]

The n option adds a specific amount of vertical space to the current pen position. n is a
number of units to reserve.
units can be one of:

Dots

cm (centimeters)

in (inches)

The default unit is dots. The size of a dot varies based on your printer configuration file.
For example, to specify the group or subform requires two and a half inches, use this
command:
\reserve"2.5",in

Ensure that the amount of space reserved for the group or subform is sufficient to include any
additional white space required at the bottom of the page.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

279

subform
Format
\reservesubform,page

The subform option determines the amount of vertical space required to print the subform
from the specified page. subform is a literal. page is the page number for the subform in the
current template.
For example, for Print Agent to determine the amount of vertical space required by the subform
from page 3 of the template, use this command:
\reservesubform,3

\subform (Activate Subform)


Format
\subform{subformname|nn}[,MDFname]

To place a subform page at the current pen position on the page, use the \subform command.
This command is valid for PCL and PostScript Level 2 printers.
For dynamic templates created with version 5.2 or later of Output Designer, use subformname
to identify the subform page name in the template.
For dynamic templates created with Output Designer 5.1 or earlier, use nn to identify the
subform page number in the template. In this case, the page must be compiled as a subform.
MDFname is the file name or URL for a template. When you specify a file name you may include
the full path specification. If you do not include the path and Print Agent was started with the
-afpformpath option (see page 82), it uses the formpath to assemble the complete file name or
URL. Print Agent also appends an .mdf extension to the name if no extension is given.

If the resulting full name starts with http:, Print Agent downloads the file from an HTTP server
using the full name as the URL. Otherwise, it opens the file within the file system.
MDFname is optional. When you do not specify MDFname, Print Agent takes the subform from
the current template.

For example:
\subformdependent,"newform.mdf"
\subformdependent
\subform2

When Print Agent places a subform, it does not execute a formfeed. It places the specified
subform relative to the current pen position. To change the current pen position, use the \field
or \position command, explained earlier in this chapter.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

280

\trace (Trace Facility)


Format
\trace"text"

To pass text to the log file, insert a \trace command in the data stream. Print Agent sends the
output directly to the log file; it does not print. text can be any word or phrase.
You use the \trace command for debugging.
For example:
\trace"This text appears in the log file."

Note: To direct the output from the \trace command to a file other than the log file, start Print
Agent with the -atf command line option (see page 119).
A \trace command will write trace messages to the log file or to a specified file only if
you start Print Agent with the -v0 command line option (see page 152).

\$page (Page Number)


Format
\$pagenn

To change the current page number for use in $PAGE fields, use the \$page command in the
data stream. nn is the page number to change to.
$PAGE is an Output Designer special field name that Print Agent fills automatically during
processing.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

281

VARIABLE SUBSTITUTION
Variable substitution makes data more flexible, by enabling you to substitute values for
variables as the data processes. The values are supplied by Print Agent, based on such things
as date and time, and template and field attributes. When Print Agent encounters an @ (at) in
the transaction file, it substitutes it and the variable following it with its equivalent value.
To delimit a substitution variable, use one of these characters:

Newline

Space

Period

To keep adjacent substitution variables separate, end each with a period.


For example:
@var1.@var2.

Print Agent processes the substitution variables separately. When a . (period) follows the
substitution variable, Print Agent replaces the @ character, the substitution variable name, and
the period with the value of the substitution variable.
To end a sentence with a substitution variable and print a period at the end of the sentence,
follow the substitution variable with two periods.
You can nest substitution variables. This is useful if the value of the second variable completes
the first variable. Print Agent processes variables from right to left.
For example, if the data stream contains:
@gl@nn

and the field nn contains the value 2, Print Agent replaces the @nn variable with 2 and then
processes the line as:
@gl2

Then if the field g12 contains the value computer, Print Agent replaces the @g12 variable with
computer.
The variables which follow are Print Agent reserved names, and should not be used for other
purposes in the transaction file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

282

@variable (Replace a Variable)


Format
text text text @variable text text

To replace a variable in the data stream, insert the @variable command.


variable may be one of:

$currentx (Current Horizontal Position)


Format
@$currentx

To refer to the current horizontal position on the page, insert the $currentx variable in the data
stream.
For example, to move to a position even with the current horizontal position and 900 dots from
the top of the page, insert this command in the data stream:
^position @$currentx. 900

By default, for fill justified fields, the current position is at the start of the most recent word of
data placed on the page. For other field justifications, the current position is at the start of the
current line of the field.
Print Agent uses dots as the measurement unit with the $currentx variable. The size of a dot
varies based on your printer configuration file.

$currenty (Current Vertical Position)


Format
@$currenty

To refer to the current vertical position on the page, insert the $currenty variable in the data
stream.
For example, to move to a position even with the current vertical position and 600 dots from the
left edge of the page, insert this command in the data stream:
^position 600 @$currenty.

By default, for fill justified fields, the current position is at the start of the most recent word of
data placed on the page. For other field justifications, the current position is at the start of the
current line of the field.
Print Agent uses dots as the measurement unit with the $currenty variable. The size of a dot
varies based on your printer configuration file.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

283

$date (Current Date)


Format
@$daten

To refer to the current date, insert $date as a variable in the data stream. n is the number of
the format the date appears in.
The date Print Agent uses is the date of the start of the current job. For example, if you start
Print Agent shortly before midnight on February 11, and the document prints after midnight
February 12, Print Agent uses February 11.
$daten may be one of the following formats:
Date Format

Output Format

Example

$date0

mmddyy

122900

$date1

yymmdd

001229

$date2

mm/dd/yy

12/29/00

$date3

mm-dd-yy

12-29-00

$date4

Mmm dd, yyyy

Dec 29, 2000

$date5

Mmm..m dd, yyyy

December 29, 2000

$date6

dd Mmm yy

29 Dec 00

$date7

dd Mmm yyyy

29 Dec 2000

$date8

dd/mm/yy

29/12/00

$date9

dd-mm-yy

29-12-00

$date10

mmmm dd, yyyy

dc 29, 2000

$date11

m..m dd, yyyy

dcembre 29, 2000

$date12

dd mmmm yy

29 dc 00

$date13

dd mmmm yyyy

29 dc 2000

$date14

dd m..m yyyy

29 dcembre 2000

$date15

yy/mm/dd

00/12/29

$date16

mm.dd.yy

12.29.00

$date17

dd.mm.yy

29.12.00

$date18

yy.mm.dd

00.12.29

$date19

dd.mm.yyyy

29.12.2000

$date20

mm/dd/yyyy

12/29/2000

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

Date Format

Output Format

Example

$date21

yyyy-mm-dd

2000-12-29

$date22

mmddyyyy

12292000

$date23

mmddyy

122900

$date27

dd/mm/yyyy

29/12/2000

284

The values for $date4 to $date7 inclusive use Language 1 and the values for $date10 to
$date14 inclusive use Language 2. The Language values are taken from the [MonthNames]
section of the Print Agent configuration file, jfmerge.ini. Your systems locale setting has no
effect on Language values.
For example, if today is the 31st of January 2000, and you insert this command in the data
stream:
Today's date is @$date5..

Print Agent processes the command as:


Today's date is January 31, 2000.

When you do not specify a value for n, Print Agent uses the default compiled into the template.

$duplexsurface (Duplex Mode and Surface)


Format
@$duplexsurface

To have Print Agent detect and act on the duplex mode and surface, insert $duplexsurface in a
preamble file or in an Intelligent Pagination string.
Print Agent populates $duplexsurface with these values:
Value

Circumstance

Simplex

When Print Agent is operating in simplex mode.

Duplexfront

When Print Agent is operating in duplex mode and the current print surface is a
page front.

Duplexback

When Print Agent is operating in duplex mode and the current print surface is a
page back

Usually, except for debugging purposes, the value of $duplexsurface is not used directly in a
template field. This variable can be of great use in performing duplex surface specific actions by
using its value in selecting a group for execution, or in a double variable substitution.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

285

This example preamble specifies groups to be executed in each of the three cases that
$duplexsurface distinguishes:
^define group:S_SIMPLEX \subform3
^define group:S_DUPLEXFRONT \subform4
^define group:S_DUPLEXBACK \subfom5
^define group:MYGROUP!OnBOF
\page1\fieldPOSITION@group:S_@$DUPLEXSURFACE

The !OnBOF event for MYGROUP will activate one of these defined groups, resulting in a
different subform being activated depending on the context in which the event occurs. When
operating in simplex mode, subform 3 is used, when in duplex mode and the surface is front,
subform 4 is used, and when in duplex mode and the surface is back, subform 5 is used.
This example also demonstrates an important consideration when using this feature. Be aware
of when the $duplexsurface value is interpreted. Here, although it appears after the \page
command switching to a new page, it still has the value from the previous page. Thus,
$duplexsurface tells us the surface just processed. This behavior occurs because variable
substitutions are evaluated before any part of the group is actually executed. Note that
$duplexsurface is evaluated, together with the global fields, at the end of the processing for
the current page.
Another example of using $duplexsurface is:
^graph LOGO_@$DUPLEXSURFACE..TIF

In this example, $duplexsurface is used with a ^graph command to cause a different logo to
be loaded, depending on the duplex or simplex page surface. This is useful in cases where
different logos are required on the front and back surface of a page. For this example,
depending on the duplex or simplex page surface, the file loaded will be either
logo_duplexfront.tif or logo_duplexback.tif.
A further example of using $duplexsurface is:
^define user:BP_DUPLEXFRONT \page3
^define user:BP_DUPLEXBACK \positionsaveDUMMY
^define user:BP_SIMPLEX \positionsaveDUMMY

In this example, the user dictionary definitions provide a means to navigate to the next front
surface via a command in the intelligent data stream, or in a preamble file.
@:BP_@$DUPLEXSURFACE substitutes the command \page3 when executed on the front
duplex surface. In other situations, the \positionsave command is executed. Because the
position DUMMY will not be used, the command is effectively a no operation. The example
results in a filler page 3 inserted on the back of the current page, if necessary, to cause the next
\page command to land on a front surface again.
For another method of performing surface specific processing, see \checksurface (Duplex
Mode and Surface) on page 257.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

286

$ffile (Current Path and File Name)


Format
@$ffile

To refer to the path and file name of the currently active transaction file, insert $ffile as a
variable in the data stream.
For example, if the path and file name of the transaction file is c:\data\forms.dat, and you
insert this data in the data stream:
The name of this file is @$ffile.

Print Agent processes the substitution variable as:


The name of this file is c:\data\forms.dat

For returning only the file name, see $file (Current File Name) on page 287.

$fieldx (Horizontal Distance to Field)


Format
@$fieldx

To refer to the distance from the left edge of the page to the anchor point of the current field,
insert $fieldx as a variable in the data stream. The anchor point is at the start of the current line
of the field, which differs depending on the field justification.
For example, to place the graphic sign.pcx at a point starting 600 dots below the anchor point
of the current field, aligned with the left edge of the current field, insert these commands in the
data stream:
^position @$fieldx. +600
^graph sign.pcx

Print Agent uses dots as the measurement unit with the $fieldx variable. The size of a dot
varies based on your printer configuration file.

$fieldy (Vertical Distance to Field)


Format
@$fieldy

To refer to the distance from the top edge of the page to the anchor point of the current field,
insert $fieldy as a variable in the data stream. The anchor point is at the start of the current line
of the field, which differs depending on the field justification.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

287

For example, to place the graphic sign.pcx at the same height as the current field but 900 dots
to the right of the anchor point of the current field, insert these commands in the data stream:
^position +900 @$fieldy.
^graph sign.pcx

Print Agent uses dots as the measurement unit with the $fieldy variable. The size of a dot
varies based on your printer configuration file.

$file (Current File Name)


Format
@$file

To refer to the file name of the currently active transaction file, insert $file as a variable in the
data stream.
For example, if the path and file name of the transaction file is c:\data\forms.dat, and you
insert this data in the data stream:
The name of this file is @$file.

Print Agent processes the substitution variable as:


The name of this file is forms

Print Agent returns the file name only, excluding the file name extension.
For returning the path and file name, see $ffile (Current Path and File Name) on page 286.

$page (Current Page Number)


Format
@$page

To refer to the number of the current page, insert $page as a variable in the data stream.
For example, if the current page is the sixth page printed and you insert this data in the data
stream:
This is page @$page..

Print Agent processes the substitution variable as:


This is page 6.

Note that this is the output page number, not the current template page number. If you print a
single page template eight times, a $page field on the template would show 1 for the first
template, 2 for the second, and so on.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

288

$printablebottomy (Bottom of Printable Area)


Format
@$printablebottomy

To refer to the bottom of the printable area of the page, insert $printablebottomy as a variable
in the data stream.
For example, to move to a position at the bottom of the printable area and 600 dots from the left
edge of the page, insert this command into the data stream:
^position 600 @$printablebottomy

$printableleftx (Left Limit of Printable Area)


Format
@$printableleftx

To refer to the left limit of the printable area of the page, insert $printableleftx as a variable in
the data stream.
For example, to move to a position at the left edge of the printable area and 900 dots from the
top edge of the page, insert this command into the data stream:
^position @$printableleftx 900

$printablerightx (Right Limit of Printable Area)


Format
@$printablerightx

To refer to the right limit of the printable area of the page, insert $printablerightx as a variable
in the data stream.
For example, to move to a position at the right edge of the printable area and 900 dots from the
top edge of the page, insert this command into the data stream:
^position @$printablerightx 900

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

289

$printabletopy (Top of Printable Area)


Format
@$printabletopy

To refer to the top of the printable area of the page, insert $printabletopy as a variable in the
data stream.
For example, to move to a position at the top of the printable area and 600 dots from the left
edge of the page, insert this command into the data stream:
^position 600 @$printabletopy

$time (Current Time)


Format
@$timen

To refer to the current time, insert $time as a variable in the data stream. n is the number of
the format the time appears in.
The time Print Agent uses is the time at which the current job starts. If you start Print Agent at
7:58, but the document prints at 8:03, the time Print Agent uses is 7:58.
$timen may be one of the following formats:
Time Format

Output Format

Example

$time1

hhmmss

155256

$time2

hh:mm:ss

15:52:56

$time3

hhmmssss

15525600

$time4

hh:mm:ss.ss

15:52:56.00

$time5

hh:mm

15:52

$time6

hh:mm:ss xx

03:52:56 PM

$time7

hh:mm xx

03:52 PM

Note that values for $time1 to $time5 show the time in 24 hour format, while the formats in
$time6 and $time7 indicate AM or PM.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

290

For example, if the current time is 4:45 PM, and you insert this data in the data stream:
The time is @$time6..

Print Agent processes the substitution variable as:


The time is 04:45:00 PM.

When you do not specify a value for n, Print Agent uses the default compiled into the template.

fieldname (Global Field)


Format
@fieldname

To replace a variable with the contents of a global field on the template, insert the name of the
global field as the variable.
For example, if your data stream contains:
^global name
Pat
^global surname
Brown
^global mail
31 January 2000
^field field1
A letter to @name. @surname. sent on @mail..

Print Agent processes field1 as:


A letter to Pat Brown sent on 31 January 2000.

{[dictionary-name]:}variable-name (Retrieve Variables from


Dictionary)
Format
@{[dictionary-name]:}variable-name

To retrieve variables from a dictionary, insert the name of the dictionary and the variable name
as the variable. Follow the dictionary name by a colon to separate it from the variable name.
When a colon is supplied without a dictionary name, then the default dictionary is User.
The dictionaries are:

DocVar

Global

User

Environment

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Group

Sys

Command Reference

291

For a complete description of the Print Agent Dictionaries, see page 57.
You create a dictionary variable with the ^define command (see page 180).
For example, if your data stream contains:
^define name
Pat
^define surname
Brown
^define mail
31 January 2000
^field field1
A letter to \b.@:name. @:surname.\b0. sent on @:mail..

Print Agent processes field1 as:


A letter to Pat Brown sent on 31 January 2000.

Special Variables
Print Agent recognizes a number of special variables. These variables enable you to include
reserved characters in your data:
Special
Variable

Reserved
Character

Description

@at

at sign

@cr

<cr>

carriage return

@lf

lf

line feed

@qu

"

quotation mark

@sm

semicolon

@tb

<tab>

tab

For example, to include the @ character in the data, use the special variable @at.
@at.Adobe.com

writes @Adobe.com to the output.


Note: Print Agent special variable names should not be used as field names in Output
Designer. If a template contains a special variable name as a field name, the data
supplied for the field will not print; instead, the reserved character that is represented by
the special variable name will print.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

292

CALCULATION EXPRESSIONS
Calculation expressions allow you to add computations to your output. A calculation expression
can occur anywhere in the data stream or in the actions for an event. For example, you can use
a calculation as the data for a ^field command (see page 188), or with the fieldname!Format
event (see page 313) and Inline Text Control processing enabled using either ^inline on (see
page 199) or -aitcon (see page 88).
Typically, calculation expressions use substitution variables. If you operate with variable
substitution set off, you can enable this feature using the -avson command line option (see
page 129).
The format of the calculation expression is:
@(expression).

where expression can be comprised of any number of variables, operators, and functions,
with the entire construct enclosed in parentheses. For example,
@(@MyCount. + 1).

Variables within the expression are of the format:


@fieldname.

where fieldname is a field name from the data stream.


Each variable must end with a delimiter. Valid delimiters are:

. (period). This is the delimiter used in the examples in this section of the manual.

Any of the substitution delimiters specified in the Print Agent configuration file. By default,
these substitution delimiters are:
, + - * ( ) < > { }~| / \ ' ` " ^ @ ;

Space.

Formatting Calculated Values


You can control the number of decimals that Print Agent will display for a calculated value. The
default number of decimals is four. The syntax is:
@([format]expression).

Note: The square brackets enclosing the format value are mandatory.
For example, these calculation expressions format the results to two decimal places:
@([2]@Price. * @Qty.).
@([2]round(@Tax.,4)*1.08).

Note that although the second example specifies to round the result to four decimal places, the
format value causes the result to display with two decimal places.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

293

In the absence of a formatting value in the calculation, the default number of decimal places is
four. For example, if the expression:
@(sqrt(@MySum. + @ThisAmount.)).

produces the result:


35.12832614

it appears in the output as:


35.1283.

When no format value is specified, trailing zeros are truncated. For example:

58.000 appears in the output as 58

58.6300 appears in the output as 58.63

Literal Numbers
An expression may contain literal numbers. A number may have a decimal point, with or without
any digits following. The decimal point must be a . (period). The number may have a leading
- (minus sign) indicating a negative value, and may have leading or trailing zeroes. However, a
number must not have a leading currency symbol, or embedded commas or spaces. These are
examples of valid numbers:
2
2.00
-.999
-0.123

Literal Strings
Any text enclosed in double quotation marks ("...") is a literal text string. For example:
"hello"
"

This string has spaces in it.

"

When using a literal string, keep these considerations in mind:

A string containing a valid number may be used in a context where a number may be used.
The string is automatically converted to a number. For example:

The string "-0.999" is interpreted as a number.

For the string, "The amount is 45 dollars", the number is part of the string. If this
string is in an arithmetic expression, it is converted to zero, since the first character of the
string is non-numeric.

For the string "45 dollars is the amount", 45 is interpreted as a number and the
rest of the string is ignored.

For a literal string containing a substitution variable, for example, "@Sum.", Print Agent will
perform the substitution.

A literal string cannot contain the double quotation mark character or a newline character.

Use the string "" to represent a literal null string.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

294

Variables
Variable references are of the format:
@variablename.

The value of a variable is substituted into the expression before the expression is evaluated.
Variable names must not include the characters @ (at) or . (period). For example:
@customer_number.
@x.

When you specify a variable, do so with these considerations in mind:

Every variable belongs to a dictionary. You can refer to a variable using its fully qualified
name in the format dictionary:variable. If you do not supply a dictionary name, Print Agent
assumes the variable is in the global dictionary.

Print Agent has predefined variables that begin with the character $ (dollar sign), such as
$date and $time. You can reference these as @$date. or @$time.

Print Agent substitutes values for variables in an expression from right to left. This makes
possible a simple form of subscripting using nested variable references. For example:
@Item@N..

If N is 3, then Print Agent performs the substitution for @Item3.

An expression may make reference to a non-existent variable. If the variable has not
previously been assigned a value, Print Agent issues a warning message and no
substitution takes place. The variable reference remains in the expression, complete with
@ (at) and . (period).

Operators
There are three groups of operators for performing arithmetic, comparison, and Boolean
operations.
Arithmetic operators act only on numbers. If one of the operands is a string, an attempt is made
to interpret it as a number, with the same automatic conversion considerations that apply to
literal numbers. If it can not be interpreted as a number, then Print Agent treats it as the number
zero. For example:

2 * "8" returns 16

2 * "apple" returns 0

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

295

Arithmetic Operators
Operator

Description

Adds the operands.

Subtracts the second operand from the first operand.


A - placed in front of an expression will negate the expression (unary minus).
Do not use two consecutive - (minus sign) characters. Use caution when placing
a unary minus in front of a variable; if the variable contains a negative number, the
result is two - characters. Instead, place brackets around the variable, for
example:
-(@x.)

Multiplies the first operand by the second operand.

Divides the first operand by the second operand. If the second operand has an
absolute value less than .000001, Print Agent generates an error message and
leaves the expression unresolved.

Raises the first operand to the power of the second operand. If the first operand is
negative, the second must be an integer. If the first operator is zero, the second
must be greater than zero. If either of these conditions is not met, Print Agent
generates an error message and leaves the expression unresolved.

Comparison operators act on strings or numbers. When comparing strings, the comparison is
based on the symbol set encoding the strings. For example, if the strings are in ASCII, then the
string ab is less than ac and more than Ab. A shorter string may be considered less than a
longer one. For example, a is less than aa; however, b is not less than abc.
All comparison operators return a result of 1 when the comparison is TRUE and 0 when the
comparison is FALSE.
Case-Sensitive Comparison Operators
Operator

Description

==

Tests whether its operands are equal.

!=

Tests whether its operands are not equal.

>

Tests whether the first operand is greater than (but not equal to) the second
operand.

<

Tests whether the first operand is less than (but not equal to) the second operand.

>=

Tests whether the first operand is greater than or equal to the second operand.

<=

Tests whether the first operand is less than or equal to the second operand.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

296

The case-insensitive comparison operators perform the same tests as the case- sensitive
comparison operators, but ignore case differences. These operators require both operands to
be strings. The case-insensitive version of == is ^=. For all other comparison operators,
prefix the comparison operator with a ^ (caret). For example, the case-insensitive version of
>= is ^>=. Note that case-insensitive comparisons are valid across all platforms only for
non-accented letters in the English alphabet.
Boolean operators perform Boolean arithmetic on operands that are either TRUE or FALSE,
returning a result that is either TRUE or FALSE. If an operand is a number and is non-zero, it is
considered TRUE. All other operands are considered FALSE. The result of a Boolean operation
is always 1 (TRUE) or 0 (FALSE).
Boolean Operators
Operator
&&

Description
Computes the logical AND of its operands.

||

Computes the logical OR of its operands.

Order of Evaluation
You can explicitly determine the order of evaluation by enclosing portions of an expression in
round brackets. For example, Print Agent evaluates:
1+((5+4)/3)

by adding 5 and 4, then dividing the result by 3, then adding 1, resulting in 4.


In the absence of brackets, the precedence of the operators determines the order of evaluation.
From highest precedence to lowest precedence, the order is:

==

!=

&&

|| (In most circumstances these operators require brackets.)

>

<

>=

<=

^=

^!=

^>

^<

^>=

^<=

Caution: In the above list, all operators on the same line have the same precedence. This
may create problems if an expression contains multiple operators. In general, it is
safer to use round brackets, rather than operators, to determine the order of
evaluation.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

297

Numeric Limits
Calculations are carried out in the internal floating-point format of the computer. This imposes
limits on the precision and numeric range of calculations. These limits vary from one computer
to another, however the platforms on which Print Agent runs support at least 15 significant
digits. Those 15 digits can be entirely in front of the decimal place (largest number
999999999999999), entirely after the decimal place (smallest number 0.000000000000001), or
can be a mix, with some digits in front of and some digits behind the decimal place.
There are two exceptions that can occur as a result of a calculation:

the result of a calculation is too close to zero to represent in the internal floating-point format.
This is an arithmetic underflow. Print Agent ignores underflow and sets the result of the
calculation to zero.

the result of a calculation is too far from zero (positive or negative) to represent in the
internal floating-point format. This is an arithmetic overflow. An error message is generated
and the expression is left unresolved.

Functions
Print Agent supports a number of functions that are available inside expressions. Note that all
string values included in a functions expression must be enclosed in (quotation marks). It
may also be advisable to enclose field names in quotation marks, if you are uncertain whether
the data will contain a value for the field. When using quotation marks, be aware of the double
quoting issue. If the quoted value expands to a value which is itself quoted, unexpected results
may occur.
Caution: All functions produce numbers in a format governed by the currency decimal
separator character. If these numbers are to be printed using a picture clause, the
incoming decimal separator character must match the number being formatted.
Therefore, when using the combination of functions and picture clauses, the decimal
separator character must match the incoming decimal separator character.
For details about the decimal separator and the incoming decimal separator
characters, see the -acu option arguments cd (Decimal Separator) on page 72 and
cid (Incoming Decimal Separator) on page 73.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

298

Functions
Function

Description

Abs(n1)

Returns the absolute value of the number, n1.


For example, @(Abs(-1.03)). returns 1.03.

Chssgn(n1)

Performs one of two operations:

Changes a negative number, n1, to a positive number

OR...

Changes a positive number, n1, to a negative number

For example, @(Chssgn(1.03)). returns -1.03.


CtoN("d", "s1")

Converts a character string to a number. It removes all the non-digit


characters from the string, except the decimal character, before converting
the string to a number. This is important when trying to do computations on
numbers which are formatted with a picture clause (for example,
currencies).
d is the decimal character. If "" is supplied, the decimal character is
assumed to be a dot. s1 is the string to be converted.
For example, @(CtoN(",","1.234.567,89")). results in the number
1234567.89.

Note: Once you convert a currency to a number, you can perform arithmetic calculations on
it. When finished with the calculations, you will likely want to use a picture clause to
reformat it as a currency.
For backwards compatibility, you can specify d as td, where t is the thousands
separator (default is comma), and d is the decimal character. Note that the thousands
separator character is actually irrelevant to the operation of the CtoN function.
Floor(n1)

Returns the largest integer that is less than or equal to the specified value,
n1.
For example, @(Floor(8.99)). returns 8, and @(Floor(-3.25)).
returns -4.

Frac(n1)

Returns the fractional part of the specified value, n1, with the same sign.
For example, @(Frac(2.3)). returns 0.3 and @(Frac(-3.25)).
returns -0.25.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

299

Function

Description

If(e1,s1,s2)

Returns a value based on whether the specified expression, e1, is


evaluated as true or false. s1 is the value returned if the expression e1
is evaluated as TRUE. s2 is the value returned if the expression e1 is
evaluated as FALSE. The expression is considered TRUE if it evaluates to
a non-zero (positive or negative) value. If it evaluates to zero, then the
expression is considered FALSE.
For example, for the field DISCOUNT, @(If(@FIELDA.>100,.10,.05)).
calculates DISCOUNT as 10% if FIELDA is greater than 100, otherwise it
sets the DISCOUNT to 5%.
The If function can be used to vary the calculation, depending on the value
of other global fields.
Use caution with the If function when combining strings and numbers.
When the expression contains a mixture of strings and numbers, the strings
are converted to the number zero. This may or may not produce the
expected result.
When using the If function, remember that it, as well as all other functions,
require that string literals included in a functions expression be enclosed in
(quotation marks).
Therefore:
@(If(@global:IcfName.==PDF,"PDF","OTHER")).

should be expressed as:


@(If("@global:IcfName."=="PDF","PDF","OTHER")).

However, there is an additional consideration with the If function. If the


string value itself contains quotation marks OR if the expression expands to
a string that contains quotation marks, than the string must be surrounded
with additional characters. The string must start with the characters '[{(<
(single quote, opening square bracket, opening brace bracket, opening
parenthesis, less than sign) and end with the characters >)}]' (greater than
sign, closing parenthesis, closing brace bracket, closing square bracket,
single quote. For example, if the first string in the above expression
expands to a string containing quotation marks, then the string should be
expressed as:
@(If('[{(<@global:IcfName.>)}]'=="PDF","PDF","OTHER")).

If3(e1,s1,s2,s3)

Returns a value based on whether the specified expression, e1, is


evaluated as less than zero, equal to zero or greater than zero. s1 is the
value returned if the expression e1 is evaluated as less than zero. s2 is
the value returned if the expression e1 is evaluated as equal to zero.
s3 is the value returned if the expression e1 is evaluated as greater than
zero.
For example, @(If3(@JF01.,"Red","Blue","Green")). returns
Green if the value in the global field JF01 is 1.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

Function

Description

Int(n1)

Returns the integer part of the specified value, n1, with the same sign.

300

For example, @(Int(14.999)). returns 14 and @(Int(-3.25)).


returns -3.
IsNeg(e1)

Returns TRUE (1) if the expression, e1, evaluates to a negative number;


otherwise, it returns FALSE (0).
For example, @(IsNeg(-28)). returns 1 and @(IsNeg("Hello")).
returns 0.

IsPos(e1)

Returns TRUE (1) if the expression, e1, evaluates to a positive number,


greater than zero; otherwise, it returns FALSE (0). When e1 is a string or is
blank, the function always returns FALSE.
For example, @(IsPos(3*5)). returns 1 and @(IsPos("Hello")).
returns 0.

IsZero(e1)

Returns TRUE (1) if the expression, e1, evaluates to zero; otherwise, it


returns FALSE (0). When e1 is a string or is blank, the function always
returns TRUE.
For example, @(IsZero(0)). returns 1, @(IsZero(1+((5+4)/3))).
returns 0, and @(IsZero("@Fred")). returns 1.

Lower(s1)

Returns a string where all uppercase characters are converted to


lowercase. s1 is the string to be converted.
For example, @(Lower("ABC")). returns "abc", and
@(Lower("Abc123X")). returns "abc123x".

Length(s1)

Returns the length of a string, s1, in bytes.


For example, @(Length("Abc")). returns 3 and
@(Length("@JF01.")). returns 3 (where global field JF01 has the
value Abc).

Ltrim(s1)

Returns a string with all leading blanks removed. s1 is the string to be


evaluated.
For example, @(Ltrim(" ABC")). returns "ABC" and @(Ltrim("
XY ABC")). returns "XY ABC".

mod(n1,n2)

Returns the remainder from a division of two numeric values. n1 is the


dividend. n2 is the divisor.
For example, @(Mod(64,2)). returns 0, because the division does not
result in a remainder. @(Mod(17,5)). returns 2, because 17/5 gives a
result of 3 with a remainder of 2.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

301

Function

Description

pic

Returns picture formatting for a data string. The syntax and capabilities are
similar to \pic, but it is done as a calculation. This means its results can be
fed into another calculation, or made subject to further formatting.
For example, to output a date format in upper case characters:
@(upper("@(pic("dateDDDD, MMMM DD, YYYY", "11202001"))")).
returns:
TUESDAY, NOVEMBER 20, 2001

In this example:

Pow(n1,n2)

The quotes around 11202001 are required, because the @pic only
formats a string, not a number. You can make any number into a string
by enclosing it in quotes. The date pictures expect input in the form
mmddyyyy or mmddyy.

The quotes around @(pic("dateDDDD, MMMM DD, YYYY",


"11202001")) are required to turn the result, Tuesday, November 20,
2001, into a single argument to @(upper( )).

Returns the result of a number, n1, raised to a power, n2.


For example, @(Pow(2,3)). returns 8 and @(Pow(@TOTAL.,2)).
returns 49 if the value of the global field TOTAL is 7.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

302

Function

Description

Round(n1,n2)

Returns a number rounded to a specified number of decimal places. n1 is


the number to be evaluated. n2 specifies the number of decimal places to
round to, to a maximum of 6 decimal places. n2 must be an integer. A
negative value for n2 specifies places to the left of the decimal point. A
positive value for n2 specified places to the right of the decimal point.
For example:

@(Round(33.2349,3)). returns 33.235

@(Round(20/3,2)). returns 6.67

@(Round(-1,3)). returns -1

@(Round(@TOTAL.,2)). returns 2.33 if the value of the global field


TOTAL is 2.3333

@([2]Round(@_$_.,3)). rounds the value in the current field to 3


decimal places and displays 2 decimal places

@([5]Round(@Amount.,6)). rounds the value in the field Amount to


6 decimal places and displays 5 decimal places

The Round function does not determine the number of decimal places that
will be returned in an entire expression. It simply rounds to the specified
number of decimals as part of an intermediate calculation. The default
number of decimal places that will be displayed is four. This value is
overridden in the last two examples above with the [n] construct. To
specify the number of decimals to display, see Formatting Calculated
Values on page 292.
Note: The arguments passed to the Round function, that is, the text
enclosed in parentheses, should not include spaces.
Rtrim(s1)

Returns a string with all trailing blanks removed. s1 is the string to be


evaluated. It must be a string and must be enclosed in quotation marks.
For example, @(Rtrim("ABC
")). returns "ABC" and
@(Rtrim("XYZ ABC
")) returns "XYZ ABC".

Sqrt(n1)

Returns the square root of a given number, n1.


For example, @(Sqrt(4)). returns 2 and @(Sqrt(100)). returns 10.
If n1 is negative, Print Agent generates an error message and the
expression is left unresolved.

Substr(s1,n1,n2) Extracts a portion of a specified string. s1 is the string to be evaluated. This


can also be the name of global field within quotes, as in @JF01. n1 is the
character position in string s1 (that is, the number of characters from the left
of s1) that signifies the start of the portion to be extracted. n2 is the number
of characters to extract.
For example, @(Substr("ABCDEFG",3,4)). returns "CDEF" and
@(Substr("abcdefghi",5,3)). returns "efg".

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Command Reference

Function

Description

Upper(s1)

Returns a string where all lowercase characters are converted to


uppercase. s1 is the string to be converted.

303

For example, @(Upper("abc")). returns "ABC" and


@(Upper("AbcdE")). returns "ABCDE".
The following examples show the results obtained by applying different functions to the same
calculation variable. The examples use the calculation variable:
@(@MySum. + @ThisAmount.).

which returns the value:


1234.5678

Function

Calculation Variable Syntax

Result

Abs

@(Abs(@MySum. + @ThisAmount.)).

1234.5678

Floor

@(Floor(@MySum. + @ThisAmount.)).

1234

Frac

@(Frac(@MySum. + @ThisAmount.)).

0.5678

Int

@(Int(@MySum. + @ThisAmount.)).

1234

Round

@(Round(@MySum. + @ThisAmount.,2)).
@(Round(@MySum. + @ThisAmount.,-2)).

1234.57
1200

Sqrt

@(Sqrt(@MySum. + @ThisAmount.)).

35.1283

Symbol Set Translation Tables


The same symbol may be encoded in different ways on different computers, or even within
different files on the same computer. For example, Windows and MS-DOS use different
numeric codes for the character (ucircumflex) even though they are parts of a single product.
Similarly, different printers, and different fonts within the same printer, may use different
encodings for the same character or symbol.
An encoding system is called a symbol set. The symbol set used in the data file is called the
data symbol set. Print Agent translates from the data symbol set into the symbol set required for
the output font and device. You specify the data symbol set by using:

FieldSymbolSet=xx in the Print Agent configuration file, jfmerge.ini.

The command line option -ass (see page 117).

The data command ^symbolset (see page 222).

At installation, the value of FieldSymbolSet is 2, corresponding to IBM PC-850.


Print Agent attempts to translate between symbol sets using internal translation tables for
known symbol sets. These translation tables are in a file called jetkeys.ini. If it does not know
the translation, the default translation is none.

Symbol Set Translations


You can override a symbol set translation by providing exceptions in a translation file. For each
translation table to be overridden, there is a section in the translation file. The default translation
file for symbol sets is jetkeys.ini, which, by default, is located in
C:\Program Files\Adobe\Central\Server\. The name of the translation file can be specified in
the Print Agent configuration file, jfmerge.ini using the entry TranslationTable. It can also be
specified using the -att command line option (see page 125).
You can add entries in the jetkeys.ini file to create a translation between a user defined symbol
set and any other symbol set. The translation can be given directly in the jetkeys.ini file, or
included in an external file which is referenced in the jetkeys.ini file.
This is an example of a simple jetkeys.ini file. The translations for the overrides for the Euro
symbolset are given directly in the file, but the Roman-8 to Unicode UCS-2 and vice versa
translations are given in external files. Any given translation can use either method.
;
; Overrides Symbolset (Euro)
;
[Translate 120 to 102]
DefaultChar=0x0001
0x65=0x20AC

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Symbol Set Translation Tables

305

[Translate 102 to 120]


DefaultChar=0x0001
0x20AC=0x65
0x65=0x65
;
;Roman-8 to Unicode UCS-2 and vice versa.
;
[Translate 0 to 102]
DefaultChar=0x0020
Tablefile=.\unitable\rom8u2tb
[Translate 102 to 0]
DefaultChar=0x20
Tablefile=.\unitable\u2rom8tb

The lines reading 0x20AC=0x65 and so on specify a character code in the source symbol set
before the equals sign, and the corresponding character code in the destination symbol set
after it. DefaultChar supplies a default translation for any characters in the source symbol set
that are not otherwise specified. Tablefile is the name of a file which contains the desired
character code mapping. Specify the Tablefile file name relative to the location of
jetkeys.ini.
Within a translation table, and in the Default value, you can specify character codes in decimal
or hexadecimal. Hexadecimal numbers must start with the digit zero followed by the letter X and
then the hexadecimal digits, for example 0x9f. Hexadecimal numbers do not distinguish
between upper and lower case.
When creating the translation tables:

You can specify a range in the Source Code field. For example:
128-255=255

converts the upper half of a single byte character set to character 255. This can lead to a
more compact table, and is important for double-byte character sets where specifying all the
characters individually would be impractical.

You can specify an offset in the Destination Code field. For example,
128-150=+100

converts characters from 128 through 150 to 228 through 250 respectively, and
200-250=-50

converts characters 200 through 250 to 150 through 200 respectively. This is also a
requirement for handling large (i.e. double-byte) character sets, and leads to a more
compact table.

Intelligent Pagination
Intelligent pagination provides greater flexibility for Print Agent processing, enabling you to
create events for a template page, and to make these events active at the appropriate time.
Intelligent pagination can apply to either static or dynamic templates. For example, when you
use dynamic templates with intelligent pagination, Print Agent ensures that your subform fits in
the remaining printable area on the page. When there is insufficient space, it takes the
appropriate action to complete the page and place the subform at the top of the next page. To
use intelligent pagination, Print Agent enables you to define variables using the Group
dictionary, described in the next section.
When you use intelligent pagination, your data must be in either Central field-nominated format
or XML format. If your data is in another supported format, the Central Transformation Agent
module is available to convert the data to Central field-nominated format.
Intelligent pagination (see page 256) uses both the Dynamic Merge command, ^define (see
page 180), and a set of commands called Intelligent Pagination commands. Dynamic templates
created with version 5.2 and later of Output Designer include the Intelligent Pagination
commands. Output Designer automatically adds the appropriate commands to the template
during the compile process. The commands are contained within two custom document
variables, JFPREAMBLE and JFPREAMBLE_1, which Print Agent processes before the
contents of the data stream. To view these document variables for a template, from the Output
Designer Format menu, click Template Preamble.
When using intelligent pagination with static templates or with dynamic templates created with
versions of Output Designer prior to 5.2, the template designer must create a preamble file for
the template that contains the appropriate commands. In the template design process, the
template designer understands the users requirements for the template, and can best
determine how to structure the template pages to meet the users needs, and best incorporate
intelligent pagination. Print Agent reads the preamble file before any commands in the data
stream. In addition, for Print Agent to execute these commands, you must activate inline
commands processing using either:

The -aitcon option (see page 88) on the command line

The ^inline on command (see page 199) within the data stream or a preamble file

Caution:

You cannot execute a preamble using a \form command. A typical preamble makes
use of Dynamic Merge commands (^define, ^group, etc) and you cannot execute
Dynamic Merge commands in inline mode. You can use a \form command within a
preamble, but if the form being loaded contains an internal preamble any Dynamic
Merge commands in that preamble will not be executed.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

307

Considerations When Changing the Inline Text Control Command


Prefix Character
Output Designer uses the default inline text control prefix character (the backslash \ character)
in its internal auto-generated preamble. You should not attempt to change this character on the
command line using the -apci command line option or in the data file using the ^prefix inline
command if an internal auto-generated preamble is used. This is because the backslash
character is used in inline processing during Print Agent execution. The commands in the
internal auto-generated preamble must be executed using the same reserved character that is
defined in the Group Dictionary.
The -apci command line option or the ^prefix inline command can only be used to change the
default inline text control prefix character to another character in the following cases:

When a static form is being used.

When an external preamble is being used with a dynamic form file.

When an internal preamble that was not auto-generated by Output Designer is being used.

If you must pass the reserved inline text control prefix character in the data file with a dynamic
form that contains an internal auto-generated preamble, the only other way to make this work
would be to change the reserved character in the data file to some other character and then
change it back again once the inline commands have been executed. This can be done by
using Transformation Agent to change the reserved character and then using the JetKeys.ini
file to remap the character back to the reserved character before the data is written to the
output file.

DEFINING GROUPS AND EVENTS


To use intelligent pagination, you define your solution using groups and events. A group is a
logical collection of information on a page or subform; it may contain any combination of text,
graphics, or fields. For example, a purchase order detail line may contain boilerplate graphics
for the detail line outline and the fields for the item, description, units, price and so on.
An event is a condition that occurs while Print Agent is processing the data. Events can occur
for groups, and also for individual fields. Print Agent calls the group event handler or field event
handler when it encounters the condition for the specified group or field and event. Intelligent
Pagination commands associated with the group event or field event define the actions
performed when the event handler is called. An example of a group event is running out of
space on the bottom of the page. An example of a field event is when the specified field does
not exist on the current template page or subform. Actions associated with the groups and
events tell Print Agent how to react to the conditions that affect the progression of data down
the page. Groups and events within Print Agent provide:

Automatic pagination to occur when the page is filled, by performing


end-of-page/start-of-page functions (see page 318) such as footers and headers.

An easier way to activate subforms without explicit coding of ^page (see page 205) and
^subform (see page 221) commands mixed with the data.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

308

Using Group Names That Start With !


If your group name (not just the event name, but the whole group name) starts with !, then the
Print Agent will not perceive it as a potential group context change. It will just execute it and
leave the current group context alone. Everything up to the first ! is considered the group
context name. If the group:dictionary entry name starts with !, there is effectively no group
context name and hence no group context switch is possible. This ensures that group !OnExit
and !OnEnter events will not be triggered accidentally.

THE GROUP DICTIONARY


To define the group events and field events for processing a data stream, Print Agent uses the
Group dictionary. Dictionaries in Print Agent enable you to create variables that you can retrieve
at any time during processing. In the Group dictionary, you can include all the information for
defining and implementing group or field events.
You define group and field events in the Group dictionary using the ^define command in the
format:
^define group:[groupname][!eventhandler] \action[\action...].

The ^define command assigns a value to a variable that remains set until Print Agent
encounters:

A ^define command that specifies a new value or no value.

A ^undefine command.

A \defineresolve command.

The end of the Print Agent session.

group: specifies the Group dictionary, where Print Agent will store the variable. Note that the
: (colon) is the separator between the dictionary name and the variable name.
[groupname][!eventhandler] identifies the variable name within the Group dictionary, and
an associated event handler. When the specified event occurs or the event is explicitly called,
Print Agent looks for a variable in this form in the Group dictionary. If it finds the variable, Print
Agent inserts the actions for the group or group and event into the data stream for execution by
the command processor. (For calling events, see ^group (Execute Specified Group) on
page 198 and \group (Execute Specified Group) on page 266.
groupname may be a field in the template design, or a meaningful name that describes the
section, often derived from the subform name. Note that groupname may also be empty.
!eventhandler identifies the event that is being handled. For example, !FldUsed,
!FieldNotAvail, !OnOverflow, !OnBOF.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

309

\action[\action...]. specifies one or more Intelligent Pagination commands (see


page 256) that instruct Print Agent which actions to take for this event. It can also include Inline
Text Control commands and it may include text to lay down on the template. However, it must
never include Dynamic Merge commands. The period at the end of the sequence indicates the
end of the Intelligent Pagination command mode.

GROUP EVENT HANDLERS


The event handlers that can occur for a group are:

!DuplexBack

!DuplexFront

!FldNotAvail

!FldUsed

!OnBOF

!OnEntry

!OnExit

!OnTOF

!Simplex

JfEndData!EndData

groupname!DuplexBack (At Duplex Page Back)


This event occurs only as a result of a \checksurface command. When a groups actions
include a \checksurface command, it causes Print Agent to detect the current type of print
surface being printed. When Print Agent is operating in duplex mode and the current print
surface is a page back, the groups !DuplexBack event is executed.

groupname!DuplexFront (At Duplex Page Front)


This event occurs only as a result of a \checksurface command. When a groups actions
include a \checksurface command, it causes Print Agent to detect the current type of print
surface being printed. When Print Agent is operating in duplex mode and the current print
surface is a page front, the groups !DuplexFront event is executed.

groupname!FldNotAvail (Field Not Available)


This event occurs when the data stream instructs Print Agent to position to a field that does not
exist on the current template page or subform. Only the field list from a single page or subform
is available to Print Agent at any one time. For example, a ^field ITEM command in the data

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

310

stream, where the field named ITEM is not on the current subform or template page, causes the
event to occur. You specify the event as:
^define group:PODETAIL!FldNotAvail \page3\fieldTOTAL.

In this example, the group event activates page 3 when Print Agent encounters a field in the
data stream that is not on the current template page or subform. Processing proceeds with
\fieldTOTAL on page 3.
This group event also occurs when data runs off the end of the current field list. This happens
when you use nonspecific field commands or when the data stream contains extra lines of data
without ^field commands.
When you also define a field event handler for fieldname!FldNotAvail for a field, then this event
also executes when Print Agent encounters fieldname in the data stream and it does not exist
on the current template page or subform. When you define both a group and field event, the
field event fieldname!FldNotAvail executes before the group event handler
groupname!FldNotAvail.

groupname!FldUsed (Field Used)


This event occurs when you call for a field name within the group, but the field is already filled
with data. This is useful for detecting when the group is full, and a new instance of the group
should start.
The advantage of invoking a group in this way is that any field within the group can activate the
event. Note that you should have Print Agent process all fields for the current group prior to
calling the field again.
For example, a group containing fields named A, B and C is filled before a new group starts with
the next instance of field A.
^define group:POHEADER!FldUsed \action\action.
^field A
sampledata
^field B
sampledata
^field C
sampledata
^field A
moredata - start of second group

In the following example, the data for field C is placed in the second group:
^field A
sampledata
^field B
sampledata
^field A
moredata - start of second group
^field C
sampledata

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

311

groupname!OnBOF (At Bottom of Page)


This event occurs only as a result of a \reserve command. A groups actions must include a
\reserve command that specifies the amount of vertical space the group, such as a subform,
requires to print. When there is not enough space within the printable area on the page to print
the group, the !OnBOF event executes.

groupname!OnEntry (At Activation of Group)


This event handler occurs as a result of the activation of a group named in the Group dictionary.
When an !OnEntry event handler exists for a group, Print Agent executes the actions for this
event handler the first time it activates the group, that is, at a change of groups, with these
considerations:

When you define actions for a group and also for events associated with the same group,
such as:
^define group:PODETAIL \action\action.
^define group:PODETAIL!OnEntry \action\action.

when Print Agent activates the group PODETAIL, it performs the actions for
group:PODETAIL!OnEntry before the actions for group:PODETAIL.

When you activate a group using ^group or \group and the group is not defined, then an
!OnEntry event handler associated with the group is not executed. For example, if the data
stream includes the command:
^define group:PODETAIL!OnEntry \action\action.

then an action of \groupPODETAIL specified for some other group event does not cause
the group:PODETAIL!OnEntry to execute, since a ^define command does not exist for
the named event handler group:PODETAIL.
Note: Defining a group action as is equivalent to not defining it at all. Instead of:
^define group:PODETAIL ""

use:
^define group:PODETAIL "\."

with a backslash and a period between the quotation marks.

When you activate a group and an !OnEntry event handler is not defined for the group, then
only the actions for the defined group execute.

groupname!OnExit (At Exit Current Group)


This event occurs just prior to exiting the current group, as a result of a \group command. The
actions for an !OnExit event are also executed as a result of reaching the end of the data
stream, because the end of the data stream means an implicit JFEndData group was entered.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

312

groupname!OnTOF (At Top of Page)


The actions for this event execute when Print Agent starts a new page while in the named
groups context.

groupname!Simplex (At Simplex Mode)


This event occurs only as a result of a \checksurface command. When a groups actions
include a \checksurface command, it causes Print Agent to detect the current type of print
surface being printed. When Print Agent is operating in simplex mode, \checksurface will
cause the current groups !Simplex event to be executed.

JfEndData!EndData (End Data Processing)


Print Agent will trigger the JfEndData!EndData event as the last event before processing for the
transaction file finishes. When there is an entry in the Group dictionary defined for
JfEndData!OnEntry and/or JfEndData!EndData, Print Agent automatically executes the events
as though the last line of the data stream contained the command: ^group JfEndData!EndData.
Standard events processing occurs:

Executing the !OnExit event for the current group.

Executing the event, JfEndData!OnEntry, if appropriate.

Executing the event, JfEndData!EndData.

When no entry exists in the Group dictionary for JfEndData, the event is ignored. The exception
is when executing the !OnExit event for the current group. It does move into group JfEndData,
and therefore, does make you exit the current group.

FIELD EVENT HANDLERS


Field events occur for a field, and are also defined in the Group dictionary. Field event handlers
include:

!FldNotAvail

!FldUsed

!Format

!OnOverflow

!OnEntry

!OnExit

!OnTOF

!OnBOF

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

313

The !OnEntry field level event handler is similar to the group level !OnEntry, but may be
triggered implicitly by data overflowing from one field into another, in some reformat modes.
The !OnExit field level event handler is similar to the group level !OnExit, but occurs when
exiting a field instead of a group. The !OnTOF and !OnBOF field level event handlers are
functionally the same as the group level event handlers of the same name.
This section describes !FldUsed, !Format, !OnOverflow, and !FldNotAvail event handlers.

fieldname!FldUsed (Field Used)


This event occurs when Print Agent encounters a field in the data stream that is already filled
with data in the current subform. This event is useful for initiating the start of a new instance of
a group.
For example, in the following data stream, the fields named A, B, and C fill a subform. At each
occurrence of field A, a new subform starts.
^define group:A!FldUsed \subform3\fieldA.
^field A
sampledata
^field B
sampledata
^field C
sampledata
^field A
moredata

The first occurrence of field A is filled with the data sampledata. When Print Agent reads the
second occurrence of the command ^field A, the !FldUsed event handler for field A
executes. Note that when the event handler starts to execute, the pen is still positioned in field
C, at the end of the text sampledata. Because the actions for the event handler replace the
^field A command, Print Agent lays down a new subform, subform 3, positions at field A in
the new subform, and then places the data for field A, moredata, at that position on the page.

fieldname!Format (Field Formatting)


This event occurs when Print Agent encounters a field in the data stream, and before the data is
written to the output. The event enables you to specify a calculation or formatting for a field. You
specify this event as:
^define group:fieldname!Format expression
expression is an expression that can contain Inline Text Control commands, Intelligent
Pagination commands, or any of the calculation variables, operators, or functions.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

314

When Print Agent reads the data for a field, it checks to see whether there is a
fieldname!Format event stored in the Group dictionary for the field. If the event is found, Print
Agent does the following:

Stores the data for the field in the global variable _$_. This variable contains one line of text
from the data stream. Leading and trailing blanks are removed.

Applies the expression specified in the !Format event, that is:

Replaces the data for the field with the !Format expression.

Performs variable substitution, replacing any expressions that use an @ (at) symbol
with the appropriate value.

Processes any inline text commands in the expression.

Writes the data to the output file.

When you use this event, keep the following considerations in mind:

The fieldname!Format event applies to single line fields, and is not really suitable for
multi-line fields.

This event applies to data files in field-nominated or XML format only.

The expression for a fieldname!Format event can reference variables defined in any Print
Agent dictionary.

You can associate a fieldname!Format event with a global field (see page 40). Print Agent
will execute the event during global field processing.
When Print Agent encounters a fieldname!Format event for a non-global field, it executes
the event immediately. That is, once Print Agent gets to the field and is ready to write out the
text data for the field, it executes the fieldname!Format event. If the field is subsequently
defined as global, either through a ^global command or as a Global dictionary entry, the
fieldname!Format event will be triggered a second time when global field processing occurs.

The fieldname!Format event will not execute in these situations:

A field exists on the template, but not in the data stream

A field exists in the data stream, but not on the template

A field exists in the data stream, but has no data.

Caution: Specifying a reformat option that truncates data values could produce unexpected
results. This may occur in circumstances where one or more commands follow or
surround the data (@_$_.) references in the !Format event. Truncating the data may
also result in the loss of the subsequent commands. If processing does not occur as
expected, we recommend that you determine whether the reformat option is the
cause.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

315

For example:

To redirect the data to another field name, use:


^define group:Input_Amount!Format \fieldOutput_Amount.@_$_.

The initial field name must exist in order for the !Format event to execute.

To output the data for a field named Balance and print a positive value in yellow and a
negative value in red, use:
^define group:Balance!Format
@(if("@_$_."<0,"\cnred.","")).@_$_.\cndefault.

This example demonstrates the use of Inline Text Control commands within the expression
for a fieldname!Format event.

To put the value of a non-global field into a global field so that you can use it in a subsequent
calculation, the data stream may have the following commands:
^inline on
^define group:Amount!Format
@_$_.\defineresolveglobal:SaveAmount,"@_$_.".
^field Amount
235.69
^field Total
@(@SaveAmount. * 1.08).

fieldname!OnOverflow (Field Overflow)


Print Agent activates this event when data spills out of a field. The occurrence of the
fieldname!OnOverflow event handler is closely related to the current reformat option. The
reformat options that rewrap lines cause field overflow events to take place at the character
position in the data stream that overflows the field. (For the reformat options, see -r (Reformat
Data) on page 139 and ^reformat (Reformat Data) on page 220.)
The most common usage of the fieldname!OnOverflow event is to lay down another line of a
large text field that fluctuates in size.
Note: A global field cannot trigger the !OnOverflow event. This applies whether the field is
global because of a ^global command in the data or because the global attribute was
set for the field in Output Designer.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

316

fieldname!FldNotAvail (Field Not Available)


This event occurs when the data stream instructs Print Agent to position to a field that does not
exist on the current template page or subform. The field list from only a single page or subform
is available to Print Agent at any one time. For example, a ^field ITEM command in the data
stream, where the field named ITEM is not on the current subform or template page, causes the
event to occur.
You specify the event as:
^define group:ITEM!FldNotAvail \page3\fieldITEM.

In this example, the field event handler activates page 3 when Print Agent encounters a field in
the data stream that is not on the current template page or subform. Processing proceeds with
\fieldITEM on page 3.
Note: The !FldNotAvail event takes precedence over the -afx option (see page 84).

!REPLACE! (REPLACE LINE)


To replace an entire input line of text with a new replacement line of text, include the !Replace!
command either on the command line or in the preamble in the template. Typically, !Replace! is
used to:

Replace ^field A with ^global A (globalize).

Replace ^field A with ^global DiscardThis (discard).

Replace ^field A with ^field B (rename).

Replace ^group x with ^file x (get more data).

!Replace! is useful when the result of an XML conversion to field-nominated data does not
provide quite what you want. For example, you might let the XML conversion produce ^field
commands and the use !Replace! to change these commands to ^file or ^global commands.
Another use for !Replace! is to do interim processing. For example, you could change ^field A
to ^group A which does some setup before handling \fieldA.

Command Line Syntax


To include !Replace! on the command line, use the syntax:
-advgroup:!Replace!=1 "-advgroup:!Replace!Original!Line=Replacement
Line"

where:
-advgroup:!Replace!=1 is a literal, which activates !Replace! processing. It is required
once, before any !Replace! commands. Without -advgroup:!Replace!=1, !Replace!
commands are ignored.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

317

"-advgroup:!Replace!Original!Line=Replacement Line" is the construct of the


!Replace! command. There must not be a space between -advgroup:!Replace! and
Original!Line. The contents of Original!Line must not include spaces or any control
character (a character with a hexadecimal value of 20 or less). If the text in the original line
includes spaces or the specified control characters, replace the spaces and control characters
with ! (exclamation points) as a placeholder.

You can include any number of !Replace! commands on the command line.
For example,
-advgroup:!Replace!=1 "-advgroup:!Replace!^group!G_CoverLetter1=^form
CoverLetter1.mdf" "-advgroup:!Replace!^field!Description=^field Desc"

In this example, ^group G_CoverLetter1 is replaced with ^form CoverLetter1.mdf, and


^field Description is replaced with ^field Desc.

Preamble Syntax
To include !Replace! in the preamble in the template, use the syntax:
^define group:!Replace! 1
^define group:!Replace!Original!Line Replacement!Line

where:
^define group:!Replace! 1 is a literal, which activates !Replace! processing. It is
required once, before any !Replace! commands. Without ^define group:!Replace! 1,
!Replace! commands in the preamble are ignored.
^define group:!Replace!Original!Line Replacement!Line is the construct of the
!Replace! command. There must not be a space between ^define group:!Replace! and
Original!Line. The contents of Original!Line must not include spaces or any control
character (a character with a hexadecimal value of 20 or less). If the text in the original line
includes spaces or the specified control characters, replace the spaces and control characters
with ! (exclamation points) as a placeholder. You can include any number of !Replace!
commands in the preamble.

For example,
^define group:!Replace! 1
^define group:!Replace!^field!Date ^global Date
^define group:!Replace!^field!Payment ^global Ignore

In this example, ^field Date is changed to a global field and ^field Payment is discarded.

!Replace! Considerations
Keep these considerations in mind when using !Replace!:

!Replace! can only be used to replace input lines in the raw data file; it will not replace lines
in the preamble.

!Replace! does not apply to inline commands.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Intelligent Pagination

318

!Replace! applies after XML has been converted to DAT.

You can put a ~ (tilde) in the replacement text. Because the Print Agent interprets a tilde as
a newline character, it is possible to replace a single line with multiple lines. Using tildes
provides an easy mechanism for inserting additional input lines. For example, replacing
^field x with ^field Dept~Shipping~^field x inserts two input lines before ^field x.

The Print Agent must activate !Replace! processing before reading the data file. Therefore,
the command to activate !Replace! must be provided either on the command line or in the
preamble in the template. Including !Replace! in a preamble external to the template, that is
one identified to the Print Agent with the -apr command line option, will have no effect.

Caution: Ensure you activate !Replace! processing only when needed, as it will increase
your processing overhead. !Replace! examines every line in the data file and does
a dictionary look-up for each of those lines. Once !Replace! processing is activated
for a data file, it cannot be turned off.

END-OF-PAGE CONDITIONS
Print Agent can be made to automatically detect a page full condition when there is not enough
space within the printable area on the page to print the current group. It determines this by
comparing the amount of available space in the printable area to the size requirements of the
group. To achieve this, define the space requirements for a group using the Intelligent
Pagination command, \reserve (see page 278). This command is usually the first action for an
event.
For example:
^define group:PODetail!OnEntry
\reserve"1.50",in\subform4\fieldITEM.
^define group:PODetail!OnBOF
\page2\fieldPOSITION2.

This example shows a groupname!OnEntry event handler that specifies that one and one half
inches must be available within the printable area on the page before this event can
successfully execute. If the space is not available, then the groupname!OnBOF event handler
(see page 311) executes; the current page ejects, Print Agent initializes page 2, and sets the
pen position in the field POSITION2.
Processing then continues in the groupname!OnEntry event handler; Print Agent lays down the
subform on page 4 of the template, and sets the position in the field named ITEM.
It is important to note that although the end-of-page condition interrupts the !OnEntry event
handler, processing resumes at that event when the end-of-page processing completes.

Numeric Character Values


This appendix details the procedure for including character values and printer strings with
certain Print Agent command line options, commands and configuration settings.

SINGLE-CHARACTER OPTIONS
Print Agent allows you to specify character values, in lieu of the actual character, in certain
command line options and configuration settings. This is useful in cases where the character
you require is not a standard keyboard character. To specify a character value, use the
sequence \n, \nn or \nnn, where n is a decimal digit with a minimum value of 1 and a
maximum value of 255. The sequence is replaced with the character having the decimal value
given by the digits.
For example, to change the alternate newline character to the PC-850 character
(ucircumflex), start Print Agent with this command line option:
-anl\150

Represent a literal backslash within a parameter by the sequence \\ (double backslash). For
example, to change the currency debit symbol to \+ (backslash plus), use the command line
option:
-acudb=\\+

Alternatively, if a parameter value is just the single \ (backslash), then the whole value is a
literal backslash. For example, to change the alternate newline character to a \ (backslash),
use the command line option:
-anl\

Specifying character values this way avoids problems when using text editors which may use a
different symbol set than that used by your data files. For example, the decimal value of 150
used in the character string above represents the PC-850 character (ucircumflex). Under
Windows, Notepad will allow you to enter this character by holding down the Alt key and typing
150 on the keypad. However, it will put it into the file as the value 251, because it translates
typed characters from PC-850 into ISO-Latin1. Now when you examine the file using DOS edit,
(ucirmumflex) is displayed as (square root). Consequently, it is not possible to directly
enter the PC-850 character into a parameter file or into the Job Management Database
using Notepad, but you can specify it as \150 instead.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Numeric Character Values

You can specify character values when defining defaults for:


Command line option

Matching INI setting

-acucc=

[Special] CurrencyComma

-acucd=

[Special] CurrencyDot

-acucic=

[Special] CurrencyInComma

-acucid=

[Special] CurrencyInDot

-acucp=

[Special] CurrencyParenthesis

-acucr=

[Special] CurrencyCR

-acucs=

[Special] CurrencySymbol

-acudb=

[Special] CurrencyDB

-amaxicodeeol

[Special] MAXICODEEOL

-amaxicodeifs

[Special] MAXICODEIFS

-amaxicodehrd

[Special] MAXICODEHRD

-amaxicodetrlr

[Special] MAXICODETRLR

-anf

[Special] FieldChar

-anl

[Special] NewlineChar

-apcc

[Special] PrefixChar

-apcd

[Special] DictionaryNameSeparator

-apce

[Special] EventNameSeparator

-apci

[Special] ITCPrefixChar

-apcv

[Special] SubstitutionPrefixChar

-apdf417eol

[Special] PDF417EOL

-aqrcodeeol

[Special] QRCODEEOL

-d

[Special] QuoteChar

N/A

[MonthNames] Language1Abbreviated

N/A

[MonthNames] Language1Full

N/A

[MonthNames] Language2Abbreviated

N/A

[MonthNames] Language2Full

320

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Numeric Character Values

321

PRINTER STRINGS
Certain commands, configuration settings, and command-line options, when printing via a Print
Agent presentment target, accept strings to be sent directly to the printer. The strings may be in
the format *ptrstring or +encoded-ptrstring.
ptrstring is a string to be sent literally to the printer. When supplied in the data stream, it
must not contain characters that are special to Print Agent. When supplied on the command
line, it must be quoted. You can use this format with PostScript Level 2 printers, which are
driven by printable ASCII strings.
encoded-ptrstring may contain characters encoded numerically using the format \nnn,
where nnn is a three-digit decimal number. Use leading zeros as needed to pad out the
number to three digits. The number must be at least 001 and at most 255. For example, to
represent the string abc<ESC>123<ESC>, where <ESC> is the ASCII escape character, use
the encoded string:
+abc\027123\027

To represent a literal \ (backslash) character, use \\ (two consecutive backslashes). When


you place encoded-ptrstring into the data stream, use numeric codes to stand for
non-printable characters and for any characters that are special to Print Agent. On the
command line, use numeric codes to protect special characters from the command interpreter.
You can use *ptrstring and +encoded-ptrstring, when printing via a Print Agent presentment
target, when defining values for:
Command line option

Matching INI setting

-ati

[Printer] InputTray

-ato

[Printer] OutputTray

-adu

[Printer] Duplex

You can also use *ptrstring and +encoded-ptrstring, when printing via a Print Agent
presentment target, with the following commands:
Commands
^duplex

^page duplex

^trayout

^eject duplex

^page trayin

\pagenn,duplex

^eject trayin

^page trayout

\pagenn,trayin

^eject trayout

^trayin

\pagenn,trayout

Special Characters
This Appendix lists the special characters used by Print Agent. Print Agent recognizes these
characters in the data stream as the start of a command or a special action.
If possible, do not use these characters in your database. However, if your database uses one
of these characters for another purpose, you can change the Print Agent character, with the
exception of the CTRL+A (Forced Space), to another character. Take care to ensure that no
two characters are alike. If they are, Print Agent will not know how to interpret them.

` (NEW FIELD)
To end a field and move to the next field, insert a new field character in the data stream. The
default new field character is a ` (back quotation mark).
This character is especially useful when you merge data from a transaction file using
comma-delimited data or newline-delimited data. In this case, the new field character has the
same effect as a ^field command.
When Print Agent processes a fill justified field, it considers all following lines in the file to be
data for the field, until it encounters a ^field command or new field character. Therefore, if you
are merging data in field-nominated or comma-delimited format and using a transaction file that
does not contain ^field commands, all data for fill justified fields terminate with the new field
character.
To change the default new field character, see ^newfield (New Field Character) on page 204
and -anf (New Field Character) on page 96.

^ (DYNAMIC MERGE COMMAND PREFIX)


This prefix character indicates that the word it begins is a Dynamic Merge command. The
default prefix character is a ^ (caret).
To change the default Dynamic Merge command prefix character, see ^prefix (Prefix
Character) on page 216 and -apcc (Dynamic Merge Command Prefix Character) on page 98.

: (DICTIONARY NAME SEPARATOR)


Print Agent uses this prefix character as a dictionary name separator. The default prefix
character is a : (colon).

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Special Characters

323

To change the default dictionary name separator prefix character, see ^prefix (Prefix
Character) on page 216 and -apcd (Dictionary Name Separator Prefix Character) on
page 99.

! (EVENT NAME SEPARATOR)


Print Agent uses this prefix character as an event name separator. The default prefix character
is an ! (exclamation point).
To change the default event name separator prefix character, see -apce (Event Name
Separator Prefix Character) on page 100.

\ (INLINE TEXT CONTROL COMMAND PREFIX)


This prefix character indicates that the series of characters it begins is an Inline Text Control
command. The default prefix character is a \ (backslash).
To change the default Inline Text Control command prefix character, see ^prefix (Prefix
Character) on page 216 and -apci (Inline Text Control Command Prefix Character) on
page 100.

@ (VARIABLE SUBSTITUTION PREFIX)


This prefix character indicates the beginning of a variable substitution created with ^global or
^define. The default prefix character is an @ (at).
To change the default variable substitution prefix character, see ^prefix (Prefix Character) on
page 216 and -apcv (Variable Substitution Prefix Character) on page 101.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Special Characters

324

~ (ALTERNATE NEWLINE)
To end a line in a multiline field or to end a single line field, insert an alternate newline character
in the data stream. The default alternate newline character is a ~ (tilde).
For example, you could use data like this for a multiline field:
First text~Second line~Third text line

with this result:


First text
Second line
Third text line

To change the default alternate newline character, see ^terminator (Alternate Newline
Character) on page 226 and -anl (Alternate Newline Character) on page 97.

CTRL+A (FORCED SPACE)


If you require trailing blanks while filling a field, you can insert a CTRL+A (ASCII 01) character.
For example, you could insert CTRL+A characters at the right end of a line in a right justified
field. The CTRL+A occupies the width of a 0 (the digit zero) in proportionally spaced fonts.

Label Printers
Print Agent can output to Datamax, Intermec, TEC, and Zebra label printers. However, not all
supported label printer models can take advantage of the full functionality of Print Agent.

DATAMAX LABEL PRINTERS


This section describes Print Agent functionality that may not be handled as described by
Datamax label printers. As noted, some functionality is specific to all Datamax models and
some functionality is specific to only certain Datamax models.

All Datamax Label Printers

UP

TE
DA

^graph and \graph Commands


Datamax printers support 1, 4, 8 and 24 bit logos, provided the following is adhered to:

Preload the printer with the logo by compiling the graphic on the boilerplate. The option for
format memory module must be checked. Send this .prn to the printer to store in its
memory.

Create a new .mdf with an empty field for the ^graph or \graph command to work. The
option for format memory module must be turned off, or the previous bitmap will be erased
and replaced with nothing.

Remember to have the bitmap in the \logos directory and ensure that the logo path keyword
in the jfmerge.ini file points to the \logos directory.

Boilerplate graphics are not limited, except that they must be compiled with the format memory
module turned on.
If a logo must be re-sized (shrunk) to fit on a label in Output Designer, it will not be positioned
properly on the output. Therefore, print at a slow speed. (It is recommended that you select 2
ips at compile time.)

Rotating Characters
When viewing the template in Output Designer, characters may not rotate properly if you do not
have the correct Windows font. This applies to any fixed width font.

Double-byte Support
There is no support for double-byte characters sets on Datamax printers.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Label Printers

Datamax DMX600
Line Thickness
Line thickness on circles or shaded boxes is not supported. Regular shading is supported.

Graphic Downloads
The width limit for Datamax graphic downloads is 6.8".

OCR-B Font
Only the following characters exist in OCR - B:
0123456789 <>CENSTXZ|

Datamax Titan 6200


Line Thickness
Line thickness on circles or shaded boxes is not supported. Regular shading is supported.

Graphic Downloads
The width limit for Datamax graphic downloads is 6.8".

Datamax Prodigy
Line Thickness
This label printer supports non-shaded rectangles with line thickness. It does not support
shading.

Datamax Prodigy Plus


Graphic Downloads
The width limit for Datamax graphic downloads is 4".

326

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Label Printers

327

INTERMEC LABEL PRINTERS


UP

TE
DA

This section describes Print Agent functionality that may not be handled as described by
Intermec label printers. The functionality noted is specific to all Intermec models.

Rotating Characters
When viewing the template in Output Designer, characters may not rotate properly if you do not
have the correct Windows font. This applies to any fixed width font.

^graph and \graph Commands


Intermec printers support only 1 bit logos for use with the ^graph and \graph commands.
There is no limit for boilerplate logos.

Extended Barcode Processing Support


When using the -aebon option for extended barcode processing, these characters are
recognized:
Character Function Code
\1

FNC1

\2

FNC2

\3

FNC3

\4

FNC4

Print Agent ignores the function codes \A, \B, \C, \S, and \D. The Intermec printer will
automatically switch between barcode subsets with function codes \A, \B, and \C, while the
Intermec printer does not support \S and \D.

Double-byte Support
There is no support for double-byte characters sets on Intermec printers.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Label Printers

328

TEC LABEL PRINTERS


UP

TE
DA

This section describes Print Agent functionality that may not be handled as described by the
supported TEC label printers:

Model 472-QQ

Model 672-QQ

Model 872-QQ

With respect to these models, be aware that:

Print Agent uses the ESC, LF, NUL method for sending printer control codes.

Fine adjustments to label feeding must be made using the front panel of the printer.

Unsupported Print Agent Features


The following features are not supported, due to printer limitations:

Dynamic templates

Printing arcs

Shading of objects

Line styles

Barcodes
A total of 32 barcodes can be on one label.
The UCC/EAN128 barcode is limited to 19 digits. This is a TEC printer limitation, documented in
the TEC manual.
For the barcode Code128, \A, \B and \C must be used to indicate a change in subsets within the
barcode data. To get a > char, you must put a \> in the data, as the > char is special to the
TEC printer.
For the PDF417 barcode, if you want a > character in the data, you must put the characters
>0 in the data.
There may be problems with barcodes rotated to 90 or 270 degrees, depending on the printer
and the type of ribbon used. The barcodes may print with bars that are too close together to
scan. To correct this, you can lower the temperature of the print head and, if possible, the speed
of printing. To lower the print speed, use the printer options box at compile time. To lower the
temperature, use the front panel. Under <2>Parameter set, look for the Tone Adjust <T> option,
and decrease the number shown.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Label Printers

329

Graphics
Only 1 bit logos for use with the ^graph command are supported. There is no limit for
boilerplate logos.
The ^graph command is supported in both portrait and landscape mode.
Only monochrome logos are supported. Color logos specified with the ^graph command are
ignored (and do not print). Color logos on the boilerplate will be translated to monochrome
logos by Output Designer before being printed.

Line Widths
The standard line widths in Output Designer do not correspond directly with the supported line
widths on the TEC printers. On the printers, lines may be from 1 to 9 dots wide. The printer
resolution is 12 dots/mm, so the standard line widths in Output Designer correspond to the TEC
line widths as follows:

.001 cm = 1 dot wide

.005 cm = 1 dot wide

.010 cm = 1 dot wide

.020 cm = 2 dots wide

.025 cm = 2 dots wide

.050 cm = 5 dots wide

.100 cm = 9 dots wide

For other line widths, the Custom line width option may be used.

OCR Fonts
The OCR A and OCR B fonts do not have lower case letters. Data must be entered in UPPER
CASE. The extended characters that are supported for this font are:
" $ . | 0123456789 <> A-Z

Rotating Characters
When viewing the template in Output Designer, characters may not rotate properly if you do not
have the correct Windows font. This applies to any fixed width font.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Label Printers

330

Text Strings
A total of 199 text strings can appear on a label using a bitmap font (Times, Helvetica,
Presentation, Letter Gothic, Prestige Elite, Courier, OCR-A, OCR-B) and a total of 99 text
strings can appear on a label using an outline font (TEC FONT 1, TEC FONT 2). If this limit is
exceeded, Print Agent will log an error. These limits may be reached quickly when using either
Inline Text Control commands or full justification on a field, as these commands break text into
single words for printing, and each word becomes a string.

Macros
Temporary macros (macros stored to RAM) are not supported. Only macros downloaded to a
PCMCIA card are supported. A PCMCIA card is a hardware option. Macros downloaded to a
PCMCIA card will stay downloaded, even if the printer is turned off. The only valid argument for
the -m (Download Macro to Printer) command line option is r. Any other argument (t, p, f, m,
h) will be ignore by Print Agent and macros will not be used.
To download a macro to the PCMCIA card, use the command line option:
-m#r

where # is the number of the macro to store.


To retrieve a macro from the PCMCIA card, use the command line options:
-m#r -l

where # is the number of the macro to retrieve.


To format the PCMCIA card, use the command line options -afmf (Format Nonvolatile Memory)
and -avnr0 (Nonvolatile Memory Volume Number) together. For example:
jfmerge tec_1.mdf tec_1.dat -afmf -avnr0 -m15r

This example formats the flash memory card and then stores the template tec_1.mdf as macro
number 15.
The options for the -avnr command are

0 = Format all areas of flash memory card

1 = Format the PC save area of the flash memory card

2 = Format the writable character area of the flash memory card

Double-byte Support
There is no support for double-byte characters sets on Datamax printers.

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Label Printers

331

ZEBRA LABEL PRINTERS


This section describes Print Agent functionality that may not be handled as described by Zebra
label printers. As noted, some functionality is specific to all Zebra models and some
functionality is specific to only certain Zebra models.

All Zebra Label Printers

UP

TE
DA

Rotating Characters
When viewing the template in Output Designer, characters may not rotate properly if you do not
have the correct Windows font. This applies to any fixed width font.

^graph and \graph Commands


Zebra printers support 1 bit (Black and White) logos, provided you preload the printer with the
logo by compiling the graphic on the boilerplate. Use Print Agent to download this .mdf to the
printer, to store in its memory. As well, create a new .mdf with an empty field for the ^graph or
\graph command to work.
Note that you can also use a single .mdf, if you embed the graphic into the template during
compile. Then use a ^graph or \graph to reference the embedded graphic.
As an alternative to the above, Print Agent supports the use of dynamic graphics on Zebra
printers that contain specific Firmware SIMMs (version X.8.0). To activate this feature, you must
update the corresponding printer configuration file (.ics) that ships with Output Designer and
then re-compile the templates used with this printer. Here are the necessary changes for the
.ics file:
; Zebra Language Level Support
;
ZPLLANGUAGELEVEL/graphics
;
;
graphics:
0 - No support for runtime ^GF command.
;
1 - Support runtime ^GF command.
;
CustomString2
ZPLLANGUAGELEVEL/1

Logos
If a logo must be re-sized (shrunk) to fit on a label in Output Designer, it will not be positioned
properly on the output. Therefore, print at a slow speed. (At compile time, it is recommended
that you select 2 ips.)

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Label Printers

332

^ and ~ Characters
The ^ (caret) and ~ (tilde) characters do not work on Zebra label printers. This is a printer
limitation.

UCC128-C SSCC Barcode


The UCC128-C SSCC barcode requires 19 digits, and cannot accept more than 19 digits, as
defined in the Zebra documentation. If the barcode is supplied with less than 19 digits, leading
zero characters are automatically added so that the number of digits totals 19.
The UCC128-C SSCC barcode check digit is generated by the printer at print time, and cannot
be turned off.

Printing of Circles
Zebra label printers cannot render circles. This is a Zebra label printer limitation.

Double-Byte Support
Support for double-byte characters sets on Zebra printers is limited to the Japanese language.

Zebra Stripe
The OCR A font supports upper case only. Data must be in upper case.

Zebra 170
The OCR A font supports upper case only. Data must be in upper case.

Zebra 170 XiII


Within Output Designer you can select dashed lines. However, these dashed lines print as solid
lines.
Within Output Designer you can select diagonal lines. However, these diagonal lines cannot be
printed.

Printing EAN-128 Barcodes


This appendix describes the support for the EAN-128 barcode within Print Agent, given the right
template design and data stream. It includes an example of the data required to produce a
barcode containing a Serial Number Application Identifier (with its data), Production Date, and
Purchase Order Number.
Note: To print EAN-128 barcodes, you must run Print Agent with the -aebon command line
option.
The EAN-128 barcode is implemented using a Code-128 barcode. Print Agent supports
Code-128 barcodes. The support includes the ability to switch between subsets A, B, and C, as
well as the capability to generate the FNC1 character in the barcode (with \1).
As an example, let us suppose that you want to generate a barcode that contains:

Serial Number Application Identifier (with its data)

Production Date

Purchase Order Number

SERIAL NUMBER APPLICATION IDENTIFIER


(WITH ITS DATA)
The Serial Number is described in the specification as:
Application Identifier: 21
Description: Serial Number
Data format: an..20
So we will start the bar code with application Identifier 21 and follow it with the Serial Number
which is described as variable length data, alpha numeric and up to 20 characters in length.
This means that the form should be designed to use a Code 128 B barcode (because it handles
alphanumeric data, so does Code 128 A - but only upper case). The data for this part of the
barcode will be:
\121xxxxxxxxxxxxxxx\1

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Printing EAN-128 Barcodes

334

where:

The first \1 is the FNC1 character which says this is an EAN-128 barcode (all EAN-128
barcodes start with FNC1).

21 is the Application Identifier

xxxxxxxxxxxxxxx is the Serial Number

\1 is the FNC1 character used to terminate variable length fields.

PRODUCTION DATE
The Production Date is described in the specification as:
Application Identifier: 11
Description: Production Date
Data format: an6 (YYMMDD)
The data for this part of the barcode starts as:
11010228

where:

11 is the application Identifier

010228 is the production date

Notice that there is no \1. This is because the data is fixed length (6 characters), so there is no
need for a field terminator.
The specification says You should always use Start C when the data, inclusive of the
Application Identifier, begins with four or more numeric characters so we should start this field
by switching to code c (Code C sequences can only be numeric, and must contain an even
number of digits).
For Print Agent, we switch to Code C with \c - the data for this part of the barcode will then be:
\c11010228

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Printing EAN-128 Barcodes

335

PURCHASE ORDER NUMBER


The final part of the barcode is the Purchase Order Number, which is described in the
specification as:
Application Identifier: 400
Description: Customers Purchase Order Number
Data format: an..30
Since the data is alphanumeric we will have to switch back to code b. This part of the barcode
field becomes:
\b400yyyyyyyyyyy

where:

\b means switch to code B

400 is the application identifies for Purchase Order number

yyyyyyyyyyy is the customers purchase order number.

The data for the entire barcode is therefore:


\121xxxxxxxxxxxxxxx\1\c11010228\b400yyyyyyyyyyy

There is a limit of 48 characters in a EAN-128 barcode. This seems to translate quite well to the
number of characters in the data field for Print Agent - you do not count the \s because each of
the pairs \x generates 1 character in the barcode.

UPS Maxicode 2D Barcodes


This appendix describes the support for the UPS Maxicode 2D barcode within Print Agent.

EW

Note: UPS MaxiCode Barcodes are supported only on Zebra and Intermec printers
To produce a UPS Maxicode 2D barcode Print Agent requires that you supply the data values in
the following order:

Class of service code

Country code

Postal code

Tracking number

SCAC

UPS account number

Julian day of Pickup

Provision for Shipment ID number

Package n/x

Package Weight

Address Validation

Ship To Street Address

Ship To City

Ship To State

You must always supply the data in the correct order (as above). Any omitted data must be
indicated by blank lines, or by the pipe symbol character. The pipe symbol is used as a
substitution delimiter in the jfmerge.ini file. You may redefine this character if necessary, but it
must not conflict with any other characters that are used as substitution delimiters.
You can separate the data values by placing them each on a new line or by separating each
data value with the pipe symbol character (|) if they occur on the same line. As an example, let
us suppose that you want to generate a barcode for a field called MAXICODE using the default
settings in the jfmerge.ini file. You could supply the required data either as follows:

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

UPS Maxicode 2D Barcodes

^FIELD MAXICODE
068
380
62360
1Z40003506
UPSN
169474
314

1
N
STR
STAD
62

^COMMENT next line in .dat

-or^FIELD MAXICODE
068|380|62360|1Z40003506|UPSN|169474|314|| |1/1|1|N|STR|STAD|62

where:

068 is the Class of service code

380 is the Country code

62360 is the Postal code

1Z40003506 is the Tracking number

UPSN is the SCAC

169474 is the UPS account number

314 is the Julian day of Pickup

| | is Provision for Shipment ID number

1/1 is the Package n/x

1 is the Package Weight

N is the Address Validation

STR is the Ship To Street Address

337

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

STAD is the Ship To City

62 is the Ship To State

UPS Maxicode 2D Barcodes

338

G
N

EW

USPS Intelligent Mail Barcodes


This appendix describes the support for the USPS Intelligent Mail barcode.within Print Agent.
To produce an USPS Intelligent Mail barcode Print Agent requires that you supply the data
values in the following order:

Barcode Identifier (2 digit)

Service Type Identifier (3 digit)

Mailer or Customer Identifier (6 or 9 digit)

Serial or Sequence Number (6 or 9 digit)

Delivery Point ZIP Code (0, 5, 9, or 11 digits)

The Barcode Identifier, Service Type Identifier, Mailer Identifier, and Serial Number fields
together form the 20-digit tracking code. The Delivery Point ZIP Code forms the routing code.
For the specific range of each of the fields please refer to the Intelligent Mail Barcode
specification.
You must always supply the data in the correct order (as above). Any omitted data must be
indicated by blank lines, or by the pipe symbol character. The pipe symbol is used as a
substitution delimiter in the jfmerge.ini file. You may redefine this character if necessary, but it
must not conflict with any other characters that are used as substitution delimiters.
You can separate the data values by placing them each on a new line or by separating each
data value with the pipe symbol character (|) if they occur on the same line. As an example, let
us suppose that you want to generate a barcode for a field called IMB using the default settings
in the jfmerge.ini file. You could supply the required data either as follows:
^FIELD IMB
01
234
567094
987652222
01234567891
^COMMENT

next line in .dat

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

-or^FIELD IMB
01|234|567094|987652222|01234567891
^COMMENT

next line in .dat

where

01 is the Barcode Identifier

234 is the Service Type Identifier

567094 is the Mailer or Customer Identifier

987652222 is the Serial or Sequence Number

01234567891 is the Delivery Point ZIP Code

USPS Intelligent Mail Barcodes

340

Index
!
!DuplexBack (at duplex page back) group event handler 309
!DuplexFront (at duplex page front) group event handler 309
!EndData (End Data Processing) 312
!FldNotAvail (field not available)
field event handler 316
group event handler 309
!FldUsed (field used)
field event handler 313
group event handler 310
!Format (field formatting)
field event handler 313
!OnBOF (at bottom of page)
field event handler 312
group event handler 311
!OnEntry (at activation of field) field event handler 312
!OnEntry (at activation of group) group event handler 311
!OnExit (at exit current field) field event handler 312
!OnExit (at exit current group) group event handler 311
!OnOverflow (field overflow) field event handler 315
!OnTOF (at top of page)
field event handler 312
group event handler 312
!Replace! (replace line) 316
!Simplex (at simplex mode) group event handler 312

$
$currentx (current horizontal position) 282
$currenty (current vertical position) 282
$date (current date) 283
$duplexsurface (duplex mode and surface) 284
$ffile (current path and file name) 286
$fieldx (horizontal distance to field) 286
$fieldy (vertical distance to field) 286
$file (current file name) 287
$page (current page number) 287
$PAGE fields 152
$printablebottomy (bottom of printable area) 288
$printableleftx (left limit of printable area) 288
$printablerightx (right limit of printable area) 288
$printabletopy (top of printable area) 289
$time (current time) 289

@
@at (at sign) 291
@cr (carriage return) 291
@lf (line feed) 291
@parmfile (parameter file) 157
@qu (quotation mark) 291

@sm (semicolon) 291


@tb (tab) 291
@variable (replace a variable) 282
$currentx (current horizontal position) 282
$currenty (current vertical position) 282
$date (current date) 283
$duplexsurface (duplex mode and surface) 284
$ffile (current path and file name) 286
$fieldx (horizontal distance to field) 286
$fieldy (vertical distance to field) 286
$file (current file name) 287
$page (current page number) 287
$printablebottomy (bottom of printable area) 288
$printableleftx (left limit of printable area) 288
$printablerightx (right limit of printable area) 288
$printabletopy (top of printable area) 289
$time (current time) 289
{[dictionary-name]:} variable-name (retrieve variables from
dictionary) 290
fieldname (global field) 290

\
\$page (page number) 280
\b (set bold font) 235
\c (select color by index number) 235
\checksurface (duplex mode and surface) 257
\cn (select color by name) 236
\defineresolve (assign resolved value to variable) 258
\dn (lower text from baseline) 237
\f (select font by index number) 237
\field (move to specific field) 259
\fn (select font by name) 238
\form (open template) 260
\fs (adjust font size) 239
\graph (print logo or raster graphic) 263
\group (execute specified group) 266
\i (set italics font) 239
\li (indent left margin to next tab stop) 240
\n (insert newline character) 240
\normal (set style attributes off) 241
\off (suspend Inline Text Control processing) 241
\on (resuming Inline Text Control processing) 242
\page (move to new page in template) 267
duplex 268
trayin 267
trayout 268
\pic (picture formatting) 242
\plain (field default font) 252
\pop (restore saved font) 252
\position (change placement of data) 268
[absolute] 273

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
left|right 277
relative 275
restore 277
save 277
up|down 274
\push (save current font) 252
\reserve (reserve space for subform) 278
n 278
subform 279
\subform (activate subform) 279
\t (move to next tab stop) 253
\trace (trace facility) 280
\u+ (insert Unicode code point) 254
\ui (unindent left margin to previous tab stop) 254
\ul (set underlining) 253, 255
\up (raise text from baseline) 255

^
^$page (page number) 231
^comment (insert comment in data stream) 174
^continue (continue record structure) 175
^copies (number of copies) 176
^currency (currency formatting) 176
^data (change active record definition) 179
^datagroup begin (begin data group) 179
^datagroup end (end data group) 180
^define (assign value to variable) 180
and the Group dictionary 308
using with Intelligent Pagination commands 256
^defineresolve (assign resolved value to variable) 182
^duplex (duplex printing) 182
^eject (send formfeed to printer) 183
duplex 184
trayin 183
trayout 183
^fax (fax data) 184
^field (move to specific field) 188
^file (include file in data) 189
^form (open template) 191
^form command, use (-axuseformcommand) 171
^global (define global field) 193
^graph (print logo or raster graphic) 194
^group (execute specified group) 198
^inline (activate Inline Text Control processing)
[fixed|variable|fixed variable] 200
[freset|nofreset] 201
[novarsub|varsub] 200
{on|off} 199
^inlinegraphbegin (graphic image follows) 201
^inlinegraphend (graphic image ends) 203
^job command 22
options
-aji (job id) 22
-axx (execute task exclusively) 22
jobtokens 22
^key (specify record type) 203
^macro (insert macro at current position) 204
^newfield (new field character) 204

Index
^page (move to new page in template) 205
duplex 206
trayin 205
trayout 206
^passthru (send data directly to output) 206
^popsymbolset (restore saved symbol set) 207
^position (change placement of data) 207
[absolute] 211
left|right 215
relative 214
restore 215
save 215
up|down 213
^prefix (prefix character) 216
dictvar x 217
inline x 217
varsub x 218
x 216
^pushsymbolset (save current symbol set) 218
^record (define record structure) 219
^reformat (reformat data) 220
^shell (invoke an operating system command) 220
^subform (activate subform) 221
^symbolset (select symbol set) 222
^tab (set or clear horizontal tab stops) 225
[default] 225
[default] clear 226
^terminator (alternate newline character) 226
^trace (trace facility) 227
^trayin (input tray) 227
^trayout (output tray) 230
^undefine (clear defined variables) 231
^unrecognized-command (unrecognized command) 174
{[dictionary-name]:} variable-name (retrieve variables from
dictionary) 290

A
-aafgd (store global field data) 66
-aafge (allow field global events) 66
-aafgfd (allow field global flag data) 66
-aap (print all pages) 66
-aat (use printer association table) 67
-abmk (bookmark file) 68
-abms (bookmark section) 69
about Print Agent 13
absolute positioning
\positionabsolute 273
^position absolute 211
-acollate (collate output) 69
-acs (century split) 69
activating
group
\group 266
^group 198
Inline Text Control processing
^inline 199
-aitc 88
subform

342

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
\subform 279
^subform 221
-acu (currency formatting) 70
cc (thousands separator) 71
cd (decimal separator) 72
cic (incoming thousands separator) 72
cid (decimal separator) 73
cl (currency symbol location) 74
cp (currency parenthesis) 74
cr (credit symbol) 72
cs (currency symbol) 71
db (debit symbol) 73
-adp (data path) 75
-adu (duplex printing) 76
*ptrstring 79
+encoded-ptrstring 79
left 77
long 77
off 76
on 76
short 78
top 78
-adv (define dictionary variable) 80
-aeb (set extended barcode processing) 80
-afdf (format hard disk drive) 81
-afinish (specify finish option) 81
-afmf (format nonvolatile memory) 82
-afp (template path) 82
-afr (set field attributes) 84
-afx (discard unknown fields) 84
-agsb (gray-scale brightness) 85, 86
-agsc (gray-scale contrast) 85
-agsm (gray-scale method) 86
-agv (initialize global fields) 87
-aifgf (ignore global field flag) 87
-aii (configuration file name) 87
-aip (start print at page specified) 88
-aitc (set Inline Text Control) 88
-aji (job id) 22
-ajitf (just-in-time fonts) See -ajutf (just-in-time fonts)
-ajitm (just-in-time macros) See -ajutm (just-in-time macros)
-ajutf (just-in-time fonts) 89
-ajutm (just-in-time macros) 89
-all (log file name) 90
allow access to PDF document (-apdfuser) 108
allow access to PDF security settings (-apdfowner) 107
allow adding content to a PDF document (-apdfallowadd) 104
allow copying of pdf document (-apdfallowcopy) 105
allow modification of PDF document (-apdfallowmod) 105
allow printing of PDF document (-apdfprint) 108
-alp (logo path) 91
alternate newline character 324
^terminator 226
-anl 97
-amaxeventloop (Maximum Event Loop) 92
-amaxicodeeol (MaxiCode end of line character) 93
-amaxicodehdr (MaxiCode message header) 94
-amaxicodeifs (MaxiCode input field separator) 94
-amaxicodetrlr (MaxiCode message trailer) 95
-amaxpagestoprint (maximum surfaces to print) 95

Index

343

-amq (managed memory quota) 96


-ams (macro status table file location) 96
-anf (new field character) 96
-anl (alternate newline character) 97
-aob (use older font baseline) 97, 98
-aopl (use older page length) 98
-apcc (Dynamic Merge command prefix character) 98
-apcd (dictionary name separator prefix character) 99
-apce (event name separator prefix character) 100
-apci (Inline Text Control prefix character) 100
-apcv (variable substitution prefix character) 101
-apdf417bc53 (newline character handling) 102
-apdf417conv (data symbol set) 103
-apdf417eol (end of line character) 103
-apdfallowadd (allow adding content to a PDF document) 104
-apdfallowcopy (allow copying of pdf document) 105
-apdfallowmod (allow modification of PDF document) 105
-apdfencryptionlevel (PDF Encyrption Level) 106
-apdflayout (specify PDF initial page layout) 109
-apdfm (inline PDF macros) 103
-apdfopentopage (specify PDF initial page number) 110
-apdfowner (allow access to PDF security settings) 107
-apdfprint (allow printing of PDF document) 108
-apdfuser (allow access to PDF document) 108
-apdfzoom (specify PDF initial page magnification) 111
-apf (picture formatting) 112
-apg (print subset of pages) 112
-apm (print fax mode) 113
-apr (preamble file) 114
-aqrcodeeol (end of line character) 114
-arc (replace characters) 114
-arg (reformat global field data) 115
-arx (response file) 115
-asc (skip characters) 116
-asj (secure job) 116
-asl (skip lines) 116
-asp (select presentment target) 117
-ass (select symbol set) 117
assign
resolved value to variable
\defineresolve 258
^defineresolve 182
value to variable (^define) 180
association table, printer (-aat) 67
-atf (trace filename) 119
-ati (input tray) 121
-atj (interpret input tray numbers) 124
-ato (output tray) 124
-att (translation file) 125
attribute, field, setting
^inline [freset|nofreset] 201
-afr 84
attributes, map (-axattributes) 158
-auspsimbifs (USPS Intelligent Mail Barcode Input Field
Separator) 125
-autf8 (convert data to UTF-8) 126
-autfss (automatic font symbol set switching) 126
automatic font symbol set switching, overview 36
-auwp (Unicode Windows printing) 127
-avl (set variable leading) 128

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
f (fixed leading) 128
fv (fixed variable leading) 128
v (variable leading) 128
-avnh (hard disk volume number) 129
-avnr (nonvolatile memory volume number) 129
-avs (set variable substitution) 129
-axattributes (map attributes) 158
-axaxsl (use xslt stylesheet) 159
-axcodepage (specify code page) 160
-axendgroupprefix end group prefix) 161
-axexclude (exclude namespaces) 161
-axflatten (suppress data groups) 163
-axincrementalload (incremental loading) 164
-axml (process as XML) 130
-axorder (output order) 164
-axpf (execute preamble upon processing ^form) 131
-axps (execute preamble at start-up) 131
-axrecord (specify records) 167
-axstartgroupprefix (start group prefix) 169
-axstartnode (specify start node) 169
-axuseendgroup (End Group) 170
-axuseformcommand (use ^form command) 171
-axusetempfile (use temporary file) 132
-axx (execute task exclusively) 22
-azc (Zebra hex indicator character) 133

B
banner, suppressing (-j) 134
barcode
PDF417 102, 103
QR Code 114
UPS MaxiCode 93, 94, 95
barcode processing (-aeb) 80
blank template, printing 14
bold font, setting (\b) 235
bookmark file (-abmk) 68
bookmark section (-abms) 69
bookmarks, creating 45

C
-c (number of copies) 133
cache location 20
cache lock file, jfurlcch.lck 20
calculation expressions 292
formatting calculated values 292
functions 297
literal numbers 293
literal strings 293
numeric limits 297
operators 294
order of evaluation 296
variables 294
century split (-acs) 69
change active record definition (^data) 179
character
alternate newline 324
^terminator 226

Index
-anl 97
new field 322
^newfield 204
-anf 96
newline
control handling (^reformat) 220
control handling (-r) 140
inserting (\n) 240
replace (-arc) 114
skipping (-asc) 116
Zebra hex indicator (-azc) 133
character values 319
character, prefix
dictionary name separator 322, 323
^prefix dictvar x 217
-apcd 99
Dynamic Merge command 322
^prefix x 216
-apcc 98
event name separator (-apce) 100
Inline Text Control 323
^prefix inline x 217
-apci 100
variable substitution 323
^prefix varsub x 218
-apcv 101
check for front or back surface 257, 284
clearing defined variables (^undefine) 231
code page, specify (-axcodepage) 160
code point, Unicode, inserting (\u+) 254
collate output (-acollate) 69
collation support 56
color
selecting by index number (\c) 235
selecting by name (\cn) 236
comma-delimited format (-d) 65
command line
defining dictionary variables (-adv) 80
length 157
syntax 63
command line options
@parmfile (parameter file) 157
-aafgd (store global field data) 66
-aafge (allow field global events) 66
-aafgfd (allow field global flag data) 66
-aap (print all pages) 66
-aat (use printer association table) 67
-abmk (bookmark file) 68
-abms (bookmark section) 69
-acollate (collate output) 69
-acs (century split) 69
-acu (currency formatting) 70
cc (thousands separator) 71
cd (decimal separator) 72
cic (incoming thousands separator) 72
cid (decimal separator) 73
cl (currency symbol location) 74
cp (currency parenthesis) 74
cr (credit symbol) 72
cs (currency symbol) 71

344

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
db (debit symbol) 73
-adp (data path) 75
-adu (duplex printing) 76
*ptrstring 79
+encoded-ptrstring 79
left 77
long 77
off 76
on 76
short 78
top 78
-adv (define dictionary variable) 80
-aeb (set extended barcode processing) 80
-afdf (format hard disk drive) 81
-afinish (specify finish option) 81
-afmf (format nonvolatile memory) 82
-afp (template path) 82
-afr (set field attributes) 84
-afx (discard unknown fields) 84
-agsb (gray-scale brightness) 85, 86
-agsc (gray-scale contrast) 85
-agsm (gray-scale method) 86
-agv (initialize global fields) 87
-aifgf (ignore global field flag) 87
-aii (configuration file name) 87
-aip (start print at page specified) 88
-aitc (set Inline Text Control) 88
-ajitf (just-in-time fonts) See -ajutf (just-in-time fonts)
-ajitm (just-in-time macros) See -ajutm (just-in-time macros)
-ajutf (just-in-time fonts) 89
-ajutm (just-in-time macros) 89
-all (log file name) 90
-alp (logo path) 91
-amaxicodeeol (MaxiCode end of line character) 93
-amaxicodehdr (MaxiCode message header) 94
-amaxicodeifs (MaxiCode input field separator) 94
-amaxicodetrlr (MaxiCode message trailer) 95
-amaxpagestoprint (maximum surfaces to print) 95
-amq (managed memory quota) 96
-ams (macro status table file location) 96
-anf (new field character) 96
-anl (alternate newline character) 97
-aob (use older font baseline) 97, 98
-aopl (use older page length) 98
-apcc (Dynamic Merge command prefix character) 98
-apcd (dictionary name separator prefix character) 99
-apce (event name separator prefix character) 100
-apci (Inline Text Control prefix character) 100
-apcv (variable substitution prefix character) 101
-apdf417bc53 (newline character handling) 102
-apdf417conv (data symbol set) 103
-apdf417eol (end of line character) 103
-apdfallowadd (allow adding content to a PDF document)
104
-apdfallowcopy (allow copying of pdf document) 105
-apdfallowmod (allow modification of PDF document) 105
-apdflayout (specify PDF initial page layout) 109
-apdfm (inline PDF macros) 103
-apdfopentopage (specify PDF initial page number) 110
-apdfowner (allow access to PDF security settings) 107

Index

345

-apdfprint (allow printing of PDF document) 108


-apdfuser (allow access to PDF document) 108
-apdfzoom (specify PDF initial page magnification) 111
-apf (picture formatting) 112
-apg (print subset of pages) 112
-apm (print fax mode) 113
-apr (preamble file) 114
-aqrcodeeol (end of line character) 114
-arc (replace characters) 114
-arg (reformat global field data) 115
-arx (response file) 115
-asc (skip characters) 116
-asj (secure job) 116
-asl (skip lines) 116
-asp (select presentment target) 117
-ass (select symbol set) 117
-atf (trace filename) 119
-ati (input tray) 121
-atj (interpret input tray numbers) 124
-ato (output tray) 124
-att (translation file) 125
-autf8 (convert data to UTF-8) 126
-autfss (automatic font symbol set switching) 126
-auwp (Unicode Windows printing) 127
-avl (set variable leading) 128
f (fixed leading) 128
fv (fixed variable leading) 128
v (variable leading) 128
-avnh (hard disk volume number) 129
-avnr (nonvolatile memory volume number) 129
-avs (set variable substitution) 129
-axattributes (map attributes) 158
-axaxsl (use xslt stylesheet) 159
-axcodepage (specify code page) 160
-axendgroup prefix (end group prefix) 161
-axexclude (exclude namespaces) 161
-axflatten (suppress data groups) 163
-axincrementalload (incremental loading) 164
-axml (process as XML) 130
-axorder (output order) 164
-axpf (execute preamble upon processing ^form) 131
-axps (execute preamble at start-up) 131
-axrecord (specify records) 167
-axstartgroup prefix (start group prefix) 169
-axstartnode (specify start node) 169
-axuseendgroup (End Group) 170
-axuseformcommand (use ^form command) 171
-axusetempfile (use temporary file) 132
-azc (Zebra hex indicator character) 133
-c (number of copies) 133
-d (comma-delimited format) 65
-f (file name override) 133
-i (record length initial value) 134
-j (suppress banner) 134
-l (template already loaded) 135
-m (download macro to printer)
f (load-first-time macro) 137
h (macro in hard disk drive) 138
m (managed memory macro) 137
p (permanent macro) 137

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
r (macro in nonvolatile memory) 137
t (temporary macro) 137
-n (event trace level) 138
-p (printer offset) 139
parameter file (@parmfile) 157
-q (quiet download) 139
-r (reformat data) 140
clip 148
fold 144
no 143
off 146
trunc 150
yes 140
-s (starting page number) 152
-v (message display) 153
-z (direct output) 154
command, operating system, invoke (^shell) 220
command, unrecognized (^unrecognized-command) 174
commands
!Replace! (replace line) 316
\$page (page number) 280
\b (set bold font) 235
\c (select color by index number) 235
\checksurface (duplex mode and surface) 257
\cn (select color by name) 236
\defineresolve (assign resolved value to variable) 258
\dn (lower text from baseline) 237
\f (select font by index number) 237
\field (move to specific field) 259
\fn (select font by name) 238
\form (open template) 260
\fs (adjust font size) 239
\graph (print logo or raster graphic) 263
\group (execute specified group) 266
\i (set italics font) 239
\li (indent left margin to next tab stop) 240
\n (insert newline character) 240
\normal (set style attributes off) 241
\off (suspend Inline Text Control processing) 241
\on (resuming Inline Text Control processing) 242
\page (move to new page in template) 267
duplex 268
trayin 267
trayout 268
\pic (picture formatting) 242
\plain (field default font) 252
\pop (restore saved font) 252
\position (change placement of data) 268
[absolute] 273
left|right 277
relative 275
restore 277
save 277
up|down 274
\push (save current font) 252
\reserve (reserve space for subform) 278
n 278
subform 279
\subform (activate subform) 279
\t (move to next tab stop) 253

Index
\trace (trace facility) 280
\u+ (insert unicode code point) 254
\ui (unindent left margin to previous tab stop) 254
\ul (set underlining) 253, 255
\up (raise text from baseline) 255
^$page (page number) 231
^comment (insert comment in data stream) 174
^continue (continue record structure) 175
^copies (number of copies) 176
^currency (currency formatting) 176
^data (change active record definition) 179
^datagroup begin (begin data group) 179
^datagroup end (end data group) 180
^define (assign value to variable) 180
^defineresolve (assign resolved value to variable) 182
^duplex (duplex printing) 182
^eject (send formfeed to printer) 183
^fax (fax data) 184
^field (move to specific field) 188
^file (include file in data) 189
^form (open template) 191
^global (define global field) 193
^graph (print logo or raster graphic) 194
^group (execute specified group) 198
^inline (activate Inline Text Control processing)
[fixed|variable|fixed variable] 200
[freset|nofreset] 201
[novarsub|varsub] 200
{on|off} 199
^inlinegraphbegin (graphic image follows) 201
^inlinegraphend (graphic image ends) 203
^key (specify record type) 203
^macro (insert macro at current position) 204
^newfield (new field character) 204
^page (move to new page in template) 205
duplex 206
trayin 205
trayout 206
^passthru (send data directly to output) 206
^popsymbolset (restore saved symbol set) 207
^position (change placement of data) 207
[absolute] 211
left|right 215
relative 214
restore 215
save 215
up|down 213
^prefix (prefix character) 216
dictvar x 217
inline x 217
varsub x 218
x 216
^pushsymbolset (save current symbol set) 218
^record (define record structure) 219
^reformat (reformat data) 220
^shell (invoke an operating system command) 220
^subform (activate subform) 221
^symbolset (select symbol set) 222
^tab (set or clear horizontal tab stops) 225
[default] 225

346

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
[default] clear 226
^terminator (alternate newline character) 226
^trace (trace facility) 227
^trayin (input tray) 227
^trayout (output tray) 230
^undefine (clear defined variables) 231
^unrecognized-command (unrecognized command) 174
Dynamic Merge 173
Inline Text Control 232
Intelligent Pagination 256
comment, insert in data stream (^comment) 174
configuration file name (-aii) 87
configuration file, jfmerge.ini 87
location 21
configuring Print Agent 17
continue record structure (^continue) 175
convert data to UTF-8 (-autf8) 126
copies, number to print
^copies 176
-c 133
creating variable (^define) 180
CTRL+A (forced space) 324
currency formatting
^currency 176
-acu 70
currency support, multiple currencies 38
custom finish options, defining 53
custom variable 131, 132

D
-d (comma-delimited format) 65
data
changing placement
\position 268
^position 207
fax (^fax) 184
global field, reformat (-arg) 115
include file (^file) 189
passthru (^passthru) 206
passthru, changing placement
\position 268
^position 207
path (-adp) 75
reformatting
^reformat 220
global field data (-arg) 115
-r 140
sending directly to output (^passthru) 206
stream, comment (^comment) 174
data format
comma-delimited 27
comma-delimited (-d) 65
field-nominated 27, 64
fixed record 27, 64
XML 32, 64
data groups 179, 180
data groups, suppress (-axflatten) 163

Index
data symbol set for PDF417 barcodes (-apdf417conv) 103
date
two digits to four digits (-acs) 69
variable ($date) 283
debugging
\trace 280
^trace 227
-atf (trace file name) 119
-n (event trace level) 138
default font (\plain) 252
default group, JFDEFGROUP 199, 267
defining
custom finish options 53
dictionary variable (^define) 180
dictionary variable (-adv) 80
global field (^global) 193
record structure (^record) 219
delimiting Inline Text Control commands 232
dictionary
clearing variable (^undefine) 231
DocVar 57
Environment 58
Fax 58
Global 59
global variable 193
Group 60, 308
INI 60
retrieving variables from 290
Sys 61
undefining variables (^undefine) 231
User 61
variable, defining (^define) 180
variable, defining (-adv) 80
dictionary name separator prefix character
^prefix dictvar x 217
-apcd 99
directing output (-z) 154
discarding unknown fields (-afx) 84
displaying messages (-v) 153
dither gray-scale method (-agsm) 86
document variable 57
JFPREAMBLE 131
DocVar dictionary 57
downloaded template cache 20
downloading
templates quietly to printer (-q) 139
duplex mode and surface
$duplexsurface 284
\checksurface 257
duplex printing
^duplex 182
-adu 76
Dynamic Merge command prefix character
^prefix x 216
-apcc 98
Dynamic Merge commands 173
syntax 173

347

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

E
EAN-128 Barcodes 333
ejecting page (^eject) 183
end group prefix (-axendgroupprefix) 161
end group(-axuseendgroup) 170
end of line character for PDF417 barcodes (-apdf417eol) 103
end of line character for QR Code barcodes (-aqrcodeeol) 114
end of line character, MaxiCode (-amaxicodeeol) 93
end-of-page processing 192, 261, 318
Environment dictionary 58
evaluation, order, calculation expressions 296
event handler
field 312
!FldNotAvail (field not available) 316
!FldUsed (field used) 313
!Format (field formatting) 313
!OnBOF (at bottom of page) 312
!OnEntry (at activation of field) 312
!OnExit (at exit current field) 312
!OnOverflow (field overflow) 315
!OnTOF (at top of page) 312
group
!DuplexBack (at duplex page back) 309
!DuplexFront (at duplex page front) 309
!FldNotAvail (field not available) 309
!FldUsed (field used) 310
!OnBOF (at bottom of page) 311
!OnEntry (at activation of group) 311
!OnExit (at exit current group) 311
!OnTOF (at top of page) 312
!Simplex (at simplex mode) 312
JfEndData!EndData (end data processing) 312
event name separator prefix character (-apce) 100
event trace level (-n) 138
events
defining group and field 307
defining in the Group dictionary 308
exclude namespaces (-axexclude) 161
execute task exclusively (-axx) 22
executing group
\group 266
^group 198
EXOVDYN Job Table entry 121
EXOVST Job Table entry 121
expressions, calculation 292
formatting calculated values 292
functions 297
literal numbers 293
literal strings 293
numeric limits 297
operators 294
order of evaluation 296
variables 294

F
-f (file name override) 133
fax data (^fax) 184
Fax dictionary 58

Index
fax mode (-apm) 113
field
$PAGE 152
attributes, setting
^inline [freset|nofreset] 201
-afr 84
default font (\plain) 252
discarding unknown (-afx) 84
event handler 312
!FldNotAvail (field not available) 316
!FldUsed (field used) 313
!Format (field formatting) 313
!OnBOF (at bottom of page) 312
!OnEntry (at activation of field) 312
!OnExit (at exit current field) 312
!OnOverflow (field overflow) 315
!OnTOF (at top of page) 312
events, allow for global fields (-aafge) 66
events, defining 307
global
defining (^global) 193
events, allow (-aafge) 66
initializing (-agv) 87
process Output Designer global fields (-aifgf) 87
moving to specific
\field 259
^field 188
new 322
new field character
^newfield 204
-anf 96
picture formatting
\pic 242
-apf 112
processing sequence 188, 260
store data in global dictionary (-aafgd) 66
store data in global dictionary (-aafgfd) 66
fieldname (global field) 290
field-nominated format 64
file
bookmark (-abmk) 68
cache in local file system 20
configuration, path (-aii) 87
include in data (^file) 189
location, macro status table (-ams) 96
log, name (-all) 90
name variable ($file) 287
name, overriding (-f) 133
name, unique (-z) 155
open template
\form 260
^form 191
parameter (@parmfile) 157
path and file name variable ($ffile) 286
path, configuration (-aii) 87
preamble (-apr) 114
response (-arx) 115
template, download from HTTP server 20
temporary, use (-axusetempfile) 132
finish option, specify (-afinish) 81

348

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
finish options, defining 53
fixed
format record 219
leading 200
^inline fixed 200
-avl 128
record format 64
variable leading 200
^inline fixed variable 200
-avl 128
flash memory
formatting (-afmf) 82
macro residing in 137
specifying a volume number (-avnr) 129
font
adjusting size (\fs) 239
bolding (\b) 235
field default (\plain) 252
italicizing (\i) 239
just-in-time loading (-ajutf) 37, 89
load as needed (-ajutf) 89
restoring saved (\pop) 252
saving current (\push) 252
selecting by index number (\f) 237
selecting by name (\fn) 238
symbol set switching automatically (-autfss) 126
symbol set switching automatically, overview 36
using older baseline (-aob) 97, 98
forced space 324
format, commands 173
formats, graphic, supported 195, 263
formatting
calculated values 292
currency
^currency 176
-acu 70
date ($date) 283
flash memory (-afmf) 82
hard disk drive (-afdf) 81
nonvolatile memory (-afmf) 82
picture
\pic 242
-apf 112
formfeed
page, ejecting (^eject) 183
freset (set field attributes) 201
functions, calculation expressions 297

G
generic printer driver 39
global data, outputting using an XML data file 42
Global dictionary 59
global field
allow field events (-aafge) 66
data, reformat (-arg) 115
defining (^global) 193
in fixed format records 194
initializing (-agv) 87

Index
process Output Designer global fields (-aifgf) 87
processing 40
store data from ^field in global dictionary(-aafgd) 66
store data from ^field in global dictionary(-aafgfd) 66
variable (fieldname) 290
graphic
gray-scale brightness (-agsb) 85, 86
gray-scale contrast (-agsc) 85
gray-scale method (-agsm) 86
in the data stream 201
printing
\graph 263
^graph 194
^inlinegraphbegin 201
^inlinegraphend 203
supported formats 195, 263
graphic, raster 194, 263
group
activating
\group 266
^group 198
default JFDEFGROUP 199, 267
event handler
!DuplexBack (at duplex page back) 309
!DuplexFront (at duplex page front) 309
!FldNotAvail (field not available) 309
!FldUsed (field used) 310
!OnBOF (at bottom of page) 311
!OnEntry (at activation of group) 311
!OnExit (at exit current group) 311
!OnTOF (at top of page) 312
!Simplex (at simplex mode) 312
JfEndData!EndData (end data processing) 312
events, defining 307
executing
\group 266
^group 198
set current context (\group) 266
variable 198, 266
Group dictionary 60, 308
group prefix
end (-axendgroupprefix) 161
start (-axstartgroupprefix) 169
group, end (-axuseendgroup) 170

H
hard disk drive
formatting (-afdf) 81
macro residing in 138
specifying a volume number (-avnh) 129
hex indicator character, Zebra (-azc) 133
horizontal positioning
$currentx 282
$fieldx 286
\positionleft|right 277
^position left|right 215
horizontal tab stops, set or clear (^tab) 225

349

Adobe Central Output Server


Print Agent Reference for Microsoft Windows

Index

-i (record length initial value) 134


incremental loading (-axincrementalload) 164
indenting text (\li) 240
INI dictionary 60
initial display settings
PDF output 109, 110, 111
initializing global fields (-agv) 87
Inline Text Control commands 232
delimiting 232
Intelligent Pagination commands 256
prefix character
^prefix inline x 217
-apci 100
syntax 232
Inline Text Control processing
activating
^inline 199
-aitc 88
resuming (\on) 242
suspending (\off) 241
input
tray numbers
^trayin 227
-ati 121
interpret (-atj) 124
input field separator, MaxiCode (-amaxicodeifs) 94
insert macro (^macro) 204
insert Unicode code point (\u+) 254
intelligent pagination 306
Intelligent Pagination commands 256
interpret input tray numbers (-atj) 124
invoke an operating system command (^shell) 220
italics font, setting (\i) 239

-l (template already loaded) 135


label printer considerations 325
leading
fixed
^inline fixed 200
-avl 128
fixed variable
^inline fixed variable 200
-avl 128
variable
^inline variable 200
-avl 128
length of command line 157
limits, numeric, calculation expressions 297
line, skipping (-asl) 116
lines of text, space between 200
-avl 128
load font as needed (-ajutf) 89
load macro as needed (-ajutm) 89
load, incremental (-axincrementalload) 164
load-first-time macro (-mf) 137
log file name (-all) 90
logo
\graph 263
^graph 194
path (-alp) 91
lowering text from baseline (\dn) 237

J
-j (suppress banner) 134
jetkeys.ini translation file 304
JFDEFGROUP 199, 267
JfEndData!EndData (end data processing)
group event handler 312
JFMERGE Task Table entry 23
jfmerge.ini configuration file 87
location 21
JFPREAMBLE document variable 119, 131
jfurlcch.lck cache lock file 20
job id (-aji) 22
job, secure (-asj) 116
jobtokens 22
just-in-time fonts (-ajutf) 89
just-in-time macros (-ajutm) 89

K
keyed records (^key) 203

M
-m (download macro to printer)
f (load-first-time macro) 137
h (macro in hard disk drive) 138
m (managed memory macro) 137
p (permanent macro) 137
r (macro in nonvolatile memory) 137
t (temporary macro) 137
macro
already downloaded to printer (-l) 135
changing placement
\position 268
^position 207
downloading (-m) 135
insert (^macro) 204
just-in-time loading (-ajutm) 36, 89
load as needed (-ajutm) 89
load-first-time (-mf) 137
managed memory quota (-amq) 96
managed memory, downloading 137
nonvolatile memory 137
number 135
^macro 204
-m 135
permanent 137
printing
^macro 204
-m 135
residing in hard disk drive 138

350

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
temporary 137
macro status table file location (-ams) 96
managed memory macro, downloading 137
managed memory, bytes in printer (-amq) 96
map attributes (-axattributes) 158
MaxiCode end of line character (-amaxicodeeol) 93
MaxiCode input field separator (-amaxicodeifs) 94
MaxiCode message header (-amaxicodehdr) 94
MaxiCode message trailer (-amaxicodetrlr) 95
maximum command line length 157
maximum event loop 92
maximum surfaces to print (-amaxpagestoprint) 95
memory, managed in printer (-amq) 96
message header, MaxiCode (-amaxicodehdr) 94
message trailer, MaxiCode (-amaxicodetrlr) 95
message, displaying (-v) 153
moving to next tab stop (\t) 253
moving to specific field
\field 259
^field 188
multiple currency support 38
multiple presentment target support 117

N
-n (event trace level) 138
name, log file (-all) 90
namespaces, exclude (-axexclude) 161
new field character 322
^newfield 204
-anf 96
newline character
alternate
^terminator 226
-anl 97
control handling
^reformat 220
-r 140
handling for PDF417 barcodes (-apdf417bc53) 102
inserting (\n) 240
nofreset (suspend the resetting of field attributes) 201
nonvolatile memory
formatting (-afmf) 82
macro residing in 137
specifying a volume number (-avnh) 129
novarsub (suspend variable substitution processing) 200
number
copies to print
^copies 176
-c 133
macro
^macro 204
-m 135
page, changing
\$page 280
^$page 231
page, starting (-s) 152
pages in each record of print job (-atf) 119
pages, total in print job (NumberPages) 121

Index
numbering (page n of m format) 119, 121
NumberPages variable 121
numbers, literal 293
numeric character values 319
numeric limits, calculation expressions 297
numeric picture specifier 248

O
offset data on page (-p) 139
opening template
\form 260
^form 191
operators, calculation expressions 294
order of evaluation, calculation expressions 296
order, output (-axorder) 164
output
-ato 124
collate (-acollate) 69
directing (-z) 154
paper tray
^trayout 230
paper tray number 124
PDF
bookmark file (-abmk) 68
bookmark section (-abms) 69
Inline PDF macros (-apdfm) 103
staple (-afinish) 81
output order (-axorder) 164
overriding file name (-f) 133
overview, Print Agent 13

P
-p (printer offset) 139
page
full/end-of-page 318
move to new
\page 267
^page 205
number
\$page 280
^$page 231
number for $PAGE fields (-s) 152
numbering (page n of m format) 119, 121
numbering variable ($page) 287
offset data (-p) 139
printable area
bottom ($printablebottomy) 288
left limit ($printableleftx) 288
right limit ($printablerightx) 288
top ($printabletopy) 289
printing (-aap) 66
specifying number for print (-aip) 88
using older length(-aopl) 98
pages
maximum to print (-amaxpagestoprint) 95
print subset (-apg) 112
total in each record of print job (-atf) 119

351

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
total in print job (NumberPages) 121
paper tray number, output
^trayout 230
paper tray numbers, input
^trayin 227
-ati 121
interpret (-atj) 124
passthru data (^passthru) 206
passthru data, changing placement
\position 268
^position 207
password, printer 116
path
data (-adp) 75
logo (-alp) 91
template (-afp) 82
path and file name variable ($ffile) 286
PDF output 42
bookmark file (-abmk) 68
bookmark section (-abms) 69
initial display settings 109, 110, 111
Inline PDF macros (-apdfm) 103
security features 104, 105, 107, 108
PDF417 barcodes
data symbol set (-apdf417conv) 103
end of line character (-apdf417eol) 103
newline character handling (-apdf417bc53) 102
permanent macro 137
PGCNTGET Task Table Entry 121
PGCNTSET Task Table entry 121
picture
clause 243
formatting
\pic 242
-apf 112
specifier
date 245
numeric 248
text 250
time 245
positioning 268
absolute
\positionabsolute 273
^position absolute 211
bottom of printable area ($printablebottomy) 288
horizontal
$currentx 282
$fieldx 286
\positionleft|right 277
^position left|right 215
left limit of printable area ($printableleftx) 288
relative
\positionrelative 275
^position relative 214
restore saved
\positionrestore 277
^position restore 215
right limit of printable area ($printablerightx) 288
save current
\positionsave 277

Index
^position save 215
top of printable area ($printabletopy) 289
vertical
$currenty 282
$fieldy 286
\positionup|down 274
^position up|down 213
preamble
execute at start-up (-axps) 131
execute upon processing ^form (-axpf) 131
preamble file, inserting (-apr) 114
prefix character
dictionary name separator 322, 323
^prefix dictvar x 217
-apcd 99
Dynamic Merge command 322
^prefix x 216
-apcc 98
event name separator (-apce) 100
Inline Text Control 323
^prefix inline x 217
-apci 100
variable substitution 323
^prefix varsub x 218
-apcv 101
presentment target, select (-asp) 117
presentment targets
using generic 39
Print Agent
calling 22
configuration file, jfmerge.ini 87
configuring 17
processing options 65
using with Central 22
Print Agent samples 15
print fax mode (-apm) 113
print subset of pages (-apg) 112
printable area of page
bottom ($printablebottomy) 288
left limit ($printableleftx) 288
right limit ($printablerightx) 288
top ($printabletopy) 289
printed lines of text, space between 200
-avl 128
printer association table (-aat) 67
printer command, duplex printing 79
printer offset (-p) 139
printer password 116
printer strings 321
printer tray number, output
^trayout 230
-ato 124
printer tray numbers, input
^trayin 227
-ati 121
interpret (-atj) 124
printer, bytes of managed memory (-amq) 96
printer, label, considerations 325
printing
all pages of a template (-aap) 66

352

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
blank template 14
-m 135
copies
^copies 176
-c 133
duplex
^duplex 182
-adu 76
graphic
\graph 263
^graph 194
^inlinegraphbegin 201
^inlinegraphend 203
logo or raster graphic (\graph) 263
logo or raster graphic (^graph) 194
macro
^macro 204
-m 135
maximum surfaces (-amaxpagestoprint) 95
offset data on page (-p) 139
only pages with fields (-aap) 66
start at page specified (-aip) 88
Unicode Windows (-auwp) 127
processing
barcodes (-aeb) 80
end-of-page 192, 261, 318
fields 188, 260
global fields 40
Inline Text Control commands
^inline 199
-aitc 88
multiple currencies 38
options, Print Agent 65
PDF output 42
variable substitution 200
^inline [varsub|novarsub] 200
-avs 129
XML format data files (-axml) 130

Q
-q (quiet download) 139
QR Code barcodes
end of line character (-aqrcodeeol) 114
queue, output 155

R
-r (reformat data) 140
clip 148
fold 144
no 143
off 146
trunc 150
yes 140
raster graphic 194, 263
record
definition, change active (^data) 179
fixed format 194, 219

Index
structure, continue (^continue) 175
structure, defining (^format) 219
type, specify (^key) 203
record length initial value (-i) 134
records, specify (-axrecord) 167
reformatting data
^reformat 220
in global fields (-arg) 115
-r 140
relative positioning
\positionrelative 275
^position relative 214
renumbering pages 152
replace characters (-arc) 114
replace line, !Replace! 316
replacing a variable (@variable) 282
resetting field attributes 201
response file (-arx) 115
restoring
saved font (\pop) 252
saved position
\positionrestore 277
^position restore 215
saved symbol set (^popsymbolset) 207
resuming Inline Text Control processing (\on) 242

S
-s (starting page number) 152
samples, Print Agent features 15
saving
current font (\push) 252
current symbol set (^pushsymbolset) 218
positioning location
\positionsave 277
^position save 215
section, bookmark (-abms) 69
secure job (-asj) 116
security features
PDF output 104, 105, 107, 108
security level 62, 220
select presentment target (-asp) 117
selecting
color by index number (\c) 235
color by name (\cn) 236
font index number (\f) 237
font name (\fn) 238
symbol set
^symbolset 222
-ass 117
sending
data directly to output (^passthru) 206
formfeed to printer (^eject) 183
setting
bold font (\b) 235
current group context (\group) 266
field attributes
^inline [freset|nofreset] 201
-afr 84

353

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
group (\group) 266
italics font (\i) 239
style attributes off (\normal) 241
variable leading (-avl) 128
variable substitution (-avs) 129
simplex mode, check surface 257, 284
skipping
characters (-asc) 116
lines (-asl) 116
space, forced 324
special characters
: (dictionary name separator) 322, 323
@ (variable substitution) 323
\ (Inline Text Control command prefix) 323
^ (Dynamic Merge command prefix) 322
` (new field) 322
~ (alternate newline) 324
CTRL+A 324
special variables 291
specify code page (-axcodepage) 160
specify finish option (-afinish) 81
specify PDF initial page layout (-apdflayout) 109
specify PDF initial page magnification (-apdfzoom) 111
specify PDF initial page number (-apdfopentopage) 110
specify record type (^key) 203
specify records (-axrecord) 167
specify start node (-axstartnode) 169
staple printed output (-afinish) 81
staple support 52
start group prefix (-axstartgroupprefix) 169
start node, specify (-axstartnode) 169
starting page number (-s) 152
strings, printer 321
style attributes, setting off (\normal) 241
stylesheet, XSLT (-axaxsl) 159
subform
activating
\subform 279
^subform 221
changing placement
\position 268
^position 207
reserving space for (\reserve) 278
subscripting text (\dn) 237
substitution variables 281
superscripting text (\up) 255
support for multiple currencies 38
supported graphic formats 195, 263
suppress data groups (-axflatten) 163
suppressing banner (-j) 134
surface, check front or back 257, 284
surface, maximum to print (-amaxpagestoprint) 95
suspending Inline Text Control processing (\off) 241
switch font symbol sets automatically (-autfss) 126
symbol set
mixed symbol set processing 36
restoring saved (^popsymbolset) 207
saving current (^pushsymbolset) 218
selecting
^symbolset 222

Index
-ass 117
specifying translation table file 125
supported sets 222
switching automatically (-autfss) 126
symbol set for PDF417 barcodes (-apdf417conv) 103
symbol set translations, jetkeys.ini 304
syntax
command format 173
command line 63
Dynamic Merge commands 173
Inline Text Control commands 232
Sys dictionary 61

T
tab
moving to next stop (\t) 253
stops, set or clear (^tab) 225
Task Table entry, JFMERGE 23
task, execute exclusively (-axx) 22
template
already downloaded to printer (-l) 135
blank, printing 14
discarding unknown fields (-afx) 84
download from HTTP server 20
downloading quietly to printer (-q) 139
loaded as macro in printer (-l) 135
macro number
^macro 204
-m 135
move to new page
\page 267
^page 205
number of copies to print
^copies 176
-c 133
opening
\form 260
^form 191
path (-afp) 82
printer offset (-p) 139
printing (-aap) 66
starting page number (-s) 152
temporary file, use (-axusetempfile) 132
temporary macro 137
text
bolding (\b) 235
indenting (\li) 240
italicizing (\i) 239
lowering from baseline (\dn) 237
raising from baseline (\up) 255
subscripting (\dn) 237
superscripting (\up) 255
underlining (\ul) 253, 255
unindenting (\ui) 254
threshold gray-scale method (-agsm) 86
trace level, event (-n) 138
tracing
\trace command 280

354

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
^trace command 227
-atf command line option 119
-n (event trace level) 138
trailing blanks 324
translation file, jetkeys.ini 125, 304
tray number, output
^trayout 230
-ato 124
tray numbers, input
^trayin 227
-ati 121

U
underlining text (\ul) 253, 255
Unicode code point
inserting (\u+) 254
Unicode transformation format 117, 224
Unicode Windows printing (-auwp) 127
unindenting text (\ui) 254
unique file name, generate (-z) 155
unknown fields, discarding (-afx) 84
unrecognized command (^unrecognized-command) 174
UPS Maxicode 2D Barcodes 336
UPS MaxiCode barcode 93, 94, 95
URL when specifying MDFname 221, 279
use ^form command (-axuseformcommand) 171
use temporary file (-axusetempfile) 132
use xslt stylesheet (-axaxsl) 159
User dictionary 61
USPS Intelligent Mail Barcodes 339
UTF Transformation Formats 224
UTF-8, convert data (-autf8) 126

V
-v (message display) 153
variable
assigning resolved value
\defineresolve 258
^defineresolve 182
assigning value (^define) 180
bottom of printable area ($printablebottomy) 288
clearing value (^undefine) 231
creating (^define) 180
current date ($date) 283
current file name ($file) 287
current page number ($page) 287
current path and file name ($ffile) 286
current time ($time) 289
custom 131, 132
dictionary, defining (-adv) 80
document, JFPREAMBLE 131
duplex mode and surface ($duplexsurface) 284
global field (fieldname) 290
horizontal distance to field ($fieldx) 286
horizontal positioning ($currentx) 282
leading
^inline variable 200

Index

355

-avl 128
left limit of printable area ($printableleftx) 288
NumberPages 121
replacing (@variable) 282
right limit of printable area ($printablerightx) 288
substitution 281
processing 200
top of printable area ($printabletopy) 289
vertical distance to field ($fieldy) 286
vertical positioning ($currenty) 282
variable substitution
prefix character
^prefix varsub x 218
-apcv 101
processing
^inline [varsub|novarsub] 200
-avs 129
variables
$currentx (current horizontal position) 282
$currenty (current vertical position) 282
$date (current date) 283
$duplexsurface (duplex mode and surface) 284
$ffile (current path and file name) 286
$fieldx (horizontal distance to field) 286
$fieldy (vertical distance to field) 286
$file (current file name) 287
$page (current page number) 287
$printablebottomy (bottom of printable area) 288
$printableleftx (left limit of printable area) 288
$printablerightx (right limit of printable area) 288
$printabletopy (top of printable area) 289
$time (current time) 289
@variable (replace a variable) 282
{[dictionary-name]:} variable-name (retrieve variables from
dictionary) 290
calculation expressions 294
fieldname (global field) 290
NumberPages 121
special 291
varsub (variable substitution processing) 200
vertical positioning
$currenty 282
$fieldy 286
\positionup|down 274
^position up|down 213
volume number
specifying for flash memory (-avnr) 129
specifying for hard disk (-avnh) 129
specifying for nonvolatile memory (-avnr) 129

X
XML data processing
-axattributes (map attributes) 158
-axaxsl (use xslt stylesheet) 159
-axcodepage (specify code page) 160
-axendgroupprefix (end group prefix) 161
-axexclude (exclude namespaces) 161
-axflatten (suppress data groups) 163

Adobe Central Output Server


Print Agent Reference for Microsoft Windows
-axincrementalload (incremental loading) 164
-axorder (output order) 164
-axrecord (specify records) 167
-axstartgroupprefix (start group prefix) 169
-axstartnode (specify start node) 169
-axuseendgroup (end group) 170
-axuseformcommand (use ^form command) 171
process as XML data format (-axml) 130
XML format 32, 64
xslt stylesheet, use (-axaxsl) 159

Index

Y
year, two digit to four digit (-acs) 69

Z
-z (direct output) 154
Zebra hex indicator character (-azc) 133

356

Anda mungkin juga menyukai