DOC1 Users Guide
DOC1 Users Guide
Customer
Communications
Management
This publication and the software described in it is supplied under license and may only be used or copied in
accordance with the terms of such license. The information in this publication is provided for information only,
is subject to change without notice, and should not be construed as a commitment by Pitney Bowes Software
Europe Limited ("PBSE"). To the fullest extent permitted by applicable laws PBSE excludes all warranties,
representations and undertakings (express or implied) in relation to this publication and assumes no liability or
responsibility for any errors or inaccuracies that may appear in this publication and shall not be liable for loss or
damage of any kind arising from its use.
Except as permitted by such license, reproduction of any part of this publication by mechanical, electronic,
recording means or otherwise, including fax transmission, without the express permission of PBSE is prohibited
to the fullest extent permitted by applicable laws.
Nothing in this notice shall limit or exclude PBSE liability in respect of fraud or for death or personal injury
arising from its negligence. Statutory rights of the user, if any, are unaffected.
*TALO Hyphenators and Spellers are used. Developed by TALO B.V., Bussum, Netherlands
Copyright © 1998 *TALO B.V., Bussum, NL
*TALO is a registered trademark ®
Encryption algorithms licensed from Unisys Corp. under U.S. Patent No. 4,558,302 and foreign counterparts.
Security algorithms Copyright ©
1991-1992 RSA Data Security Inc.
Datamatrix and PDF417 encoding, fonts and derivations
Copyright © 1999, 2000 DL Technology Ltd.
All rights reserved
Barcode fonts Copyright © 1997 Terrapin Solutions Ltd. with NRB Systems Ltd.
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
This product contains the Regex++ library
Copyright © 1998-2000
Dr. John Maddock
PostScript is a trademark of Adobe Systems Incorporated.
PCL is a trademark of Hewlett Packard Company.
ICU License – ICU 1.8.1 and later
Copyright (c) 1995-2006 International Business Machines Corporation and others
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above
copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this
permission notice appear in supporting documentation.
Otherwise all product names are trademarks or registered trademarks of their respective holders.
Contents
PREFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Document structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Design basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Page structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Including data references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Tables and transaction tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Document logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3
Contents
CREATING PARAGRAPHS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Entering and formatting text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Right to left text entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Default editor font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Changing the language mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Formatting marks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Hyphenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Spell checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Positioning text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Paragraph alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Tab stops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Rotating text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Pagination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Widows and orphans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Conditional paragraphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Merging paragraphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
System variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
URL links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4
Contents
Drawing shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Using images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Text boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Rotating text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Runaround margins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Order of graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
PAGE LAYOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Page setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Page size and orientation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Margins and body area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Page headers and footers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
USING TABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Table positioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Basic editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Pagination. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
5
Contents
6
Contents
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Deleting variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
7
Contents
Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Data driven character styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Using character styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Address block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Date calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Barcodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Standard barcodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Font scaling barcodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Line drawing barcodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Previewing barcodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Lookup table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Substring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
System variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Vector offsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
CHARTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Chart axes and scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Sequencing and indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Bar and stack charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Line charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Pie charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Scatter charts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
8
Contents
LOCALIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
About locales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Creating and customizing locales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
9
Contents
10
Contents
11
Contents
AFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
File structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Metacode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
JDL adjustments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
As VSAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
PCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
PostScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
DSC comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Resource embedding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Image caching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
Printer resident images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
12
Contents
PDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Document security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Resource handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
E-mail distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
RTF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
HTML client/server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
HTML for e-mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
IJPDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
RIP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
Color management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Dithering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Configuration wizard settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
MIBF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
Configuration wizard settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
13
Contents
Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
14
Contents
APPENDICES 407
INDEX 439
15
Preface
This guide covers the components, programs and features that are supplied as part of the
DOC1 Designer and DOC1 Generate licensed products. It also provides detailed information
about the DOC1 Work Center which acts as the repository and launch pad for DOC1 design
and control objects.
It is important to note that not all features and objects discussed in the guide will be
immediately available to all users. The way in which the DOC1 Work Center is presented to
users may be customized by an Administrator to accommodate a user’s level of experience or
role within the DOC1 workflow. An Administrator may also choose to implement a security
strategy that restricts access to particular projects, files or objects within the repository.
Finally, the DOC1 license owned by your company may not allow access to all design features
and will probably restrict the systems on which DOC1 Generate may run and the types of
output datastream it can produce.
DOC1 Series 5 is a new generation of document composition tool and resource files from
earlier versions of DOC1 are not automatically compatible with the editors and production
environment of the new product.
Other than in regard to the repository features of the DOC1 Work Center, this guide deals
exclusively with the editors and programs that form part of DOC1 Series 5. If you are working
with legacy applications you should refer to the Designers Guide and Production Guide that
relates to the appropriate level of resources.
Document structure
All new users should read “Getting started” on page 18.
Novice users who need to create or amend page layouts are recommended to refer to the
section “Designing Page Layouts” on page 26 for information about working with the
document editor.
For information about creating and maintaining the definitions of the input data to be used
by DOC1 Generate refer to “Identifying Input Data” on page 249.
When you are ready to make a publication live refer to “Into Production” on page 284.
16
Preface
Administrators who need to manage the objects within the repository and perform other
housekeeping should refer to “Administrative and Repository Tasks” on page 382.
17
Getting started
The DOC1 Work Center can be configured to support a wide range of site requirements and
what you see when you first login to the system will depend on your user profile. Some profiles
will assume you only want to work with publication designs and the Work Center will launch
with the document editor. Other profiles will launch the Work Center Manager that provides
views of the file repository and access to other types of resources.
Your user profile also determines what types of resources you are allowed to work with. If you
have created a new repository when installing DOC1 (typically done by the first DOC1 user at
a site) you will have Administrator rights by default and have access to all file types.
Workflow
DOC1 provides an integrated environment for designing and publishing personalized
customer communications. Within the DOC1 Work Center the document editor allows you to
combine page layouts and document logic with references to variable data typically emanating
from your customer data bases. Specialized controls allow you to handle the repeating data –
typically transaction records or similar – that is commonplace in these kind of
communications.
In the production environment such variable data is provided to DOC1 in an input data file
and before a publication can be put into production the type and structure of the input data
must be defined within a data format. However, you do not need a data format to work with
variable data in your designs. Data aliases are used to allow you to indirectly indicate the
records and fields that will be available at production time. These are grouped into data
dictionaries to allow reuse and control. Once a data format has been defined you can map the
data fields to the actual structures in the input data.
Document designs and other design resources are stored in a repository that provides version
control and multi-user access management where required. When working with design objects
you can save them as drafts but before they can be used in production they must be issued
which creates a new revision within the repository.
The Work Center also allows you to specify the settings that will control a publication in the
production environment, i.e. information about the intended output device and the host
system on which the job will run. At publication time, the document designs, data format,
production information and the resources required to actually present the output from the
publication are merged into a single file that is used by DOC1 Generate to manage
production jobs.
DOC1 Generate produces one or more output datastreams in a format suitable for your target
output devices.
18
Getting started
Design basics
A publication is the DOC1 file that is actually put into production. It references one or more
document files which contain the actual page layouts and associated logic. If required, you
can use the same document in multiple publications.
| To start work on a new publication: from the File menu select New Publication. A new
document will be created automatically and the document editor window will be launched
with this file loaded.
Page structure
When you start work on a new 1
document you will typically be creating
7
material for the body area of the pages 2
to be created. The area available for the
body is the remaining space once page
margins, headers and footers, and any
reserved areas have been taken into
consideration. Content in the body area
flows onto new pages as required. 3
8
6 Unprintable area
You can create text boxes that act as a container for specific content. You can use a text box
simply to highlight particular content or as a reserved area which text will flow around.
19
Getting started
All graphics including generic shapes, text boxes, charts and references to external image files
are positioned relative to their predecessor in the document flow by default. You can also use
fixed or inline (within paragraph text) anchor positions.
You can create new data fields or records as you work or reference existing ones. Data aliases
are grouped together into a data dictionary that, for example, represents all the data available
to a particular type of application.
You can insert references to most data fields directly into paragraph text as required. However,
when you need to reference elements within a repeating data structure – records or fields
that appear iteratively such as transaction details – you will need to use a transaction table to
control how they are positioned.
The Table Wizard allows you to create the basic structure quickly and easily and controls for
any type of table. Once created you can modify the table layout and settings as required.
Document logic
When you are working with document designs you are actually doing two things:
• You are designing the look of the document pages, i.e. the text and graphics to be
presented and their relative positions.
• You are specifying the sequence of objects and associated logic that will determine how
the publication is processed in the production environment.
20
Getting started
When you are working with simple designs you may often not
need to be aware of the logic that is being created. It is simply a
flow of paragraphs, tables and graphics across document pages.
| To turn on the logic map view: from the View menu select Logic Map.
The selected
resource will open
in this workspace.
21
Getting started
| To turn on the Work Center Manager: from the View menu select Manager/All.
| To show a resource category not currently displayed: select the relevant category from
the view menu.
22
Getting started
The publishing process also updates a data map to provide links to the data format for any
unresolved data aliases in your publication designs.
At the completion of a publishing task a HIP file is created and is deployed to the location
indicated in the selected host object. If the necessary connectivity is available, deployment
can automatically copy the HIP to your host platform using FTP or APPC connections or you
can deploy the file locally and manually copy to your production platform.
23
Getting started
In the EngageOne Interactive environment, font and image resources are placed by the
EngageOne publishing task within independent files that must be created and deployed in
conjunction with requests from the EngageOne server. For more information about
EngageOne see “Creating EngageOne templates” on page 209.
In the production environment DOC1 Generate is the batch program that processes jobs on
your chosen host system. You will need to specify the HIP file that controls the publication as
a parameter when starting the program. Generate merges input data with your publication
designs and produces output datastreams ready for printing or presenting on your intended
output devices.
24
Getting started
| To access the Work Center preferences: from the Tools menu select Work Center Preferences
and the dialog box is displayed.
Messages have a unique message ID associated with them which you should quote if you need
to contact your DOC1 supplier when reporting a problem. A severity tag is also displayed with
each message:
| To display the event log: click on the logs icon in the Click here to view
status bar. the event logs.
25
Designing Page Layouts
About the document editor
The document editor is where you design
actual page layouts. When you create a new L AS WELL AS THE MAIN PAGE WORK SPACE, THE
LOGIC MAP VIEW MAY ALSO BE ENABLED WHEN THE
publication the editor will be invoked with a EDITOR IS LAUNCHED. REFER TO “USING THE
blank page ready for your input. Depending LOGIC MAP” ON PAGE 94 FOR DETAILS.
on your user profile this may also be the view
you see by default when the DOC1 Work Center is initiated.
By default, you will be working with the document view where content intended for the body
area of the document is created. You may also want to work with the page setup view which
allows you to create content for headers and footers and the background layer. Both views
share the same editing features. See “Page layout” on page 62 for details of these views and the
page areas they allow you to define.
Switch between the
Document and Page
Zoom the view Setup views.
in or out.
Use the toolbar buttons as
shortcuts for settings and functions.
Choose which toolbars you see
using the View menu.
27
About the document editor
Editing features
The editor provides standard editing features that enable you to create documents. The menus
and toolbars give you access to all the editing options. The layout of these can be customized
to some extent.
Text and graphics can be copied and moved by selecting it and using the clipboard as a
temporary store for it. If you make a mistake when editing, you can retrace your steps using the
undo and redo options.
| To hide or display a toolbar: on the View menu click Toolbars and then clear or select the
relevant toolbar check box.
Docking bar
28
About the document editor
The preferred UOM is also used as the default in dialogs that require a measurement although
you can override this as required. You can specify a different UOM simply by adding one of the
following abbreviations after the number.
You can also use the grid to help with placement. You can set the grid size to your preference
and optionally have graphics snap to grid intersections when you are creating or moving them.
| To set all grid, ruler and UOM preferences: from the Tools menu select Options and apply
settings as required.
| To override ruler settings and UOM: right-click on the ruler and select from the drop
down list.
| To turn the grid on and off: click on the Toggle Grid button
– or –
on the View menu click Grid.
| To select text and graphics using the mouse: use one of the following shortcuts:
29
About the document editor
| To select paragraph text using the keyboard: use one of the following shortcuts:
| To cancel a selection: click anywhere else on the page or press any arrow key.
| To delete selected elements: use the Delete key on the keyboard or click Clear from the
Edit menu.
Copy selected text and graphics onto the on Edit menu click Copy
clipboard: or press
or CTRL+C
Move (i.e. copy and delete) selected text and on Edit menu click Cut
graphics onto the clipboard: or press
or CTRL+X
Paste contents of the clipboard into the on Edit menu click Paste
document: or press
or CTRL+V
Paste contents of the clipboard, such as on Edit menu click Paste Special. If applicable,
content from a spreadsheet or PDF into the select the format you want to use to paste the
document: contents and click OK.
30
About the document editor
| To find and replace: from the Edit The Font tab is used The Object tab is used
menu select Find and Replace. Select the to find and replace the to find and replace
relevant tab to search for text, fonts or font, font style, size, values e.g. data fields
color and language. and variables.
objects.
31
About the document editor
Refresh
The refresh option is used to refresh the view of the document being edited in the editor.
Boundary indicators
You can optionally choose to show the outline of layout areas such as
text boxes, address blocks, charts and so on. Boundaries are
indicated by a grey outline around the layout area.
Select the object by clicking
| To switch boundaries on and off: click the toolbar button anywhere in the layout area
– or – or on its border.
from the View menu choose Show Boundaries.
32
Creating paragraphs
Text will automatically wrap onto new lines when the available width is exceeded, using
hyphenation when specified, although you can force particular text strings to be kept together
on the same line if required. Pressing the Shift and Return keys together forces a new line
without creating a new paragraph. In the main body area text also flows onto a new page when
the current page is full.
When you start typing, the text is created using the active format – the font being used, its
style, color and so on. You can change the format at any time or amend the format of existing
text as required. Note that when you move the insertion point into existing text, the current
format will be picked up from the text to the right of the insertion point. You can, of course,
change the format before typing.
| To adjust the formatting of text: highlight the text to be changed and either use the text
formatting toolbar options
– or –
on the Format menu click Font. This will invoke the Font dialog box where you can format the
selected text.
33
Creating paragraphs
When the direction is right to left, text is entered using the keyboard in the same manner as if
typing left to right text. Paragraphs can include bidirectional text and you must ensure that
the direction of the paragraph is correct.
| To set the direction of a paragraph to right to left: invoke the corresponding Paragraph
dialog box. Under Presentation set the Alignment as required and the Direction to Right to Left.
– or –
use the Right-to-left button on the Text formatting toolbar.
You can use the formatting toolbar to change font attributes without affecting the default
font. Changes made to the default font do not affect the text in existing publications and
presentation objects.
| To change the default font: select Tools/Options. Click the Edit tab and choose the
required font.
34
Creating paragraphs
when characters are entered. In some exceptional circumstances this may not be the case and
you will need to set the intended language for specific text. You can use the Unicode Language
option for complex scripts and languages that do not map to a standard Windows character
set.
An additional option is available for changing the language mapping when text is entered in
the DOC1 editor using a Windows Input Method Editor (IME). If this option is selected when
characters are entered into a document using the IME, the characters displayed in the
document will use the mappings that correspond to the custom code page in DOC1 and not
the character set associated with the language and font of the IME.
| To use custom code pages for keyboard entry: select Tools/Options and select the
Language/encoding mapping tab and click the Use custom code pages for keyboard entry option.
| To reset the language mapping: select Tools/Options and select the Language/encoding
mapping tab and click Reset All.
35
Creating paragraphs
Formatting marks
Formatting marks are non-printing Tab character Paragraph marker
characters that indicate controls within
paragraphs such as end markers, spaces,
tab characters and so on. Displaying them
shows you exactly what you have typed
and can help to highlight layout
problems, for example, where you have
typed several spaces rather than a tab Soft return
character. Hiding them shows you more Space End of section Non-breaking space
how the finished page might look and
also removes empty paragraph objects from the logic map. Even if formatting marks are
showing, they will not be in the final output.
| To show/hide formatting marks: click the Formatting Marks button or select View/Show
all Paragraphs to switch them on or off.
Hyphenation
Text in most Latin based languages can be
automatically hyphenated by DOC1 if L NOTE THAT TEXT WILL NOT BE HYPHENATED IF THE
‘KEEP TEXT TOGETHER ’ OPTION IS IN FORCE.
required. This is initially set for the entire ALSO, TEXT IN RIGHT-TO-LEFT PARAGRAPHS CAN
document but can be overridden as NOT BE HYPHENATED.
necessary for specific paragraphs.
| To set hyphenation for a document: in either the Publication view or the Document view
double-click on the relevant document. In the Document dialog box select or clear the Enable
hyphenation option.
| To turn off hyphenation for a specific paragraph: select the relevant paragraph and on
the Format menu click Paragraph. In the Presentation section of the Paragraph dialog box select
the Don’t hyphenate option.
Spell checking
Spell checking is performed using the
dictionary associated with the current DOC1 L FOR MORE INFORMATION ON LOCALES, SEE
“LOCALIZATION” ON PAGE 190.
locale. Each locale has a default dictionary
associated with it. You can change the
locale’s dictionary, but you must ensure that the language corresponds to the locale for the
spell checker to be accurate.
36
Creating paragraphs
| To change the spell settings: on the Tools menu select Spell settings and change the
settings as required.
Positioning text
Paragraphs are positioned in relation to one indentation
another and the edges of the working area; for
example, the margins of the body area or the
sides of a text box or table cell. You can paragraph
customize how they are aligned (or justified) alignment spacing
before/after
between the left and right edges, any
indentation to be used from those edges, the
line spacing within individual paragraphs and line
spacing
the gap required between adjacent paragraphs.
37
Creating paragraphs
Paragraph alignment
Paragraphs are aligned between their left and
right indentations – shown as on the ruler. Left aligned
Alignment is applied to the whole paragraph,
so if you want a different layout for certain
lines, you must create a separate paragraph Center aligned
for them.
Right
Justified
Fully justified
– or –
on the Format menu click Paragraph. In the Presentation section of the Paragraph dialog box set
the required Alignment option.
Spacing
You can specify both space before and after a
paragraph, and space between lines within a paragraph. paragraph
spacing
For paragraphs you can specify both the amount of
space to be inserted after the preceding paragraph, line
and the amount of space before the following spacing
paragraph. If consecutive paragraphs have conflicting
'before' and 'after' values then the greater value will be
used – for example if two paragraphs have the space
above set to 0.1" and the space after set to 0.2", then the paragraph spacing will be 0.2".
Line spacing determines the space between the lines within a paragraph.
Single: represents the standard amount of line spacing for the largest font in the
paragraph. 1.5 lines and Double are increments of this default.
Multiple: as for Single, but uses the value specified as a multiple of the line, e.g. 1.2 will
increase the line spacing by 20%; 0.8 will decrease it by 20%.
38
Creating paragraphs
At least: lines will be spaced by at least the specified amount, but will be more as required by
the content of each line.
Exactly: lines are spaced using the
specified value, regardless of the L NOTE THAT ONLY EXACTLY WILL SPACE ALL THE
LINES IN THE PARAGRAPH THE SAME. ALL OTHER
size of the content of a line. SETTINGS CAN PRODUCE DIFFERENT LINE
SPACINGS WITHIN A PARAGRAPH DEPENDING ON
THE CONTENT OF EACH INDIVIDUAL LINE, FOR
EXAMPLE IF THERE IS AN INLINE GRAPHIC.
| To adjust paragraph or line spacing: on the Format menu click Paragraph. In the Paragraph
section of the Paragraph dialog box set the required Spacing options.
Indentation
Paragraphs are, by default, positioned at the left and right edges of the working area (for the
body area, these are set by the page margins). However, you can specify a gap between these
edges and the paragraph by applying indentation.
39
Creating paragraphs
top margin
right indent
left indent
bottom
margin
Hanging indent
A hanging indent is where all lines first line indent
except the first one are indented. The hanging indent
hanging indent is measured from the
left, or first line indent.
40
Creating paragraphs
| To create a hanging indent: move the hanging indent marker on the ruler to the required
position
– or –
on the Format menu click Paragraph. Select Hanging from the Special indentation drop-down
list. Enter the amount to indent in the By field.
Tab stops
Any number of tab stops can be center tab
right tab
specified in a paragraph. They can be left tab character tab
left, right, centered, or aligned on a
tab selector
character. A character tab will align on
the first occurrence of the specified
character. If this is not in the text, then a
tab the same as the paragraph
justification will be used.
If there are no tab stops specifically set in a paragraph, then, by default, tab stops will be set at
regular intervals on the ruler. These will be the same as the paragraph alignment, e.g. right
tabs in a right aligned paragraph.
41
Creating paragraphs
| To insert a tab stop: click the tab Set the position and
selector on the ruler until the required alignment of a tab
tab stop is shown. Then click on the stop to be added or
changed.
ruler at the position where you want to Set default tab stops
for the document.
place the tab stop. The tab stop will be
inserted on the ruler
– or –
Add a tab stop.
on the Format menu click Tabs. The Tabs
page of the Paragraph dialog box will be
displayed. Specify a tab stop and click
Add.
| To modify an existing tab stop: on the Format menu click Tabs, select the tab stop from the
list and change its Alignment, Character and Dot leaders as required.
| To remove a tab stop: either select the tab stop on the ruler and drag it off the ruler
– or –
on the Format menu click Tabs, select the tab stop from the list and then click Remove, or click
Remove All to delete all tab stops.
| To remove all tab stops: on the Format menu click Tabs and then click Remove All.
| To set default tab stops: on the Format menu click Tabs. Enter the interval between tab
stops under Default Tab Stops.
Dot leaders
Dot leaders can be used between tab stops to help readability. When a leader is applied to a
tab, a row of dots is inserted between the end of preceding text and the current tab stop. This
is typical of table of contents and similar styles.
| To insert a dot leader: on the Format menu click Tabs, select the tab stop from the list and
tick Dot leaders.
Rotating text
Text can be rotated only when it is in a text box, see “Rotating text” on page 56 for details.
42
Creating paragraphs
Select a different
font style for the
bullets or numbering.
43
Creating paragraphs
Pagination
There are various options you can use
that affect how a paragraph is positioned
and the text flow. You can force the Select to start the
paragraph to start at the top of a page, paragraph at the top
keep a minimum number of lines together of the next page Select to stop the
paragraph being split
if a page break splits a paragraph (widows across a page break
and orphans), or never allow a page break
to split a paragraph so that the entire
paragraph is kept together.
44
Creating paragraphs
Conditional paragraphs
Paragraphs can be made conditional so that they appear when certain criteria are met, for
instance, you may want to show a paragraph only if a customer has a certain type of account.
You will typically want to use values from data fields and variables that have been made
available to the publication as part of the condition.
Note that if you make a paragraph Select to make Choose the When more than one
conditional it will not be shown in the the paragraph type of condition is defined
editor if the specified condition conditional. condition. select either:
And – all true
evaluates to false. To change the settings Or – any one true.
you will need to use the logic map to
work with the relevant paragraph
object. See “Using the logic map” on
page 94 for more information.
45
Creating paragraphs
Merging paragraphs
You can optionally join content from two
adjacent paragraphs to form a single
paragraph in your output. This would
typically be used to join text from
conditional logic or from within Active
Content objects.
This paragraph forms part of an
When merging paragraphs you need to be active content object and is
aware of the following: included in the main document
with its merge setting off.
• Joined paragraphs continue to
appear as separate objects in the
The same document is
logic map. shown here with the
paragraph’s merge
• Paragraphs are considered to be option selected in the
‘adjacent’ if they are not separated active content object.
by another content object in the
sequence of logic map objects. For example, two paragraphs separated by one or more
condition objects can be merged but not where separated by a graphic object.
• When paragraphs are merged, paragraph attributes are gathered solely from the first
paragraph in the sequence. Character attributes are unaffected by a merge.
| To specify the merge option: open the paragraph object in the logic map and from the
Control tab specify the required merge options
Text in RTF format may be slightly different depending on which application it was created by.
Should you experience inconsistencies, open the RTF file in Windows WordPad and save it (as
an RTF file). You can then import from this file.
| To import RTF content: from the Insert menu select Presentation Objects/RTF. Browse to the
RTF file and click Open.
46
Creating paragraphs
Symbols
Although most commonly used characters and symbols can be entered from the keyboard,
some required several key presses, for example, to type in the registered mark ® in most
common fonts, you would have to type Alt+0174. A menu option is provided which accesses
the Windows Character Map, where you can choose the character or symbol you want to enter.
| To insert a symbol: on the Insert menu click Symbol or click the toolbar button. In the
Character Map select the required font and choose the characters you want. Copy them and
then paste them into your document.
System variables
A system variable allows you to insert dynamic information that will be resolved at production
run time, for example the system date or the current page number being processed. Some
options generation date or page numbers. It can be formatted in various ways, depending on
the information being shown, for instance, the page number can be Arabic numbers (1,2,3…),
Roman numerals (i,ii,iii…), or alpha (a,b,c).
47
Creating paragraphs
48
Creating paragraphs
URL links
URL links can be included in applications that are intended for web enabled output. If they
are used in non–web enabled output then the display text or graphic is still shown, but the
link will be inactive.
Press Ctrl+left-click
on the URL to view
the destination.
49
Working with graphics
In a document design you can reference image files created elsewhere or you can draw simple
graphics using the editor’s drawing tools. These are known collectively as shapes.
You can control how graphics interact with paragraphs by specifying how text flows in relation
to individual graphics and how much margin space is required where text flows around.
You are able to specify the order in which overlapping graphics are presented and can use the
tools provided to align and space graphics in relation to one another.
When a graphic is inserted it is initially anchored according to the type of graphic. When you
move the cursor over the graphic the type of anchor used is displayed. You can change the
anchors of individual graphics once they have been inserted.
50
Working with graphics
details. You can also use any object or AREA. SEE “ERROR HANDLING” ON PAGE 358 FOR
DETAILS.
function that supplies a value to specify
co-ordinates. Where such values are provided
by variable data such as data fields it follows that the graphic can have dynamic offsets that
differ from document to document.
| To position using co-ordinates: select the shape in the editor and on the Format menu
click Shape. In the Layout tab select the required unit of measurement and select whether to
measure from the edge of the page or the current column. Choose the appropriate value object
using the value option button for the X and Y offsets. See “Working with values” on page 106
for details.
51
Working with graphics
Drawing shapes
You can create simple graphics directly in the editor by using the shape drawing tools. These
include lines, rectangles and ovals.
You can customize the line thickness, shading, fill color, etc. used for such shapes. When you
create a new shape the attributes of the previously created shape will be used. You can adjust
these by editing the shape’s attributes once it has been created.
| To draw a shape: click in the paragraph that you want the Line
graphic anchored to and on the Insert/Presentation Objects
menu select the required shape or click the appropriate
toolbar icon. Click where you want to start drawing and drag Rectangle
out the shape to the required size. Note that holding down
SHIFT while drawing will create a square, a circle, or a Rounded Rectangle
horizontal or vertical line.
Oval
| To change shape attributes: select the shape in the editor
and on the Format menu click on Shape. Use the Attributes tab to
set the required color, shading and line settings
– or –
use the toolbar options.
Choose a color
for the border or Change the size
to fill the shape. of the shape.
52
Working with graphics
Using images
You are able to reference images that are already stored within the Work Center repository or
include new images that are available to the local file system. If you include a new image it will
be automatically added to the repository but will only be available to the current document
unless you specifically make it public. Note that in some installations these facilities may be
restricted by the rights specified in your user profile.
If the resolution is not already specified in an image, a default resolution of 96 dpi is used
when it is inserted into a document. Images are, by default, anchored inline within a
paragraph. However you can change this once the image has been inserted, see “Anchors and
positioning” on page 50.
An image can also be used as a URL link (for PDF, HTML and eHTML datastreams only) by
selecting the Clickable image option. See “URL links” on page 49 for details.
If you are working with more than one language you can change the image according to the
active locale by selecting the Multiple languages option. See “Localizing document designs” on
page 191 for details.
| To insert an image:
1. Click in the paragraph where the image
is to be inserted. Show files already in
the repository
2. From the Insert/Presentation Objects
menu select Image Show files available to
the local file system.
– or –
click the Image button in the Objects
toolbar.
3. Use the Open dialog box to select the
image you want to insert.
53
Working with graphics
Images can also be inserted using a keyed object. This allows different images to be called
depending on the value of a key, for example a data field – see “Keyed objects” on page 163 for
details.
Overlays
Overlays can be inserted into your document in the same way as images. However you should
bear in mind that they can only be placed in a fixed position on the background layer of your
document – see “Background” on page 64 for more information.
| To insert an overlay:
1. In the Page Setup view click in the background where the overlay is to be inserted.
2. From the Insert/Presentation Objects menu select Overlay.
3. Use the Open dialog box to select the overlay you want to insert.
Text boxes
A text box acts a container for specific page content and can contain both paragraph text and
graphics. You can use a text box simply to highlight particular content or as a reserved area
which other text can flow around.
Text boxes are rectangular shapes and are treated like graphics for the purposes of positioning
and customizing. They can be inserted anywhere in a document design, for instance, in the
body area, on the background, in headers and footers and even inside other text boxes.
54
Working with graphics
If you want an anchored text box to appear only when there is sufficient space in the current
flow area, then set the Do not place where an overflow would occur option. This causes the text box
to be discarded when it doesn’t fit.
Text boxes are, by default, anchored to a paragraph. This can be changed once the text box has
been drawn; see “Anchors and positioning” on page 50.
| To change text box line and fill settings: select the text box in the editor and on the
Format menu click on Shape. Use the Attributes tab to customize the settings. See “Drawing
shapes” on page 52 for more information.
The look of a text box – lines, fill etc. – can be changed during production. For instance, you
might want a different color for a text box that contains a negative value. This involves the use
of the Action option and would generally be in some kind of conditional logic. When the
condition is met, the change is applied, otherwise the original settings are used.
55
Working with graphics
Rotating text
Text that is inside a text box can be rotated. It is rotated 90° clockwise, and can be rotated
more than once until it is in the required plane. Text in headers and footer can also be rotated,
see “Headers and footers” on page 116.
| To rotate text: place the pointer inside the text box and on the Format menu click on
Rotate.– or use the Rotate button in the Text Formatting toolbar.
You can also select an existing graphic from the dialog box, cycling through them in the order
they were created. This means that when you have changed the attributes for one graphic, you
can move on to another one and change it without closing the dialog.
56
Working with graphics
Note that white handles indicate that the graphic is open for input, e.g. a text box is ready for
you to type in. Black handles indicate that the graphic is just selected, and can be moved, or if
appropriate, resized.
| To select multiple graphics: select the first graphic and then hold down SHIFT whilst you
click the others
– or –
use the Select Objects toolbar button and drag across all the graphics, ensuring that you
enclose them all completely.
| To view the next or previous graphic: on the dialog box use the next or previous
buttons.
| To select all graphics: click the Select Objects toolbar button to turn the select mode on
and on the Edit menu click Select All.
| To deselect a graphic when many are selected: hold down SHIFT and click the graphic.
The handles will disappear from the graphic when it is deselected.
57
Working with graphics
Aligning
If you have several graphics on a page, you can line
them up with each other. They can be aligned on
their edges or so that the middle of each graphic
lines up.
58
Working with graphics
| To align graphics: select the graphics and on the Format menu click Align or Distribute and
select one of the following alignment options:
Distributing
Graphics can be distributed so that the space Shapes selected
between each graphic is the same. The graphics for distribution.
on the outside stay in the same position, and all
those in between are moved so that the space
between the borders of each graphic is evenly
distributed. This is only available when there are
three or more graphics selected.
Layout
Depending on the type of anchor, you can choose how adjacent text should flow around the
graphic or whether the text should appear behind or in front of it, and its alignment across the
page.
59
Working with graphics
Graphics that are anchored inline are treated as just another character in the text and the line
spacing will normally be increased automatically to accommodate them.
| To select the runaround properties for a graphic: select the graphic and on the Format
menu click on Shape. On the Layout tab click the required Wrapping style:
Top and Bottom Text will flow down to the graphic and continue after it.
| To select the alignment for a graphic: select the graphic and on the Format menu click
Shape. On the Layout tab click the required Horizontal alignment:
Other The graphic will be aligned according to the co-ordinates specified in Position.
Left The graphic will be aligned with the left margin of the paragraph, with text flowing
to the right.
Center The graphic will be placed centrally between paragraph margins, with text flowing
to the right and to the left.
Right The graphic will be aligned with the right margin of the paragraph, with text
flowing to the left.
Runaround margins
When a graphic is placed on the page you can internal
specify how far away any text that flows around margins
external
it should be. The margins and the runaround margins
properties together determine how the graphic
sits within the content of the page. Some
graphics only have external margins, but shapes
that can contain text – e.g. text box, address
block, header, footer – have internal margins as
well. These determine how far text and graphics
that are inside the graphic are from the border.
| To set the margins of a graphic: select the graphic and on the Format menu click on Shape.
On the Margins tab enter the required Internal or External margins.
60
Working with graphics
Order of graphics
As graphics are inserted onto the page they are initially layered in the order they are placed on
the page. This means that later graphics will be displayed over earlier graphics if they overlap.
You can adjust this order as required.
You cannot move graphics in front of or behind text in this way. You must use the runaround
properties of the graphic to do this – see “Layout” on page 59
Note that you can cycle through graphics in their 'layer' order by using the previous and
next buttons at the bottom of the Image dialog box.
| To move a graphic forwards or backwards one layer: select the graphic and on the
Format menu point to Order and select either Bring Forward or Send Backward .
| To move a graphic in front of or behind all other graphics: select the graphic and on
the Format menu point to Order and select Bring To Front or Send To Back .
61
Page layout
The primary area where content is added to
document designs is known as the body which Top margin
consists of one or more columns within the body Header
area. Content will automatically flow onto new
columns and pages as required. The space Non-
available for the body is constrained by the Margin Reserved
printable
area
overall page size you specify and the position of note area on the
area Background
any other layout areas such as the margins,
headers and footers that you define.
Headers and footers can be used to specify content that is to be repeated above and below
the body area. They can also be used above and below individual columns.
In all these areas of the page you can create text boxes that act as a container for specific
content. You can use a text box simply to highlight particular content or as a reserved area
around which text will flow.
Page setup
The Page setup view – available from the View menu – allows you to specify the various options
that define the look and layout of the page, such as margins, background, headers and footers.
62
Page layout
Unlike page size, you can have different page Enter the width and
orientations within a single document. To height when defining
your own size.
change the orientation of a page you must use a
document section. For more details, see
“Sections and page control” on page 124. Select the default
orientation for the
| To set the page size: select View/Page Setup document.
and double-click Page Setup in the logic
map. The Page Setup dialog box is displayed. Click
the Paper Size tab and apply the necessary
changes.
If your design incorporates a booklet format, you can use the Alternate left and right margins
option to ensure that the pages’ margins mirror one another when printed. The settings are
based on the first (left sided) page in your publication.
In addition, many printers have an area around one or more edges that cannot be printed on.
You can specify dimensions for this along with your user defined margins so that your page
design keeps within the printable area.
By default, the area available for the main document body is automatically defined by the
space available once margins, page headers and footers, and any reserved areas have been
taken into consideration. If you want to change the body area dimensions, change any of
these.
| To define margins: select View/Page Setup and double-click Page Setup in the logic
map. The Page Setup dialog box is displayed. Click the Margins tab and apply the necessary
changes.
63
Page layout
Background
For each page in the document view there will be a corresponding page in the background
layer. These pages display the content from the document foreground grayed out beneath the
background objects for that particular page.
By default, content on the background layer appears on all pages of the document although
you can use conditions to restrict objects to particular pages if required. For instance, if you
place an object on the third background page it will appear on every page of the document
unless you create a condition to limit it to a specific page.
All objects on the background layer have a fixed position. You can place graphics directly on
the background. All other presentation objects will need to be included in a text box that
establishes the required position on the page. Objects on the background layer can use the
entire page area if required and are not restricted by margins.
Where background content appears in the same place as content in the body area, the
background material will be placed 'behind' the other content. You may want to use this to
achieve a watermark effect or similar.
For information about creating and updating Enter the width and
height when defining
reserved areas see “Working with reserved your own size.
areas” on page 119
| To add text to the background: create a text box, position it as required and then type text
into it. See “Creating paragraphs” on page 33.
| To add graphics to the background: use the available background area to add graphics as
required. See “Working with graphics” on page 50 for details.
64
Page layout
A margin note area is a defined space in the background, which is used to control the
positioning of margin notes. See “Working with margin notes” on page 121 for more details.
Multiple margin note areas can be defined in the Page Setup view.
You can adjust header or footer attributes as with any shape object. See “Working with
graphics” on page 50 for details.
65
Page layout
Columns
By default DOC1 uses a single body area for positioning main document content. If required
you can split this into multiple columns. Such layouts are often known as newspaper columns.
Content that is designed to appear within the main document body will automatically flow
through the available column areas, top-to-bottom and left-to-right or, if required,
right-to-left.
You can use the same layout for columns on all pages, use different layouts for different pages
or use a combination of column layouts on a single page.
For instance, the first page might have a paragraph of introduction at the top that spans the
page; two or more columns may start part way down; the middle pages might contain just
columns and the last page may have information following the columns such as a payment slip.
66
Using tables
DOC1 uses tables for two distinct functions:
A static table
is used to align text and graphics in rows and cells or generally to help with positioning
objects on a page (as with most word processing tools).
A transaction table
is used to control how repeating data is presented, i.e. how multiple iterations of the same
repeating data structure are ordered and how they are positioned in relation to one another.
67
Using tables
The Table Wizard allows you quickly and easily to create the basic structure and controls for
any type of table. Once created you can modify the table layout and settings as required.
| To create a table:
1. Position the cursor at the paragraph or other presentation object the table is to follow.
2. On the Table menu click Table Wizard.
3. Use the pages of the table wizard to
specify the basic layout for your table. L FOR ADVANCED REQUIREMENTS SUCH AS
INCLUDING A TABLE CONDITIONALLY OR AS PART
OF ANOTHER OBJECT YOU MAY NEED TO USE THE
4. Once the table has been created you can
LOGIC MAP WHEN CREATING IT.SEE “USING THE
edit the row and column structure as LOGIC MAP” ON PAGE 94 AND THE RELEVANT
required and specify border and shading TOPIC IN THE “ADVANCED PUBLICATION DESIGN”
settings for individual cells. SECTION.
Table positioning
A table within the body area is always positioned in relation to the object selected when it was
inserted. You cannot move a table except by cutting and pasting it so that it is relative to a
different object.
As with other presentation objects you can edit the table’s properties to change the amount of
space to be left between the table and the objects that appear before and after it in the
document flow. You can also specify that the table is to be kept together on a single page
where possible or kept with the presentation object that follows it.
68
Using tables
Basic editing
Content is added to a table by clicking in a cell then typing text, adding a data field or
inserting an object as you would elsewhere.
Each table row starts off with a default minimum height. As content is added to the table, the
height of individual rows will automatically grow to fit by default. You can specify that rows
have a different minimum height or that they may not exceed a maximum height.
| To adjust row height: select any part of the table and from the menu select
Table/Properties/Table. Use the Advanced page to select the appropriate Row Height setting and
specify a measurement if required.
When new rows or cells are added they adopt the attributes and dimensions of the currently
selected element by default.
| To add a row, column or cell: place the insertion point in an existing cell of the table, and
from the Table menu click Insert and select the required row, column or cell option.
Most of the common resizing and editing operations can be performed using mouse
operations. However, you may want to specify precise settings for some rows and cells.
Adjacent cells in a row can be merged together to form a single cell (existing content will also
be merged). This can be used, for example, for a description that applies to more than one
column.
| To merge cells: select the relevant cells and from the Table menu click Merge cells.
| To delete tables rows, columns or cells: click in or select what you want to delete, and
from the Table menu click Remove and select the required table, row, column or cell option.
69
Using tables
| To specify rounded corners for a table: select the table and from the Table menu, select
Properties. On the Style page of the Table Properties dialog box select Enable rounded corners and
specify the required radius of the curve.
70
Using tables
When you specify the use of headers or footers it is assumed that only the first or last row is to
be used for this purpose. You can add further rows to an existing header/footer if they are
adjacent to these.
| To enable or disable table headers or footers: select the Table Header or Table Footer
object in the logic map and from the Table menu select Insert/Row below or Row above.
| To add a row to a header or footer: click on a header or footer row and from the Table
menu select Insert/Row below or Row above. By default the new row adopts all the properties of
the current header /footer row.
| To remove a specific row from headers or footers: select the row(s) and from the Table
menu select Remove/Row.
71
Using tables
You can use the variables with conditional logic to set the content of your headers and footers
based on the value they return. For instance, in the example below when the table page
overflow variable is True the footer displays 'Sub-total' and when it is False it displays 'Monthly
total'.
72
Using tables
Pagination
By default tables that span pages will automatically break where the last complete row can be
fitted on the page. You can change this behavior using the Keep on same page, Widow and orphan
processing, Keep transaction rows together table properties or, alternatively, you can manually
insert page throws in your table logic where required.
73
Working with input data
Input data is variable information from your business environment that can be used as part of
your documents.
DOC1 Generate uses an input data file that contains a set of such information for each
publication to be produced. Typically this is a data base extract that has been prepared for use
with DOC1.
Within design files, references to input data are created as data field or data record objects
that are aliases for the actual data elements that will be available in the input data file. Such
objects provide indirect references to the data so you do not need to know the exact data
elements required when creating your design. The fields are mapped to actual elements of
input data before the publication is put into production.
Repeating data typically contains transaction type information such as account entries or
itemized telephone calls. Repeating data is iterated within the data for a single publication –
i.e. the same data structure appears multiple times consecutively. The data structure itself can
consist of one or many elements that each need to be referenced as a separate data field when
used in a document design. You will normally want to use a transaction table to control how
the iterations of such elements are placed within document designs.
74
Working with input data
appropriate data elements will be available in OUTPUT. SEE “WORKING WITH VALUES” ON
the input data files that will eventually be PAGE 106 FOR MORE INFORMATION.
used with the DOC1 job.
When creating a data field you will need to define its expected data type (string, date, number
and so on) so that the correct formatting can be applied to it. You will also normally want to
supply an example of the data expected in the field so that the document view presents
realistic content.
75
Working with input data
4. In the Add Existing Alias dialog box click the New Alias button.
5. Enter the details in the Create A New Field Alias dialog box and click OK to create the new
reference.
| To change to a different data field reference: right-click on it in the document view and
select Format from the shortcut menu. Click the Value button and the Add Existing Alias
dialog box is displayed, enabling you to change data fields.
| To format data field content: right-click on the field in the document view and select
Format from the shortcut menu and in the Field dialog box, click the format button . For
more detailed information see “Formatting values” on page 108. This relates to the content of
the field and not how it looks on the page. You can, of course, change the font and text
properties assigned to the field output in the usual way – see “Entering and formatting text”
on page 33 for details.
76
Working with input data
• the number of rows specified for the table are automatically multiplied for each iteration
of the repeating data that appears
• the table layout can appear within multiple presentation columns on the same page.
As the repeating data creates additional table rows new pages are automatically generated
when the height of the table exceeds the available page space.
By default, the repeating data will be presented according to the order in which it is provided
in the input data file. If required, you can specify a sort that re-sequences the data prior to
being placed in the table – this is available only when a data element has been selected to
control the repeat.
77
Working with input data
Text entered
Table columns
here will be used
working
in header rows if
left-to-right.
specified.
| To change the control data or specify advanced table controls: right-click within the
table and select Table Properties from the shortcut menu.
When viewing a transaction table in the editor, you can restrict the number of transactions to
be shown in the document view. This could be useful if, for instance, you want to see how a
table looks, without the need for real data. Use any value in the table, and set the repeat count.
IMPORTANT: this has influence only during editing and has no effect on how data is handled
in preview or production.
| To restrict the number of transactions displayed while editing: right-click within the
table and select Table Properties from the shortcut menu. In the General page specify the
Number of transactions as required.
78
Working with input data
Presentation
By default, a transaction table will be Table flow examples using two presentation columns
created within a single presentation presentation column Space between
column that fills the available page columns
table columns
width. The table columns themselves
will be of an equal size spread across Header string Header string
Data from repeat 1 100.99 Data from repeat 11 101.00
the presentation area. Data from repeat 2 29.87 Data from repeat 12 34.99
Data from repeat 3 13.81 Data from repeat 13 13.81
Data from repeat 4 234.57 Data from repeat 14 23.04
Once the table has been created you Data from repeat
Data from repeat
5
6
56.88
7.01
Data from repeat 15
Footer with totals
.14
1139.13
can adjust the width of any individual Data from repeat
Data from repeat
7
8
391.11
45.00
table column as required and you can Data from repeat 9 .89
Data from repeat 10 76.02
customize the line and fill options of all
down then across
cells.
If you have entered Title text for any table columns this will appear in the relevant header cell
by default. You can move this if required.
Widow and orphan settings for transaction tables relate to complete sets of transaction rows.
For example, if the table has 3 transaction rows and you specified a widow value of 2, at least 6
rows would actually be kept together prior to a page throw.
| To change or add to table data: edit cell contents created by the wizard in the normal
way. You can add, replace or delete data fields as required. You can also add any static data
such as paragraph text and graphics.
79
Working with input data
| To customize table size and style: you can adjust column widths and row height settings,
add or remove cells and set their borders and shading as for a regular table. See “Using tables”
on page 67 for details.
| To change the presentation column layout: right-click within the table and select Table
Properties from the shortcut menu. Use the Columns page as required.
| To change settings for transaction row: click anywhere in the table and from the Table
menu select Properties/Table. Choose settings from the Advanced page as required. Selecting
Keep transaction rows together prevents transaction rows and any corresponding headers and
footers from an individual repeating data element from being split across columns.
Transaction rows
will not be split
across columns.
80
Working with input data
Sorting
The repeating data to be placed within a
transaction table can be sorted before being L SORTING IS BASED ON THE SEQUENCE OF
CHARACTERS IN THE UNICODE TABLE. RESULTS
output. The contents of one or more fields SHOULD BE FULLY PREDICTABLE WHEN DATA
within the repeating data are used as the sort CONTAINS STANDARD ASCII-BASED CHARACTERS
keys. Data in each category can be sorted BUT USING SORTING WITH OTHER CHARACTERS,
To delete an existing
key select <Empty>.
81
Working with input data
| To store the transaction counts for later use: right-click within the transaction table and
select Table Properties from the shortcut menu. On the Data page, select the transaction counts
you want to use elsewhere and specify the variable in which they are to be saved – see
“Variables” on page 112.
82
Working with input data
Nested tables
While it is not possible to create a table
within a cell of an existing table, it is Your Transactions for May
possible to nest a table between the major Market Tracker Bonds
row elements (in the Detail section) of
Standard Rates
another table. This may be useful if you Bought 5 at 7.0678 Total cost: 35.3390 Commission: 1.00
need to present transaction data on Sold 10 at 6.0010 Total cost: 60.0100 Commission: 3.00
Nested tables can have headers and footers Your new holding: 1006
as with a regular transaction table. You can
configure which of these should be shown if Thank you for your business
a new page is inserted while more than one
level of table is being processed.
| To configure header and footer use: right-click on a table object and select Table
Properties from the shortcut menu. Use the Advanced page to specify Continuation Header/Footer
settings. For instance, if Show First is selected only the header/footer from the highest level
table will be output.
83
Advanced Publication Design
About design files and resources
At its simplest a DOC1 publication consists of a single private document design. In more
sophisticated scenarios however, a publication can be made up of many different design files
which are maintained independently and which can be shared by other publications. Each file
is stored and controlled within the DOC1 repository.
Additionally, design files may make use of fonts that have been imported from your output
device environment or specifically shared. These are also stored as separate files within the
DOC1 repository.
Before being published a publication must be linked with a data format that describes the
structure and content of the input data file to be used in the production environment. Within
document designs, references to input data are created as data record or data field objects
that are aliases for the actual data elements that will be available in the input data file. Such
aliases are stored for subsequent reuse within one or more data dictionary files. When
publishing you will need to create or reference a data map that links the data aliases used in
the design with the actual elements in the data format.
Depending on your working practices, you may decide to create some or all of these data
related resources in advance of actually creating the document design. You can export a data
dictionary and a data map file from a data format if required.
All design files and resources that are available for you to work with can be found and
manipulated using the DOC1 Work Center Manager.
| To show the Work Center Manager: from the View menu select Manager/All.
85
About design files and resources
When you create a new file or open an existing one a new draft version is created within the
repository. While you are working with the file you can save it as many times as you need –
each time the draft version is updated with your changes.
When the work is complete you should then issue the file. This marks it as the currently active
version within the repository and makes it available for use with a publication when it is
published.
| To issue a design file: click on it in a Work Center Manager view and select Tasks/Issue
from the menu.
Only publications can actually be published. Other resources that are referenced by the
publication are automatically built into the published version.
Publishing always uses the issued versions of publications and the other files they reference –
i.e. draft versions of files will not be included. However, you can use the Publish Current Draft
task to issue files automatically prior to publishing if required. Specifically, the last saved
version of the publication is issued prior to publishing along with all the documents and other
objects it references providing they are marked as private for the publication.
86
About design files and resources
However, where it is important to design using resources only available in your existing output
device environment you may need to import fonts, images into the repository. You may also
want to add resources to the repository to make them sharable by other publications or users.
Fonts
When an existing publication is opened the Work Center searches the local machine to see if
all the referenced fonts are available. If not, they are copied from the repository into the local
windows font directory and automatically registered with the operating system.
If you prefer, you can install all the fonts currently in your repository onto your local machine.
This would be useful if, for instance, you have restored a different repository from backup.
AFP
87
About design files and resources
Xerox
DOC1 Designer can import the FNT file Select AUTO if a
format used with Xerox Metacode printers. Xerox font contains
These are bitmap fonts with specific point point size information.
If not enter it here.
sizes. In most cases the point size
information is contained within the font
itself but where this is not the case you
may specify this as part of the import
process. Note that many recent Xerox
printers support PostScript printing for
which Windows font resources are
suitable.
IJPDS
DOC1 Designer supports a range of legacy
fonts that may be present in some older
IJPDS environments. Such fonts contain
no information about the intended code Select the code page and
page or resolution so you will need to resolution before clicking
on the Add button.
specify these settings as part of the import
function.
Windows
Windows fonts are normally automatically
added to the repository as you use them in
publication designs but you may
specifically import them in advance if
required. This may be useful if you want to make specific fonts available to users in a shared
development environment.
88
About design files and resources
Images and overlays can also be added directly to the repository using the Work Center
Manager.
89
About design files and resources
Overlays
AFP overlays and Xerox Metacode forms typically contain pre-defined standard content such
as corporate letter headings. They are often stored and used directly in the print environment
and applied to output dynamically rather than being embedded in the output data stream
itself. Where this is the case the overlay is simply referenced with the data stream. Where
embedding is required DOC1 always passes an imported resource in its native format directly
to the output data stream. In DOC1 Designer overlays can only be included as part of a
document background. Note that AFP overlay names are restricted to a maximum of eight
characters and Metacode form names to a maximum of six characters. See also “Overlays” on
page 290.
Metacode forms sometimes do not include page size information. Where this is the case you
will need to specify the relevant information when importing the resource so that DOC1 can
correctly present an image of the form in Designer. Forms are also sometimes designed to take
account of non-printable areas on the actual printer so you may need to specify printer offsets
to compensate for this during import.
90
About design files and resources
This feature is aimed at DOC1 users who use extended character sets for double-byte and
multi-byte languages, such as Chinese, Japanese and Korean. Languages that use single-byte
code pages, such as English and German cannot make use of custom code pages.
As the large number of characters included in a code page makes the task of creating one from
scratch unrealistic, it is recommended that existing system code pages are exported as
templates for creating custom code pages.
91
About design files and resources
Character Set The code page can be based on one of the following character sets:
Single byte – each character consists of a single byte.
Double byte – each character consists of two bytes.
Multi byte – each character can be made up of between one and six bytes.
Mixed mode – each character will be either single byte or double byte. The transition
between the two is done using shift out and shift in characters.
Default Characters These characters are used as replacement values when there are incomplete
mappings between the DOC1 code page and the unicode values contained in the
ucm or csv file. Typically the In Unicode and In Code Page characters used will
substitute a question mark for missing mappings. This option is used when the
fallback indicator calls for a substitution character.
Mixed Mode Shift Bytes These options are only enabled if the Mixed Mode character set is selected. They
indicate the start (Shift Out) and end (Shift In) of a group of double byte characters
included amongst single byte characters.
92
About design files and resources
93
Using the logic map
When you are editing design files the logic map view allows you to see a representation of the
objects that make up the design and how they relate to one another. It is a visualization of the
sequence in which the objects will be processed when the design is executed in the
production environment.
The logic map is used to indicate where new objects are to be inserted. In order to work with
variables, functions and other advanced features you will need the logic map to be available.
The logic map can also be used to move, copy/paste, and delete objects or groups of objects.
Select an object and use standard keyboard controls or menu options to do so.
You can choose to deactivate a group of objects temporarily from the design using the Bundle
feature.
| To toggle the logic map view off or on: select View/Logic Map.
.
Processing sequence
The top-to-bottom order
indicates the sequence in
which objects will be
processed.
Insertion point
Clicking on an object selects
it as the insertion point – i.e.
when a new object is created
Expanding and collapsing
it is added immediately
Many objects are groups
below this point.
that have child objects. Click
on to open a collapsed
group; click on to collapse
an expanded group. Or
right-click on an object and
select an expand or collapse
option from the Tree menu.
Shortcut menu
Right-click on an object to
Annotation bar see its shortcut menu (if
This displays additional any). The contents will vary
information such as the page depending on the type of
number within the design in object and its context within
which an object appears. the logic map.
94
Using the logic map
| To print part of the logic map: right-click on a group object and on the shortcut menu
click Report. All objects that form part of the tree for the group are printed.
When hidden attributes have been specified, the bundle icon appears
'clear' in the logic map. If the contents are specified as hidden from the
editor, only the bundle object itself is displayed in the logic map.
| To reactivate hidden bundle objects: double-click on the Bundle icon in the logic map
and use the dialog to turn off the existing 'hide' options.
Bookmarks
You can provide bookmarks for applications that generate PDF output. As well as grouping
logic map items within a bookmark object, you can also nest bookmarks to help create the
required bookmark structure.
95
Using the logic map
Notes
A note object allows you to provide a comment in the logic map.
| To create a note: mark the insertion point in the logic map and
from the Insert menu select Tool Objects/Note. Enter the comment.
The text does not automatically wrap so you must use carriage
returns where required.
96
Using the logic map
The Document, Publication and Active Content Editors evaluate your logic and provide
information about this kind of problem within the Logic Status view. In the view you may click
on a message to be shown the objects to which it relates (where applicable).
Attempting to insert objects in the logic map that cannot be placed at the selected insertion
point causes the Insertion Warning dialog box to be displayed. This acts similar to the Logic
Status view.
97
Publications and documents
Although many DOC1 applications consist of a single document design others often need to
combine document types (both internal and external) into a single production job. For this
reason all DOC1 application designs have a high-level Publication object that allows you to
build such document combinations and to set global attributes for the entire job.
| To switch to the Publication Editor: click the Publication Editor toolbar button
– or –
right-click in the logic map of the Document Editor and from the shortcut menu select
View Publication.
98
Publications and documents
A publication has a set of attributes that apply to all the documents it contains (although
some may be overridden in other objects). In particular you can assign the sample data file
used to provide example data in the document designs. Other optional attributes provide
settings that will be used to configure document level information in the output datastream
when the publication is used in the production environment. Note that any variables used to
set attribute values must be specified in the publication logic map before the first document.
Publication attributes
Job Options
Label Identifies the publication in the logic map.
Data map Allows you to assign a data map to the publication. This links data aliases used
in document designs with actual data elements to be used in the production
environment. See “Advanced data handling” on page 184 for details.
Sample data Allows you to specify the sample data file that will be used to provide example
data in document designs. See “Sample data and data mapping” on page 184 for
more information.
Locale Sets a default locale to be assigned to new documents added to the publication.
Note that this is a default only and may be overridden for individual documents
and sections within documents. For more information see “About locales” on
page 190.
Spell Dictionary Select a dictionary for your publication that can be used with the publication’s
locale. Like the locale, this setting can be overridden for individual documents,
sections and Active Content.
Automatically synchronize See “About synchronization” on page 103 for details.
with referenced files
Document information
These attributes allow you to set values that are required as document level settings in some output datastreams.
They are ignored when creating datastreams other than those indicated although you may use them to provide
reference information within your publication design as required. To enable these options select Use Publication
Attributes.
Author Select a value that identifies an author for each document. This setting is
supported for PDF output.
Title Select a value that provides a title for each document. This setting is supported
for PDF and RTF output. This is also used as the <Title> element for HTML pages
generated by the HTML for e-mail output device. See “HTML for e-mail” on
page 323 for more details.
99
Publications and documents
Style Settings
The Style List contains all the styles included in the repository that are available to the publication. These styles
will be available from the Styles drop-down list when editing a document. You can add style names in the
Publication dialog box, but the style’s attributes can only be applied in the Document or Active Content editor.
The Remove button can be used to remove the selected style from the list or permanently from the repository. For
more information on styles, “Data driven character styles” on page 142.
Journal Options
This allows you to create and specify job-level journals such as start/end of job and DIJ. Journals that are to be
generated within a publication are specified using the journal object in the logic map – see page 196 for details.
Create DOC1 Interchange Check this option if the output datastream created by this publication is to be
Journal stored in an e2 Vault or used by e-Messaging, and therefore requires a DOC1
Interchange Journal (DIJ) to act as the index of documents it contains. This will
enable the Edit button where you can specify the details that will actually be
included in the index. See “Interfacing with e2 Vault” on page 205 for more
information.
Create Start of job journal A journal will be created and records added once only, before any publications
or documents are processed. If the production job consists of multiple
publications, then all journals will be processed at the start. Use the Edit button
to specify the contents – see page 196 for details.
Create End of job journal As above but journals will be generated after the last publication is processed.
100
Publications and documents
You may want to break down your publication into multiple documents if, for example you
• have document designs you want to share with other publications, see “Sharing and
synchronization” on page 103 for details.
• have different document designs for a range of output devices.
• want to select document designs conditionally.
• want to use the same publication data for different document designs.
There are two different methods for including documents conditionally within a publication.
One method is to use a condition within the publication logic map. For more details see
“Condition” on page 138. You can also use the Show When option for specific documents.
When this type of condition is placed within a document you can include it in multiple
publications without having to recreate the condition each time it is used.
By default, all documents will be included in all the output datastreams produced by a
publication. If you have document designs that are only suitable for specific output methods
you can explicitly assign the appropriate types of output datastream to the document. In the
production environment DOC1 Generate will only use the document design when it is writing
to suitable output datastreams.
101
Publications and documents
102
Publications and documents
| To update an external document: import the updated external document (see above)
ensuring that the name is the same. All publications that use this external document will then
use the updated document.
You are also able to share complete document designs among multiple publications. By default
however, documents are solely available for use with the publication in which they are created
and you will need specifically to make them public before they can be reused.
Documents included in a publication will always inherit data assigned to the publication.
When editing public documents you can associate data map and sample data independently of
the publication if required.
| To make a document public: click on the appropriate document icon in the publication
editor and select Edit/Document/Make Public from the menu.
| To edit a public document from a parent publication: in the publication editor select
and right-click on the required public document in the logic map and choose the Open option
from the shortcut menu.
– or –
open the public document in the document editor, right-click the Read Only document object
in the logic map and select Open from the shortcut menu.
About synchronization
Active Content and public documents can be edited either independently by launching them
from the Work Center Manager or directly within the context of a parent document or
publication that makes use of them.
103
Publications and documents
If you choose to launch a shared file from a parent editor certain attributes from the parent
are automatically passed to the new editor session:
• Data map and sample data assignments.
• Variable assignments.
• Locale settings.
• Highlight color definitions.
| To synchronize the current editor with open files: from the View menu select Synchronize
Editor/With Open files.
If you launch a file independently the editor does not, by default, have access to such ‘shared’
values that may be provided or updated by other files that it references. For example, if a
document includes an Active Content file that sets values for its parent you may often see
<Not Set> when such values are displayed. You can use the Synchronize with referenced files
option to access such lower level logic and update the display to take account of it.
| To synchronize the current editor with referenced files: click the Synchronize with
referenced files toolbar button
– or –
from the View menu select Synchronize Editor/With Referenced files.
If required you can make this type of synchronization the default behavior for a publication by
choosing the Automatically synchronize with referenced files attribute. Note, however, that for
complex applications and those using many referenced files this may significantly affect the
load time of the publication. See “Publications and documents” on page 98 for details of
setting publication attributes.
104
Publications and documents
External documents
In addition to building a publication using
multiple DOC1 document designs you can L PDF DOCUMENTS THAT ARE PASSWORD
PROTECTED CANNOT BE IMPORTED.
also import PDF and Quark generated EPS ONLY QUARK GENERATED EPS FILES CAN BE
files into the Work Center and include them USED AS AN EXTERNAL DOCUMENT, OTHER EPS
as pre-composed documents within a FILES ARE CURRENTLY UNSUPPORTED.
The external document itself is treated as a single object, similar to an image, regardless of its
size or content. It is placed behind the page content, including any background and each page
is aligned from the top left corner. If necessary, extra pages will be created in the publication
to contain each imported page.
Note that you cannot change the actual content of the imported external document although
you can re-import an updated document.
| To browse an external document: in the Work Center Manager select the Design tab, click
the External Documents bar and open the relevant document.
105
Working with values
Values can be provided by data fields, variables, system variables, the output from functions or
you can simply enter a constant. You can also use formula expressions that allow you to create
more complex parameters or as a more convenient way of adding compound functions. See
“Appendix B – Formula expressions” on page 431 for details. You identify the item that will
provide the value (or the value itself in the case of constants) as part of the appropriate object
dialog box.
106
Working with values
107
Working with values
Formatting values
All objects that provide a value have a default presentation format that is assumed from their
data type, the circumstances in which they are used and the DOC1 locale that is active when
the object is processed. For example, if a locale based on regional settings for the United
States is active a value of type Date will typically be assumed to have the format mm/dd/yyyy.
Similarly, a value of type Number will have a default output that includes two decimal places
using the period character as the decimal point and will always be assumed to be a decimal
value unless specifically cast to type Integer.
Where mixed data types are used as part of the same object DOC1 will attempt to convert
(cast) values automatically as appropriate. For instance a string value of 15 August 2005 can
be used to update a date variable. When there is ambiguity between data types used in
functions or conditional comparisons you are also able to cast values explicitly to another data
type.
Where values cannot be converted (either automatically or explicitly) an error will occur.
| To specify formatting of a data field or variable placed Select how you want the
on a page: right-click on the field in the document editor value to be treated …
and select Format from the shortcut menu
– or –
double-click the corresponding Field Parameter object in the
logic map.
… and set the
Click the format button and select the required options options for this
in the Format dialog box. type of value.
108
Working with values
String options
Special Use the Treat as RTF option to identify a string value as being in RTF format. This
can be either embedded RTF code or a reference to an external RTF filename. See
“RTF fields” on page 110 for more details.
Trim spaces If selected, any spaces to the Left or Right of other field content are removed
before the field is placed. This is not available for RTF fields.
Length If the number of characters in the field is less than the Minimum length the
remaining positions will be padded with the Fill character. The space character is
used for this purpose unless specified otherwise. This is not available for RTF
fields.
Number options
Format The Negative and Positive formats define optional text strings to be appended to
number fields when the value is less than zero or greater than zero respectively.
You can select from the list of standard formats or enter your own string.
The Zero as options allow you either not to display values where the value is zero
or to display a string of up to 10 characters in its place. For instance, you may
want to show the word 'Nil' rather than 0.
Decimal Decimal places indicates a fixed number of decimal places to be shown by this
field. Positions not supplied by input data are padded with zeros.
If Exclude decimal point is checked decimal points in the field value will be
ignored. For example, if the field contains 120.07 it will be formatted as 12007.
If Include thousands separator is checked a separator character will be used to
group digits in number values in excess of 1000. For example, assuming the
separator character is a comma 2108910 becomes 2,108,910.
If Round to last decimal is checked the last digit in the number will be rounded up
or down to represent any remaining fraction when the number of decimal places
in the value exceeds that specified. If this is not checked the number will simply
be truncated to the specified number of places. For example, assuming 2
decimal places are specified, 100.009 becomes 100.01 if rounding is checked
otherwise it becomes 100.00.
Length As for String formats.
Date options
Default Short Uses the short date format of the active locale.
Default Long Uses the long date format of the active locale.
Use location defaults Use these buttons to set all Date format options to the styles defined for either
long or short dates in the active locale.
109
Working with values
23,Jan.2007
First Separator Second Separator
Currency options
Options are identical to Number formats with the exception of:
Currency symbol Select a character to be used as a prefix for the value.
RTF fields
You can dynamically include content in Rich
Text Format (RTF) by passing it within a value L YOU CAN ALSO IMPORT THE CONTENTS OF A
COMPLETE RTF FILE DIRECTLY INTO YOUR
object such as a data field or a return from a DOCUMENT. SEE “IMPORTING PARAGRAPH
lookup table. Such objects can either contain CONTENT” ON PAGE 46.
actual RTF code or be a reference to an
external file that contains RTF. RTF code would normally be included using RTF input data –
see “Including RTF fields in input data” on page 189. Note that RTF fields are only supported
on Windows and Unix platforms.
In the production environment DOC1 will format the RTF as a single uninterrupted piece of
content at the point at which it is placed on the page by the publication logic. The RTF
content will automatically flow onto new pages as appropriate. It is the user’s responsibility to
make sure that such content is only placed where it can be handled correctly; for example, RTF
placed in a text box or other container may be truncated.
Note that the Preview feature will only be able to include content from a referenced external
RTF file if the reference is to a file that is available to the DOC1 Designer.
Simple text formatting, such as bullets, indents and font decoration can be used in the RTF
field – see “RTF” on page 313 for a list of restrictions. The fonts used by the RTF field should
be available to the Work Center, otherwise the closest matching fonts from the DOC1
repository will be used. If required, you can make the fonts available when publishing – see
“Additional Resources” on page 357 in the Publish Wizard options. Nested bullets, tables,
boxes, lines and images are not supported. Hard returns can only be used when the RTF is
supplied as XML input data.
110
Working with values
You can use variables within an RTF data field using the DocVariable field option in Microsoft
Word. When you create the RTF in Word you can include a reference, by name, to a variable
contained in a DOC1 application. Once the variable has been set in your design document it
will be displayed when the RTF field is inserted. The variable in DOC1 must be of type string
and document scope. For more details on using Word’s field option consult your Microsoft
documentation.
When an RTF field is placed in a document it is displayed in RTF code. The field must be
designated as RTF for it to be presented correctly in the Designer and processed accordingly
by DOC1GEN. See “Formatting values” on page 108 for more details.
Casting
In most circumstances the data type required by a particular object is implicit and if you
specify a value of a different type it will, where possible, automatically be converted to the
required type. For example, if you are storing a number in a currency variable, the number
would be converted to currency automatically.
In some situations however, the expected data type can be ambiguous, particularly when
working with mixed type values as part of arithmetic or conditional functions. In these
circumstances you should explicitly cast the values to the required type.
Where appropriate the Casting dialog box is automatically invoked in place of the Format dialog
box when you select the format button within object dialog boxes.
Note that casting provides a single conversion of a value as input for the object for which it is
specified. It does not influence the original object value which retains its original data type.
111
Working with values
Variables
Variables store values for subsequent use and can be updated as required. You can use a
variable to provide input to an object or output the value it holds within a paragraph.
For example, you may want to use a variable to add number values from different sources
before presenting the total, or to evaluate and hold the most recent date from a range of date
fields.
Variables can hold values of any of the supported data types but each individual variable can
only accept data of a single type. The data type expected by a particular variable cannot
change within the same publication.
By default, the value stored in a variable is cleared at the start of each new publication. Users
with the appropriate design privileges can, if required, either extend this scope to an entire
job or limit it to individual documents, sections or Active Content.
New variables can be created as they are used or set. When inserting a variable into a
document, you must ensure that, in the logic map, the variable is assigned the required value
before the paragraph object in which it is included. Until it has a value, it will be displayed
as . Variables that have an empty value are displayed as when the formatting
marks option is used.
| To use variable contents within another object: see “Adding values to objects” on
page 106.
112
Working with values
Scope options
Job The value held in the variable is never cleared. You can use variables with Job
scope to provide counters or totals across an entire production run for
example.
Publication The value held in the variable is cleared at the start of each new publication.
Document The value held in the variable is cleared at the start of each new document
within a publication. Use this setting if you need to reuse the same logic across
multiple document designs or to use the same variable name for different
purposes in other documents within the publication.
Local The value held in the variable is cleared at the start of each new section or
Active Content.
113
Working with values
Deleting variables
Variables that are not used are automatically deleted when the document is closed. Only the
variables that are used are saved. As such, you cannot specifically delete a variable. If you do
want to delete one, you must ensure that it is not used by any document or publication. It will
then be deleted automatically on closing.
114
Page and job handling
| To work with the Page Setup view: click the toolbar button or right-click in the logic
map and select View Page Setup from the shortcut menu.
115
Page and job handling
Header Content and Footer Content objects are used to add content to header and footer
areas. These can be created anywhere in the page setup view and are often used within
conditions where selective content is required. For instance, you may want to include a
different header/footer style on odd and even pages.
Note that only one header or footer is active at a time. If more than one Header Content or
Page Content object is encountered while processing the page setup logic only the content of
the last object processed will be used.
You can also include content for the header/footer with the Default Header and Default
Footer groups but note that this will be replaced if Header Content or Footer Content objects
are processed elsewhere in the page setup logic.
| To add basic header or footer content: click inside the header or footer area and create
paragraphs and graphics as normal. The objects are added to the Default Header/Footer
group.
116
Page and job handling
117
Page and job handling
| To turn headers/footers off: double-click Page Setup in the Page Setup view and in the
Page Setup dialog box, select Turn Headers off /Turn Footers off.
| To turn headers/footers on: double-click Page Setup in the Page Setup view and in the
Page Setup dialog box, clear Turn Headers off /Turn Footers off.
118
Page and job handling
A reserved area is always defined as part of the Page Setup background layer but influences the
presentation of objects within the body area where these overlap. Normally you will want your
body content to flow around the reserved area although all the regular text flow options are
available.
By default, reserved areas apply to all pages although you can use conditions within the
Background to selectively include them on particular pages if required.
Initial content for a reserved area can be specified on the background if required. The content
is updated by using a Reserved Area Entry object within your main document logic. When
updating, you can choose to append to any existing material or clear the reserved area before
adding the new content.
A reserved area always has the same position and size on every page on which it appears but
you can create any number of reserved areas as required. A reserved area can contain any type
of presentation object except for another reserved area.
In terms of positioning, color, line and fill attributes and text runaround properties, a reserved
area behaves exactly the same as a text box or other shape. See “Working with graphics” on
page 50 for details.
119
Page and job handling
120
Page and job handling
next page. The same behavior exists within a THOSE FROM PREVIOUS COLUMNS.
table cell.
If a margin note is vertically offset from its anchor to such an extent that it would be
positioned off the page, or cause the overprinting of headers, the margin note will be
positioned at the top of the flow area on a new page. Clicking on the margin note will display a
screen indicator, which shows the relationship between a margin note and its anchor.
121
Page and job handling
3. Click in the page layout and drag the pointer where you want the box to be drawn. The
width of the area is set by the drawing action. The height is fixed to the extent of the page,
excluding any header and footer.
| To specify margin note area settings: select the area and on the Format menu click Shape
– or –
right-click the Margin Note Area object in the logic map and select Properties from the shortcut
menu.
122
Page and job handling
3. Use the Margin Note tab to set optimal height and width, adjust horizontal alignment, or
to change margin note area association.
If associating a margin note placed within Active Content that is wider than the margin
note area, the content will not be reformatted. You will have to adjust the margin note
manually.
123
Page and job handling
By using additional sections you can override these defaults for particular parts of your
document logic. For example, you may have a document design where the final page is an
application form requiring landscape orientation, a different configuration of headers and
footers, and which always needs to be printed on a new physical sheet on the printer.
For such requirements you must include a section within your document logic and include
presentation objects that require the special page attributes within the section object. Note
that a document is automatically created with a single section and all presentation objects will
be added to this group in the absence of other sections.
124
Page and job handling
3. In the Section dialog box specify the page handling attributes you require.
Remaining space
Once regular content has been placed in the body area there may still be sufficient space left
for additional content. This can occur at the end of a section or when a new page has been
created and the previous page is not full. This remaining space, or white space, can be used for
optional content such as advertisements or promotional material.
125
Page and job handling
126
Page and job handling
| To view remaining space area: either click on the remaining space object in the logic map
– or –
click in the remaining space area in the editor (or on the icon).
127
Page and job handling
Customizing columns
The body area that is used for positioning
main document content can be split into L SEE “COLUMNS” ON PAGE 66 FOR INFORMATION
ON GENERATING SIMPLE COLUMNS.
multiple columns, up to a maximum of eight
in a single layout. Content flows
top-to-bottom within a column and when an overflow occurs will continue in the next column
in sequence in the layout. The sequence can be either left-to-right or right-to-left. Content
will automatically flow onto new pages as required, continuing to use the same column layout.
You can switch to a different layout at any time.
Content flows into the
same column layout
on the next page …
Headers and footers can be applied to columns. These can be used in addition to, or instead
of, page level headers and footers – see “Headers and footers” on page 116. They can also span
across all columns. You can specify different header or footer content for regular use, for
where content flows into a new column, and for where content flows into a new page.
Column layouts
A column layout is used to define the appearance of columns on a page. You can specify any
number of layouts for a publication, switching between them as required. Most column layouts
will be designed automatically to occupy the available width and height of the body area but
you can limit the dimensions if required. A canvas is used to define the overall body size
within which the column layout will be designed. This enables you to specify layouts for any
page size or orientation, irrespective of the current document’s page sizes.
128
Page and job handling
If no column layout is defined then the default layout is used. This consists of a single
column with no headers or footers that fits in the available body space. The default layout
cannot be edited or deleted.
– or –
invoke the Switch layout dialog box (see “To switch column layouts’ on page 130).
2. Select New or Edit and use the Column
layout dialog box to configure the L NOTE THAT ANY CHANGES MADE TO THE COLUMN
LAYOUT WILL BE APPLIED TO ALL INSTANCES
column layouts as required. WHERE THE LAYOUT IS USED.
Spacing is between
column layouts only and is
Use the tabs to configure the applied before all headers
layout of the columns, add and after all footers.
headers and footers (see This is not included in the
page 132), and set the column Fixed height if specified.
boundaries (see page 131).
129
Page and job handling
130
Page and job handling
| To balance columns: in the Column layout dialog box select the Balance columns option.
Note that the use of balancing columns can cause reduction in performance time.
131
Page and job handling
Column headers and footers are entirely separate from page headers and footers which can
also be used on the same page.
132
Page and job handling
Note that if both column and page Regular Overflow Page overflow Overflow
overflow options are specified, then the header headers header headers
Spanning overflow headers and footers Spanning header Spanning overflow Spanning overflow
header header
When spanning overflow header is
selected the regular spanning header will
be used on the first page and the
spanning overflow header on all
subsequent pages. When spanning
overflow footer is selected the regular
spanning footer will be used in the last
page and the spanning overflow footer in Spanning Spanning Spanning footer
overflow footer overflow footer
all previous pages.
133
Page and job handling
Page overflow
header is used in
the first column of
all overflow pages.
Spanning overflow
header is used in all
overflow pages.
Overflow footer is
used in all columns
that cause an
overflow – i.e. it is
not used in the very
last column.
The content of headers and footers can be changed dynamically within the logic. The change
will take effect the next time the header or footer is used and will apply to subsequent usage.
134
Page and job handling
3. In the logic map a group for each selected type will be created. These should be
separately populated with presentation objects – content is not shared between groups.
| To create an action: mark the insertion point as required within your document logic and
select Insert/Control Objects/Action from the menu. Select the required type in the Action dialog
box:
Print message
Output a message to the standard output
For information on using
device on your host machine. Use the values, see “Adding values
value button to select a value be used for to objects” on page 106.
the message.
135
Page and job handling
Note that this action causes inconsistent page counts to be generated for Page X of Y
numbering and should be avoided if this system variable is present in your document design.
136
Creating conditional logic
DOC1 Designer has the following conditional logic features:
• Condition queries an expression and executes either a True or False logic map path
depending on the result.
• Page check is a specialized version of a condition that allows you to query the current page
number within a document or section to see if it matches those specified.
• Loop queries an expression and continuously executes a logic map path until it is no
longer True or until a Break Loop is encountered. If required, Continue Loop can be used to
restart the conditional logic without processing the remaining objects.
• Case selects one of a range of conditional paths when a comparison value is matched.
Conditional expressions
The expressions used in Condition and Loop objects can be specified either using a Simple
method with arguments specified in a structured format or by coding the arguments using a
Formula expression. Values can be specified as constants or be supplied by data fields, variables
or calls to system or Active Content functions.
The values being queried must be of the same type but in many circumstances you can
temporarily reformat the data to ensure consistency. See “Formatting values” on page 108 for
details.
To code a simple condition click the Simple option and enter a comparison argument using the
fields provided in the object dialog. Use the operand controls to specify input values for the
comparison.
You may add further arguments as required. If the AND operator is specified all arguments
must be true for the True logic to be executed. If the OR operator is specified the True logic will
be executed if any of the arguments are true.
137
Creating conditional logic
Statements in simple
conditions can have either
The operators available in a condition vary depending an And or an Or relationship.
on the value type of the operand. Two special You cannot use both types
comparisons, Is Set and Is Not Set, query the status unless you code a Formula.
of a data field (to see if it is available in the current
data set) or a variable (to see if it is currently in scope).
Condition
A condition object queries an expression and executes either a True or False logic map path
depending on the result.
| To create a condition:
1. Mark the required insertion point within the logic map.
2. Select Insert/Control Objects/Condition/Condition from the menu.
3. In the Condition dialog select either Simple or Formula.
4. Create the required query. See “Conditional expressions” on page 137 for details.
5. Click Create and populate the logic tree.
In the logic map a condition object is automatically created with True and False paths. Add the
required logic to each.
138
Creating conditional logic
Page check
Page check is a specialized version of a condition that allows you to query the current page
number within a document or section to see if it matches those specified. You can perform a
simple check to see if the current page number is odd or even or you can reference one or
more specific pages either individually or within ranges.
As with a regular condition, a True or False logic map path is executed depending on the result
of the check.
139
Creating conditional logic
Loop
A loop object queries an expression and continuously executes a logic map path until it is no
longer True or until a Break Loop is encountered. If required, Continue Loop can be used to
restart the conditional logic without processing the remaining objects. Loops can be nested
within each other.
If the conditional expression does not evaluate to true when the loop object is first
encountered the True path will not be executed.
| To create a loop:
1. Mark the required insertion point within the logic map.
2. Select Insert/Control Objects/Loop/Conditional Loop from the menu.
3. In the Loop dialog box select either the Simple or Formula condition type and set the
Maximum Loop Iterations.
4. Create the required query. See “Conditional expressions” on page 137 for details.
5. Click Create and populate the logic tree.
140
Creating conditional logic
Case
A case object selects one of a range of conditional paths when a comparison value is matched.
The value is defined within the main case object and is compared with the values defined for
the Case Test objects within the case group. The logic associated with the first case test that
matches the comparison value is executed. If no value is matched an Otherwise Result logic path
is executed.
Values can be specified as constants or be supplied by data fields or any other value object. All
values must be of the same type but in many circumstances you can temporarily reformat the
data to ensure consistency. See “Formatting values” on page 108 for details.
141
Creating conditional logic
Style lists are objects that you can place within your document logic and are themselves
containers for one or more styles.
address blocks and charts. PRESENT THE TEXT ACCORDING TO YOUR NEEDS.
At production time the active style list is the last such object to be encountered in the logic.
Before a style list is encountered no styles are used and all text elements are presented using
their regular settings. Once a style list is encountered any text that follows the object within
the logic will adopt the settings of the styles it contains wherever a style name from the list has
been applied. Subsequent style lists within the logic may amend some or all of the named
styles. If a style name does not appear in a style list its settings remained unchanged from the
previous time a style list included it.
Style lists are not stored in the repository as independent files. However, you can reuse the
logic you set up to control styles by including it in an Active Content file and including this in
any design where you need the same functionality.
142
Creating conditional logic
You will typically want to use conditional objects to choose when to invoke particular style
lists. Remember to make sure that text to be influenced by a style list appears after the list
objects within the document logic.
In the following example a case object is used to create the necessary conditions for
dynamically changing the character styles.
143
Creating conditional logic
144
Creating conditional logic
4. Select a different character set from the list, if necessary, and click Update.
| To remove a character style from text: highlight the text that you want to remove the
character style from. Change the font attributes as required using the toolbar options.
145
Functions
The DOC1 Designer includes the following functions:
Address block: this function automatically formats address data based on the chosen
country. The resulting address structure is output and positioned as a
single object
Arithmetic: performs a calculation on two input values and outputs the result.
Barcodes: converts strings and numbers to the necessary sequence of lines required
for the chosen barcode type.
Concatenation: this function enables you to join text values from two or more objects to
form a single string.
Lookup table: enables you to replace predefined keywords with text strings at
production time.
Substring: this function extracts one or more consecutive characters from within a
text string.
System variables: can be used to access run-time statistics and information from the
productions environment.
Address block
The address block function automatically formats name and address data into a style that is
the standard for a named country. The resulting address structure is output and positioned as
a single object.
The output lines of the address block are Mr. John Peters Mr. John Peters
automatically aligned vertically and the 1096 Sadlers Av 1096 Sadlers Av
number of lines actually placed is Northlake Easton MA Mr. John Peters
adjusted to compensate for empty input Westville 10678 1096 Sadlers Av
values. The output lines are placed Easton MA USA Easton MA
within a notional outline that allows 10678 10678
enough horizontal space to USA USA
accommodate all possible address lines.
Address block Aligned to Top Aligned to Bottom
You can choose to align the block either outline space
at the top or bottom of the outline
space.
146
Functions
The font and line spacing used for the output lines is set for the entire object although you
can override the settings of individual components as required. While you can change the font
style, size and decoration for the text of an address block, you cannot change the justification
or add bullets and numbering.
In terms of positioning, color, line and fill attributes and text runaround properties, an address
block behaves exactly the same as a text box or other shape. See “Working with graphics” on
page 50 for details.
147
Functions
Arithmetic
An arithmetic function performs a calculation on two input values and outputs the result.
Each value can be of any type, but must be cast to the same type as the result, see “Casting” on
page 111 for details.
148
Functions
Arithmetic operators
Plus Valid for numbers, integers and dates, the result will be the addition of the
values– i.e. A+B.
Minus Valid for numbers, integers and dates, the result will be the subtraction of the
second value from the first value – i.e. A-B.
Multiply Valid for numbers and integers, the result will be the multiplication of the
values – i.e. A*B.
Divide Valid for numbers and integers, the result will be the division of the values –
i.e. A/B. Note that if both values are integer, then the result will be integer,
i.e. truncated; however, if at least one of the values is a number, then the result
will also be a number.
Modulo Valid for integers only, the returned value will be the remainder that results
from the modular division of the values – i.e. (A/B). For example 10/3 gives a
remainder, or modulo, of 1.
Bitwise AND' Valid for integers only, 'AND' compares the two values bit by bit. If every bit in
position ‘x’ of both values is 1, bit ‘x’ in the result is set to 1, otherwise 0.
Bitwise OR' As above except that if a bit in position 'x' of either of the values is 1, bit 'x' in
the result is set to 1.
149
Functions
You can nest arithmetic functions to perform more complex equations if required. The
evaluation sequence will follow the order in which the objects are nested, from top to bottom
as in the following example.
Date calculations
Calculations can be performed on date values with the following restrictions:
• The operator used must be either addition or subtraction.
• The first value must contain a date value.
• The second value indicates the time to add or subtract from the date. This can be
specified as:
an integer – of the number of days
a string – indicating the number and type of time units
a date – for subtraction only.
Examples of time units:
2W = two weeks
5M = five months
3Y = three years.
150
Functions
Barcodes
The barcode function converts strings and numbers to the appropriate sequence of lines that
are required for the selected barcode. DOC1 includes support for standard, font scaling and line
drawing barcode types, as the barcode fonts are automatically installed in the work center and
available for all drivers and variants. See below for the list of barcodes and their settings.
Standard and font scaling barcodes generate
textual output and make reference to special L
REFER TO “RUNNING A PUBLISHING TASK” ON
PAGE 351 FOR DETAILS OF FONT EMBEDDING
fonts within the output datastream produced OPTIONS AND TO THE DOC1 PROGRAMMER ’S
by DOC1 Generate. As with all other text GUIDE FOR INFORMATION ON USING DOC1RPU
output the appropriate fonts will be TO EXTRACT RESOURCES FROM A HIP FILE
| To create a barcode:
1. Place the cursor in the document area where you want the barcode.
2. Select Insert/Presentation Objects/Barcode and the Barcode dialog box is displayed.
151
Functions
| To change the properties of a barcode: right-click on its border and from the shortcut
menu select Shape. Use the Shape dialog box to change the properties. See “Working with
graphics” on page 50 for more information.
Standard barcodes
Standard barcodes can be used with any output device. To be compatible with each output
device there are a limited number of barcodes and associated options available when using
standard mode. Apart from changing the density, to enable other scalability options you must
use font scaling barcodes.
152
Functions
153
Functions
154
Functions
155
Functions
156
Functions
Previewing barcodes
You can choose to preview a barcode to verify
that it has been configured correctly and to L ONLY FONT SCALING AND LINE DRAWING
BARCODES CAN BE PREVIEWED. THE OPTION IS
see how it will be presented in the document. DISABLED FOR STANDARD BARCODES.
157
Functions
Concatenation
The concatenation function enables you to join together text values from two or more objects
to form a single string. The function will treat all values passed to it as text regardless of the
actual object type suppling it.
Lookup table
A lookup table function allows you to replace
predefined keywords with text strings or RTF L NOTE THAT IF NO MATCH IS FOUND A SPECIAL
CODE IS USED TO REPLACE THE STRING SO THAT IT
fields at production run-time. The input CAN BE IDENTIFIED WITHIN THE OUTPUT
keyword is checked against the entries in one DATASTREAM IF REQUIRED.
or more lookup table files assigned to the
job. If a match is found then the text in the lookup table is used to replace the keyword
wherever this is used in publication logic.
A lookup table is normally a simple text file. The keywords are first, followed by a space,
followed by the text to be inserted. The keywords must not contain spaces and are case
sensitive.
In this example, if the value assigned to the lookup Keywords Text to be inserted
table function is “sc2” then the string “Jackpot Bonus
Scheme” will be inserted. sc1-t Winter Winners Plan
sc4-mx Spring Specials
For jobs intended to run under z/OS a lookup table sc2 Jackpot Bonus Scheme
can alternatively be created as a Key Sequenced VSAM
dataset (KSDS). The keywords are provided as the VSAM key field and the substitution text is
any other content in each record.
158
Functions
The files to be used as lookup tables for a production job are specified as part of a publishing
task. You can override the lookup tables by using an Override Production Settings file (OPS).
For more details, see “Running DOC1 Generate” on page 363.
Substring
The substring function extracts one or more consecutive characters from within a text string.
| To create a substring:
1. From the Insert menu select Field/Substring and proceed to step 3
– or –
create an object to receive the output.
You can update a string variable with the function output or use it as input to any other
object that requires a string value. See “Working with values” on page 106 for details.
2. When specifying a value for the object select Functions/Substring as the type.
159
Functions
3. In the Substring dialog box specify the The Offset from the
input string and indicate the start of the input text
characters you want to extract. where the substring
begins, starting at ‘0’.
Note that if the offset is larger than the The (maximum)
input text, an empty string is returned. number of characters
to be extracted.
System variables
System variables allow you use run-time statistics and information from the production
environment within functions and other objects; for example, you can input the number of
pages generated by the current publication into an arithmetic or use the date when the
production job was run with a barcode object.
System variables are also often used as input to a DOC1 journal to provide an index into the
documents and pages within an output datastream generated by a production job. See also
“System variables” on page 47 for inserting system variables directly into a paragraph.
System variables
Document page number The current page number within the document being processed.
Document vector The offset from the start of the output datastream being created by DOC1 Generate
to the start of the data that makes up the document currently being processed. The
nature of this offset is system dependent – see “Vector offsets” on page 162 for
details. This option is only available for use within Journal objects.
To ensure that the offset is the correct one for the document you must place the
journal object that sets the vector offset either within the document logic, or before
the document in the publication logic.
160
Functions
161
Functions
Note that some system variables are only available in certain instances, for example, the Table
options can only be inserted in a table. For variables reporting page numbers be aware that
these always relate to the number of ‘logical pages’ produced by the DOC1 production job and
not necessarily the number of sheets produced on the printer/browser. For example, you may
have chosen to place multiple logical pages on each sheet or have an output device that always
adds separator pages to each job.
Vector offsets
The actual values generated for the Vector system variable depend on whether the output
datastream is being generated as stream or record based data.
Record data is generated for AFP, Metacode and line data output under z/OS and for line data
under OS/400. The vector value is the record count from the start of file and the first record is
number 1.
Stream data is generated for all other output/host configurations. The vector value is the byte
offset from the start of file. The first byte is number 0 (zero). Note that the values generated for
document or page number '1' will not necessarily be the lowest possible count values. This is
because protocols can contain header information related to the overall file but not directly
relevant to a particular page.
Note that vector offset values are limited to ten digit numbers. As a result, where DOC1
Generate needs to deal with file offsets >9,999,999,999 it will use a base-32 encoding scheme
to present the value. While the offset value will only be machine readable in these
circumstances, you will be able to identify when this occurs as all values will be prefixed with
'Z'. For post-processing requirements PCE is able to read such values as a normal vector offset.
162
Keyed objects
DOC1 allows you to select some types of presentation objects dynamically according to
variable criteria or ‘keys’. Images and Active Content are supported in this way.
For keyed images, the simplest way to work is to import the files into the DOC1 Work Center so
that their attributes are known and they can be referenced directly.
with the relevant attributes. You can also WORKING WITH USER EXIT PROGRAMS IN DOC1.
create a user exit program that directly
returns the image to be placed as a keyed object.
For handling external keyed images in the EngageOne interactive environment see “Image
management and EngageOne” on page 223.
Such key maps are then referenced when you actually place a keyed object within a design along
with the key value itself which dictates which object is actually selected.
163
Keyed objects
Key maps are maintained as individual files within the Work Center Manager. Once issued
they become available for use with any publication in the repository. You cannot mix the type
of object in a key map, but you can create any number of maps.
Objects do not already have to exist in the repository before being added to the key map; they
can be created or imported as part of the add process.
164
Keyed objects
| To view the image in a key map: select it in the key map and use the View button. The
image will be displayed in the workspace.
| To create new Active Content files while working with a key map: in the key map select
the Add New button. In the Add New Active Content dialog box, enter a key value and select a
project for the new Active Content files. You can create up to 100 at a time. The new files are
empty when created so you must edit them to create their actual content and logic. See “Using
Active Content” on page 237.
| To import images while working with a key map: in the key map select the Add New
button. In the Add New Images dialog box, enter a value or use the image filename for the key,
select a target project into which the new images will be imported and browse for images.
165
Keyed objects
If a keyed object that references integrated resources is used within a text box then the text
box will grow as required to fit the content. When referencing external images however, the
eventual size of the image is not known and you will therefore need to ensure that text boxes
are sized to accommodate the largest keyed object. In this situation a runtime error will be
generated if the text box overflows.
You can monitor whether a keyed object has actually been placed at production run-time by
specifying a variable into which a status code will be returned. This can then be used within
conditional logic to deal with any problems.
166
Keyed objects
Once inserted the editor will select the keyed object for display according to the current value
of the key (for instance, the field value from the current document in sample data). When
referencing external images the editor will show the appropriate object according to any
sample entries in the key map (if any).
You can move keyed images and change their properties as for any shape – see “Working with
graphics” on page 50. Double-click on the object and use the Keyed object reference dialog box
to change to a different object.
| To use a different key or key map in a document: use the Keyed image tab in the Image
dialog box.
167
Charts
DOC1 supports a range of charts that graphically represent data. The following types of charts
are available in the DOC1 Work Center. Note that two-dimensional vertical and horizontal bar
charts are always available; other types are only available subject to your license keycodes.
Line graph
Scatter chart
Chart terminology
Elements the individual elements that makes up a chart – a bar, a pie segment, a line,
etc.
Chart data the values that are represented in the graphic.
Sets and Groups used by some chart type to categorize data of the same level. For instance, a
stacked bar chart may represents year-on-year statistics for a number of
products. A set would represent the years and the products would be
referenced in a group.
Index used to cross reference chart elements with data values in some chart
types.
Axes the lines on the outside of a chart that provide a scale reference.
Grid lines optional lines drawn across the chart at intervals on the scale.
Legend provides a key for chart elements.
Units used by some chart types to specify the scale to be used when representing
values. For instance, 64000 would show as a chart value of 64 if units are
set to 1000.
168
Charts
Charts are typically created using a wizard which assists with selecting the required chart
configuration and which automatically creates the appropriate object tree in the logic map. A
new chart created using the wizard has dummy values assigned to it. You will need to edit the
Chart data objects it contains to supply the actual values you want to represent.
| To create a chart:
1. Position the cursor in the paragraph or The chart wizard will create a basic
other presentation object the chart is chart layout using the options
to follow. selected. You will often be able to
use one of the Market options
which will use default settings
2. On the Insert menu click Presentation appropriate for the selected style.
Objects/ Chart/ Chart . The Chart
wizard will be invoked.
3. Use the pages of the chart wizard to
specify the initial setting for your chart.
When you select Finish the new chart is
generated and contains all the objects
necessary to format the graphic
Ensure that Select the Next button
according to your instructions. Use wizard is and follow the instructions
checked. on each screen.
4. Specify the values to be represented.
In the logic map the main chart object will contain Chart data
objects for each of the elements specified in the wizard. A
dummy value (defined as a constant) will have been assigned
to each.
Double-click a Chart data object to show its properties dialog
box. On the Data page use the Value control to select a data
element or other object that will provide the chart input. See
“Working with values” on page 106 for more information. You
must only supply numeric values to a chart.
5. Refine and customize the chart layout.
Refer to the information about the chart
L IF REQUIRED YOU CAN MANUALLY GENERATE ALL
THE OBJECTS REQUIRED TO BUILD A CHART. IF
YOU WANT TO DO THIS CREATE THE MAIN CHART
type you are creating for details.
OBJECT AS ABOVE BUT UNCHECK THE USE WIZARD
OPTION.
Moving and resizing
Charts are treated like any other graphic in the document editor and can be moved, resized
and deleted as required. For more information about editing in general see “Working with
graphics” on page 50.
169
Charts
To enable the various tick mark settings, Major Ticks must be enabled. Once selected this
allows you to choose the color for the ticks and whether you want to have minor ticks and
labels in your chart.
Selecting the Show grid lines option will display grid lines in the chart and enable you to select
the width and color of the lines.
Units determine how the data presented in the chart is scaled to fit the axes. Bar and stack
charts scale one axis; line and scatter charts scale both axes. For example, a bar chart with data
axis units of 1000 will show a value of 83512 as a bar representing 84. Note that scaled values
are always rounded up to the nearest whole number.
170
Charts
Major tick increment is the number of units between tick marks on the scales axis. These marks
have their scaled value next to them. The Minor ticks per increment is the number of marks
between each major tick. Note that both major and minor ticks are optional.
Bar, stack and line charts work with groups of values and you will
need to use index numbers to associate data objects with the
appropriate group. Line chart elements have a single index
number – one per line in the chart. Bar and stack chart elements
have two index numbers – one for the Group and one for the Set
to which they belong. You will need to ensure that all Chart data
objects reference the appropriate index number(s).
If you used the wizard to create your chart then the element and
data objects will have been automatically created with the
required index numbers to provide these references. You will
need to use new indexes if you add elements to the chart.
171
Charts
Values within bar or stack charts are always part of a Set and a Bar
group. The set identifies values of the same type: for example, the
same month in a number of years. The bar group places values within a comparison group: for
example, a particular year. If your chart has only one comparison to make – for example, only
months for a single year are to be shown – then the group will always be the same.
Data axis title Chart title Legend Width & spacing of bars
Define in Data axis Define in Chart Define set names in Chart Define in Bar axis definition. The
definition object. object (Label tab). set objects. Define position Width setting indicates the % of
& optional drop shadow in available space to be occupied by
Chart object (Legend tab). all bars. 100% indicates no gaps
Ticks & labels between sets. Note that only sets
Define in Data axis are spaced, not individual bars.
Width 100%
definition. object. You can To fill the space in a Set when an
label the major ticks with element has zero value open the
the values they represent. Chart object and on the Element
Select a font & color as tab select
required. Balance
elements.
Bar axis
Elements in
the same Set
In stack charts
Grid lines elements in
Data axis
172
Charts
| To create a new Bar group: mark the insertion point within the Bar grouping section of
the Chart object in the logic map and from the Insert menu click Presentation
Objects/Chart/Chart Group.
| To create a new Set: mark the insertion point within the Chart sets section of the Chart
object in the logic map and from the Insert menu click Presentation Objects/Chart/Chart Set.
173
Charts
| To add a new bar: open the Chart data definition section within the Chart object in the
logic map and from the Insert menu click Presentation Objects/Chart/Chart Data.
| To add a custom label to a specific bar: double-click the required chart data object in
the logic map and specify the label. Note that this option not available for stacked charts.
174
Charts
Tilting
You can tilt a 3-dimensional chart to create a greater 3-D effect. You specify the angle that the
chart is tilted from the horizontal. 3-D charts are created with a default tilt angle of 5°.
| To tilt a 3-dimensional chart: open the Chart object in the logic map and in the View tab
set the tilt to an angle in the range 5-45°.
175
Charts
Line charts
Line charts plot a series of X/Y coordinates along one or more lines. These
coordinates are defined in the chart data objects assigned to the chart.
The coordinates can be highlighted with markers if required.
Grid lines
Define in Data axis definition
when Major ticks have been
selected. Horizontal lines will
be drawn at major ticks.
Backing color
You can color the backing box
in the Chart object (Frame tab).
Frame The default is no color.
Define in Chart object
(Frame tab). Set thickness X axis title Ticks & labels
Vertical
(Y) axis
176
Charts
| To create a new line: mark the insertion point within the Line definition section of the
Chart object in the logic map and from the Insert menu click Presentation Objects/Chart/Chart
Line.
Assign a value to be
used as the line title.
Format the
label value if
The next available index number is required.
assigned automatically. Change with
care if required – see “Sequencing
and indexes” on page 171.
| To add a new coordinate: open the Chart data definition section within the Chart object
in the logic map and from the Insert menu click Presentation Objects/Chart/Chart data.
177
Charts
Pie charts
A pie chart shows data as a circular diagram with segments indicating the percentage each
value represents of the overall total. The pie itself can have a two or three-dimensional look.
Two-dimensional charts have the additional option of 'exploding' either the largest or all of
the segments.
Each chart data object assigned to the chart equates to a segment of pie that can appear in
the graphic but note that you may choose to ignore or group values below a user-defined
threshold. DOC1 will calculate the percentage to be assigned to each segment depending on
the contents of all the chart data objects assigned.
Pie charts do not use index numbers. The pie segments are displayed in the sequence they are
placed with the chart data definition group.
Frame
Define in Chart object Position/size of the pie
(Frame tab). Set thickness You can move and adjust the size of the pie relative to the
Exploded segment
to zero for no frame. overall chart frame. In the Chart dialog box (Frame tab),
Double-click on the Chart object and select the
View tab. You can specify that all the segments check Move/resize the pie. This enables the position and
are exploded or just the largest one. size options. Change as required.
Note that Height is only enabled for a 3D pie chart, and the
position is measured from the top left corner of the frame.
178
Charts
Tilting
You can tilt a 3-dimensional chart to enhance the 3-D effect. You specify the angle that the
chart is tilted from the horizontal. 3-D charts are created with a default tilt angle of 5°.
| To tilt a 3-dimensional chart: open the Chart object in the logic map and in the View tab
set the tilt to an angle in the range 5-45°.
179
Charts
Labels
Element labels can be drawn either close to the pie segments or aligned on the right and left
sides of the chart.
| To set shading for the pie base: open the Chart object in the logic map and in the View
tab check Use shading. Select the fill color, pattern and shade as required.
By default, the first Chart data object in the logic map – labelled Other – contains the small
segment options.
| To set the threshold for small segments: open the Chart data object in the logic map and
in the Data tab use Value to set the number below which the small segment options will be
applied. By default, the threshold value relates to actual chart data but if you select the Treat
value as percentage option the value represents a percentage of the overall pie. If a value will
produce a segment smaller than the percentage the small segment options will be applied.
180
Charts
| To show all values regardless of size: open the Chart data object in
the logic map and ensure that the Override small segments option is not
checked. All segments will appear in the chart, regardless of size.
| To remove labels from small segments: open the Chart data object
in the logic map and ensure that Override small segments is checked and
click Drop labels. The labels for segments with a value less than the
threshold will not be displayed.
| To group small values together in one segment: open the Chart data
object in the logic map and ensure that Override small segments is checked
and select Group together. In Pattern, specify the color for the grouped
segment and use Title to select title text for the group segment.
181
Charts
Scatter charts
Scatter charts plot a series of X/Y coordinates within the chart scale. The
coordinates can be represented by markers of varying styles.
The coordinates are not connected to one another and therefore scatter
charts do not use index numbers. However, you can use grid lines to
assist with reading the relative scale position of the values provided.
Chart title
Define in Chart title. Legend
Y axis title
Define in Define coordinate names in Chart data
Vertical (Y) axis objects. Define position & optional drop
shadow in Chart object (Legend tab).
Grid lines
Define in Data axis definition
when Major ticks have been
selected.
182
Charts
| To add a new coordinate: open the Chart data definition section within the Chart object
in the logic map and from the Insert menu click Presentation Objects/ Chart/ Chart data.
183
Advanced data handling
The information in the chapter “Working with input data” on page 74 details most of the
features you will need to use when using elements from your intended input data file in
publication designs. This section covers any other topics related to the use of input data not
covered elsewhere.
Alternatively you can export both a data map and a data dictionary from an existing data
format. This will allow designers to work with a list of known data elements and avoids the
need to manually link individual elements.
184
Advanced data handling
| To associate a data map within a publication or change the sample data file to be
used:
1. In the Publication View double-click the publication button
2. In the publication dialog use the Data Map browse button.
You can select an existing data map or create a new one by selecting a data format. If a
data format is selected the data mapping wizard will automatically be invoked.
3. If you want to change the sample data file associated with the data format/data map click
the Sample Data browse button.
185
Advanced data handling
4. Select Save data map and sample data settings to retain those settings next time the file is
opened.
When you have mapped data references in your document design, use the navigation
controls in the document editor to browse back and forth through the
sample data sequentially or, provide a record number to view a specific record in your
document.
You may need to use this feature if you want to process repeating data without actually placing
fields in a document design, for instance if you simply want to total values from the data and
store them for later use. You may also find it allows you more flexibility than a transaction table
if you need to create complex logic in relation to placing repeating data.
In the logic map the object has a main Every Occurrence group in
which you specify the logic and, optionally, the presentation
objects that will be processed iteratively according to the number
of times the control element is repeated. It also has a Before First
Occurrence group which is processed once when the control object
is first encountered and an After Last Occurrence group which is
processed once after all the repeating data has been handled. You
can use presentation objects within the Before and After groups to
create header and footer style sections around the repeating data if
required – note that presentation objects should not be used when the repeating data object
is in a table.
186
Advanced data handling
available only when a data record has LANGUAGES, MAY PRODUCE UNEXPECTED RESULTS.
187
Advanced data handling
Spacing
These values indicate the amount of space to be left between the complete set of presentation objects produced
by the repeating data object (if any) and the objects that are placed before and after. They do not influence
space within the objects produced by the element itself. If you want to make these kind of adjustments use
paragraph settings.
188
Advanced data handling
XML input data must be used if you want to include hard returns in the RTF field. The RTF
must be placed within a <CDATA> container for the hard returns to be handled correctly by
DOC1GEN. For more details on XML, see “Types of input data” on page 253.
189
Localization
DOC1 uses the concept of locales to allow control and customization of data and presentation
objects to take account of regional variations. Such requirements may range from simply using
regional date and currency formats to complete customization of document content including
text translation and conditional resource selection.
About locales
Locales operate on several levels. Locale objects themselves contain default formatting
information for most DOC1 data types. For example, you can specify the standard currency
symbol, the character used to separate date components, the way in which positive and
negative numbers are formatted and so on.
The Work Center provides a default locale for publications and the design objects contained
within them. By default, English (United States of America) is the locale that is used by
publications until you choose to change the setting.
Each design object has a default locale that is active when processing of a document begins.
An action in document logic allows you to switch to a different locale at any point during
processing.
You can also create localized variations of entire paragraphs, normally so that the text they
contain can be translated. The paragraph variants are associated with particular locales and,
as with regional settings, are activated when the active locale is switched.
| To set the default locale: Select the Environment tab and then the Locales bar. Highlight
the locale you want to set as the default and select Tasks/Set as Default Locale.
190
Localization
If you are using sections within document designs you can override the locale specified for a
document on a section-by-section basis.
At any point within document or publication logic you can specify an action to activate an
alternative locale. The new locale will then be used until a further Change locale action is
encountered or until a new document (or a section with a locale specified) is loaded.
191
Localization
Localized paragraphs
You can create variations of paragraph content which are automatically selected according to
the active locale. Before you can create localized paragraphs you must specify the locales that
are to be available with this feature used (and therefore the number of variants a paragraph
can have).
You must indicate the paragraphs that are to be localized and the language (locale) required
for each.
Once defined, such paragraphs each have a master version and a variant for each selected
language. The content of the master version is automatically copied to all language variants
when it is marked for localization (and when new languages are added).
Once content has been applied to language variants it must be maintained independently of
the master. However, any new content that is added to the master version is also automatically
appended to all language variants from where it can be merged into the localized presentation.
Localized paragraphs can contain in-line or anchored graphics as well as text and these can be
maintained independently within the variants.
You can create localized paragraphs within document designs and Active Content objects.
192
Localization
You can override this default and show all the paragraph language variants for a specific locale
if required.
193
Localization
If you split a localized paragraph you will be given an option to create language variants for
the new paragraph. However, the language variants of the original paragraph will be
unaffected by this and you may need to adjust their content manually to reflect the split.
If you join localized paragraphs the additional text will be applied to all variants of the
remaining paragraph using the currently active language. You may need to localize the
content of the other language variants as appropriate.
194
Production journals
DOC1 uses journal files to allow you to record the activity of a publication when it processes
in the production environment. You may often want to use journals to make an index for the
documents and pages produced by the application. These can help with things such as
post-processing requirements, audit trail and archiving functions.
You can write as many entries as required to one or many journal files. During processing in
the production environment an entry will be written to the assigned file whenever a journal
object is encountered in publication logic. You can use conditions and other logic to
determine if and when an entry is actually written. Journals are normally generated within a
publication, but you can also generate them at the start and end of the entire production job.
In the output file the entry itself is a new line or record containing the value(s) specified in the
journal object. Each value can be separated with a user defined string if required or simply
concatenated together.
The target output files for journal entries are distinguished by the file alias you specify. Each
different alias used in a publication design will produce a separate file in the production
environment. You will need to specify the actual file references to receive the journal output
when the publication is published. See “Publishing and deployment” on page 344 for details.
195
Production journals
196
Production journals
When working with this type of journal you need to be aware of the following:
• Structured XML journals cannot be used with PCE.
• Duplicate names are allowed within a single and across multiple journal entries. However,
these entries are invalid if used with an EngageOne application when:
– duplicate names exist across multiple journal entries that do not share the same
datatype.
– duplicate names exist within the same journal entry.
• Multiple entries will appear in the journal when a journal object is placed inside a
transaction table, loop or repeated data item. Only the first entry is processed if the
journal is used with an EngageOne application.
• Journal data is cached to disk during the composition process based on memory options
set in the publish wizard. Cached data must be processed at the end of the production
job to create the final journal, this will have an impact on performance.
AFP Indexing
AFP indexes should only be specified in a DOC1 publication when at least one of the intended
output datastream is AFP. The index information is in binary form and is intended for use only
with third party software that can deal specifically with this indexing structure.
The values must be specified in the order shown and you may not omit any value.
In the production environment DOC1 Generate will use journals defined as AFP indexes in
two ways:
• The journal file itself will be created as a self-contained AFP index containing all the
entries generated by the job.
• For the AFP datastream itself an AFPDS Tag Logical Element (TLE) structured field
containing the relevant index values will be included in each page generated by the
appropriate publication.
197
Interfacing with message applications
Content Author and Message1 are optional additions to the DOC1 environment that allow key
parts of document content – messages – to be created, maintained and deployed
independently of the main publication design. You can think of a message as a segment of
page content that can contain text and graphics and make use of variable data available to the
publications in which they are used.
Message applications use message areas to define the space available to particular groups of
messages. In DOC1 Designer you can map such areas to specific reserved space in document
designs – message boxes – or alternatively message areas can be inserted directly as part of the
main flow area of the document – message streaming. You will also need to map the data fields
used in messages to specific values provided by your publication logic and – for Content
Author only – provide a set of actions for signals if used. For Message1 only you must link the
language settings used in the messages to the equivalent DOC1 Designer locale.
198
Interfacing with message applications
3. Confirm updates.
If you have previously imported an environment
file differences with the new file will be indicated.
Click OK for the information to be updated.
Message boxes behave similarly to text boxes. They can be inserted anywhere in a document
design, for instance, in the body area, on the background, in headers and footers. Their
attributes can be adjusted as with any other shape object. See “Working with graphics” on
page 50 for details.
By default the width and the maximum height of a message box is fixed by the dimensions you
specify. If required, you can use the Shrink box height to fit content options to specify that the
height of the box should vary where the content is less than the specified height.
199
Interfacing with message applications
No shrink to fit
200
Interfacing with message applications
Message Streaming
Message streams allow messages that have been created in Content Author to be inserted as
part of the main flow area in a document. The content of a message area is inserted as a
continuous, flowable unit that will overflow onto new pages as necessary.
Formatting of the messages is as defined within Content Author, with the following exceptions:
• the width is that of the flow area, subject to any indents specified in Content Author
• there is no restriction on the height – the message stream will flow over as many pages as
required.
Although the size of the message area is not Message streams can only be
relevant, the criteria for including an area inserted between paragraphs,
is used. they cannot be part of one.
201
Interfacing with message applications
| To map a message data field: mark the insertion point in your document logic and select
Insert/Set variable from the menu.
Message signals
Signals can be assigned to messages in the Content Author. A signal is an indication to the
main DOC1 application that a particular message has been used within a publication and
allows actions to be taken in response. This could be used for example, to pass information to
inserter equipment (usually via an entry in a DOC1 journal file) so that brochures, flyers etc.
can be added to the same envelope as the printed document. A message signal object is used to
test if messages with signals have been placed in the current publication and to perform the
required actions.
Signals, which consist of a name and description, are passed to DOC1 in the message
environment file and the message signal object can only be defined once the environment file has
been imported into DOC1 – see page 198.
202
Interfacing with message applications
203
Interfacing with message applications
When publishing and previewing, you will need to specify the Publish wizard options that are
required for message applications including the file containing the latest messages and error
handling options – see the “Publish Wizard options“ for “Messages” on page 360.
Two system variables – Mandatory messages and Optional messages – allow you to monitor the
status of messages that are available for placement within the document currently being
processed and optionally activate appropriate logic. See “System variables” on page 160 for
details.
| To specify the unique reference for the audit trail: mark the insertion point in your
document logic, (ensuring that this is before any messages are placed by the logic – i.e. before
the first message box) and select Insert/Control Objects/Action from the menu. In the Action
dialog box select the Set customer ID option and assign the required field or value.
204
Interfacing with e2 Vault
The e2 Vault environment caters for high speed storage and retrieval of electronic documents.
e2 Vault itself is the main repository in which documents are stored and maintained. Various
other e2 products provide access to the repository.
Rendering
Web Vault Service
Server
optionally with payment facilities. While it Server & other
Docs. & clients
accesses the Vault repository, e2 Account Indexes
Management has its own management
systems.
Download Directory
e2 Vault can accept documents from
several sources and has a variety of
methods for loading the data and
Data Server
Indexes
Generate
Center
associated resources. For documents Output
Work
Vendor DIJ data- HIP
created by DOC1 applications Vault always config-
stream
uration
requires the following resources:
Admin.
• The actual documents to be archived Server
as part of a standard output
datastream file created by DOC1
Generate
• A DOC1 Interchange Journal (DIJ) to act as an index for the documents also created by
Generate
• The resources required to present the
documents delivered within the L FOR INFORMATION ABOUT LOADING THESE FILES
INTO E2 VAULT REFER TO THE E2 VAULT USERS
appropriate HIP file (as created by a GUIDE.
Work Center publishing task).
If the archived documents are also to be used within a e2 Account Management environment
the application also needs to provide vendor configuration data which is stored within the DIJ.
Normally the data required can be created as part of the relevant publication object within
the DOC1 Work Center.
205
Interfacing with e2 Vault
Each record within a DIJ specifies a unique key for each document by which it will be
referenced in the Vault environment (usually an account number). A DIJ can also provide
additional information about the customer account to which a document belongs, to provide
search data for use with Vault client systems.
Custom presentation
If required, you can also write publication data to the DIJ for custom presentation by
e2 Present. When you use the Store Data Set option, the input data destined for each
document is copied to the DIJ along with the regular index information you have requested.
Contact your DOC1 supplier for further information if you want to use this option.
206
Interfacing with e2 Vault
Address tab use this to provide the address data related to the account to
which each document belongs.
Custom settings tab use for additional document index information that may be
required where custom versions of e2 Present are in use.
Table of contents
For extended document types you may want
to include a table of contents that is L FOR MORE INFORMATION ABOUT CREATING
BOOKMARKS SEE “BOOKMARKS” ON PAGE 95.
available when documents are viewed from
the Repository. Where used the structure and labels used in the TOC are specified by using
Bookmark objects in the logic map of document designs (i.e. they are not configured in the DIJ
dialog box. At production run-time, the TOC information will be automatically generated and
stored in the DIJ if bookmarks have been used. Bookmarks can be nested to create the
required structure for the table of contents.
207
Interfacing with e-Messaging
The e-Messaging system manages e-mail and SMS (Short Message Service) customer
communications. It allows organizations to design content for both these in a single design
environment. It enables organizations to allow their customers to communicate at any time,
maintaining an up-to-date customer-centric view at all times throughout the organization. It
can also help organizations to maintain a brand consistency
Data tab use all fields to identify the documents to be sent in the messages.
Statement Date should be the date the message is to be sent, as it
will appear in the e-mail header.
Publication ID tab not required – use the Default setting.
Options tab not required, but can be used for extra address fields.
Address tab Address fields can be included as required.
Custom settings tab Contact your DOC1 supplier for information on these settings.
208
Creating EngageOne templates
EngageOne is a solution that allows the
creation, control and delivery of ad hoc L THIS SECTION COVERS THE CONSIDERATIONS
THAT SHOULD BE GIVEN TO PUBLICATION DESIGN
customer correspondence such as letters and WHEN CREATING ENGAGEONE APPLICATIONS. FOR
offers based on a standard DOC1 publication COMPLETE INFORMATION ABOUT ENGAGEONE
design. In this scenario the DOC1 Designer PLEASE REFER TO THE ENGAGEONE
The layout and style of an ad hoc document may be very different from the designs used for
batch applications but within DOC1 Designer the files and objects used are fundamentally
the same. It is only at publishing time that a publication is identified as an EngageOne
resource and results in a template file being created for use with the EngageOne environment.
Active Content objects also play an extended role in EngageOne applications. A typical
EngageOne template will make use of one or more Active Content groups. Such groups can be
used, for example, to automatically select a range of paragraphs when particular properties are
matched and provide a list of possible paragraphs to be included in the final document.
Using Active Content objects can also significantly reduce the time and resources needed to
deploy content changes to the live environment as they can be published and applied
separately from the main template files. Additionally, organizations may often want to maintain
209
Creating EngageOne templates
many different EngageOne templates with similar content so using shared Active Content can
allow changes to be easily distributed. For full details of working with Active Content see
“Using Active Content” on page 237.
In the EngageOne environment, other actions may occur within the document based upon the
action taken. A new list of choices may become available, a new piece of content may
automatically be added as an attachment, or conversely, content and choices may be removed
based upon a user’s choice.
If you publish for EngageOne, templates do not contain any font and image resources for
target output datastreams. Such resources are placed within independent files that must be
created and deployed in conjunction with requests from the EngageOne server. This
architecture allows EngageOne to re-use previously deployed resources wherever possible. For
more information see “Publishing resources for EngageOne” on page 230.
Before you deploy new or amended EngageOne resources to the server a Preview for EngageOne
function allows you to see a template as it will appear to the correspondent; i.e. loaded in a
web browser and with interactive data prompts displayed.
210
Creating EngageOne templates
EngageOne data
An interactive data definition describes all
Work Center
the interactions required to complete a Data Data
document from the template in the Aliases Fields
EngageOne Server
created before you build the EngageOne Template
template. The interactive data can then be
referenced and incorporated into the Interactive
template design by assigning the data map Data EngageOne
Interactive
that was generated from the IDE. EngageOne Document
correspondent
The Preview for EngageOne feature allows you
to view the prompts you created using the
IDE as they would be seen by a correspondent.
When you define fields these can be included in groups containing several fields of
hierarchical data for defining prompted fields, or repeating groups of system supplied data.You
can specify default values for fields within repeating groups for an unlimited number of
repetitions of the group.
You can use the IDE to define annotations for any data field provided they comply with the
W3C XML schema annotations standard. Annotations allow you to pass additional
information through the EngageOne schema to your system data integration program. For
more information about integrating external system data see the EngageOne Programmer’s
Reference Guide.
211
Creating EngageOne templates
Adds a parent
Adds a parent placeholder for a
placeholder for a repeating group.
group of several fields.
2. Use the Field Properties pane to define the properties and values of the currently selected
field. For details see “ Field properties – Interactive Data Editor” on page 213.
3. Click OK after completing each field definition.
212
Creating EngageOne templates
3. Use the Properties tab to define the properties and values of the currently selected field
from the field list.
4. Once all interactive fields have been defined click the Save button on the toolbar. This
saves the IDE and issues the interactive data definition.
Name A unique name to identify the field or group item. Must not contain spaces.
Type Identifies the type of data the field contains: Select one of the following from the
drop-down list.
Integer – defines a whole number. Type the number in the Default Value field or select the
number using the drop-down list.
Number – defines a decimal number. Type the number in the Default Value field.
String – defines a text field. Type the text in the Default Value field.
Date – defines a date. Click the drop down arrow in the Default Value field to display a
calendar control, localized to the regional setting of the local computer. Select the date
required.
Time – defines a time of day value. Click the up and down arrows to change the time or
enter the value directly in hours, minutes and seconds.
Prompt Optionally defines the message to be displayed to describe the action required from the
user during data capture.
Default Value Optionally represents the initial value that the interactive field will contain when the
template is first loaded.
Help Text Optionally defines an extended message for the Help button to provide more
comprehensive instructions to the user.
213
Creating EngageOne templates
Visible This is an advanced option that dictates whether the field will appear in the view when
the form is displayed in an XForms compatible web browser. For more information about
XForms and EngageOne data integration techniques see the EngageOne Programmer's
Reference Guide.
System Data Identifies fields where values are supplied by the mainline business system.
Key Field Indicates to mainline business systems that this is a primary, searchable field. Also used
in the EngageOne Interactive Correspondent application to identify records in the user’s
Work in Progress.
Data Validation Select Choices, Expression or Max Length from the drop-down list to open the appropriate
fields required to define the values. Available options depend on the Type of field
selected.
Expression Fields are opened to define data fields if Data Validation/Expression was selected on
Validation non-numerical field Type. Select one of the following from the drop-down list.
Range of – opens the next two adjacent fields for entering the range values. The “from-to”
values can be entered, or selected from the drop-down list.
Greater than – opens the adjacent field. Type the value or select one from the drop-down
list.
Less than – opens the adjacent field. Type the value or select one from the drop-down list.
Maximum Length This field is opened if Data Validation/Max Length was selected. Specify the number of
validation characters allowed for a String Type field.
Choices These fields are opened to define data fields if Data
Validation Validation/Choices was selected in the numerical field Type.
In the Selection Type drop-down list define how a single
selection from a pre-defined list should be presented to the
correspondent, by selecting: Moves the
Drop Down List or highlighted entry up
Radio Buttons.You can define a list of Selection Values that will or down the list.
be made available to the correspondent by clicking the Define
button to display the Choices dialog. One of these values can
be selected by the correspondent during data capture.
214
Creating EngageOne templates
| To edit IDE definitions: click on the field in the list you want to edit and change as
required. See “ Field properties – Interactive Data Editor” on page 213 for details.
| To delete IDE definitions: click on the field or group in the list you want to delete. Click
the Delete button on the toolbar, or use the shortcut menu. Note that if you delete a
group all definitions will be deleted with it.
| To preview IDE definitions: use the Preview button in the toolbar to display how your
interactive data prompts will be seen by the correspondent. You can move through the
prompts using the capture control,
– or –
double-click on the field.
215
Creating EngageOne templates
Using annotations
Use the annotations feature to create a self-documenting schema. You are not limited to a line
length in Designer, only by the limits imposed by the XML standard. Annotations are definable
on groups, fields, repeating groups and delivery nodes.
Clicking Cancel
disregards any
changes made.
3. Click the Save button on the toolbar to save the data definition.
216
Creating EngageOne templates
| To set default data for repeating groups: click on the repeating group for which you
want to set default data and click the Repeating Data tab to display the Repeating Data Values
pane.
In the case of a nested, repeating group the entered values are assigned a read only, sequential
index number. The values are matched to the corresponding index number of the parent node
of repeating data. Note that if you set more nested, repeating data values than there are
repeating data nodes, a nil record will be set up for those not matched.
<Publication>
<InteractiveField xsi:nil="true"/>
<Drivers>
<Name>Paul</Name>
<Endorsements>1</Endorsements>
<SpeedCodes>
<Code>SP30</Code>
<Penalty>100</Penalty>
</SpeedCodes>
</Drivers>
<Drivers>
<Name>Joe</Name>
<Endorsements>0</Endorsements>
<SpeedCodes>
<Code>SP50</Code>
217
Creating EngageOne templates
<Penalty>70</Penalty>
</SpeedCodes>
</Drivers>
<Drivers>
<Name xsi:nil="true"/>
<Endorsements xsi:nil="true"/>
<SpeedCodes>
<Code>SP70</Code>
<Penalty>200</Penalty>
</SpeedCodes>
</Drivers>
<DeliveryInformation>
<Recipient xsi:nil="true"/>
<EmailToAddress xsi:nil="true"/>
<EmailFromAddress xsi:nil="true"/>
<EmailSubject xsi:nil="true"/>
<EmailBody xsi:nil="true"/>
<FaxNumber xsi:nil="true"/>
</DeliveryInformation>
<g1private/>
</Publication>
</InteractiveDataModel>
218
Creating EngageOne templates
Prompt groups
Prompt groups enable you to collect multiple data values in a single prompt dialog. For
example, you might have several single interactive data fields for lines of an address that you
want to collect in one capture control. You can collect the data to be included in the prompt
group by either selecting the interactive text on the page and creating the prompt group, or by
inserting a prompt group in the required position in the logic map. You must then select the
required data elements from an existing data dictionary. Once you have created the prompt
group and defined the data, the prompt layout editor allows you to design the layout of the
prompt that will be shown in the interactive editor.
Highlight a line of
Displays the currently prompted data and click
associated interactive data if Remove to delete it from
text was selected. This will the prompted Data list.
be empty if created via the
toolbar or Insert menus.
Click to invoke the Prompt
Creates a new Layout Editor dialog for
prompt group. designing your prompt box.
5. Clicking the Design button invokes the Prompt Layout Editor. The dialog comprises a canvas
area, which represents the capture control design and a field list that shows the fields
available. You can move prompt fields from the field list to the canvas area and vice versa
by using the left and right arrow keys. Once in the canvas area the prompt fields can be
219
Creating EngageOne templates
moved, removed and resized within the margin by dragging the selected field and
dropping it in the required position. You can re-size the canvas area by clicking on it and
and dragging out the area as required.
Canvas
area The right and left
arrows keys move the
selected prompt fields
from the canvas area to
the field list and vice
versa.
220
Creating EngageOne templates
221
Creating EngageOne templates
Similar to DOC1, EngageOne can make use of structured XML journals, which in addition to
usual journal entries, automatically provide page count and page offset information. For more
information about structured XML journals see page 196. If XML journal entries in the form of
a name and value pair are used, they must be given a unique name within the template. The
names will be available in EngageOne Administration within Delivery Management for use as
system variables. See the EngageOne Administration Guide for details.
222
Creating EngageOne templates
In a typical EngageOne scenario, you could create an optional content list, with a variable set
in one of the entries in the group. Should this variable be matched in the selection you could
direct the correspondent to another interactive list elsewhere in the document. Additionally
you could automatically add other content later in the document according to a selection
made by setting the Show With property in a non-interactive Active Content group.
For more detailed information about using Active Content in this way see “Active Content
groups” on page 243.
223
Creating EngageOne templates
For more information about converting external keyed images for EngageOne see the
EngageOne Key Map Generator User’s Guide. For more information about defining key maps
and image management in EngageOne see the EngageOne Administration Guide.
Editable Text
You can allow the correspondent to edit or create free form text as required within an
EngageOne document. Such editable text is defined in an editable container object in DOC1
Designer and can be limited to a specific string within a paragraph or sentence, or you can
allow an entire paragraph to be editable. An editable container can contain editable text
(highlighted in yellow), as well as protected, non-editable text. Empty editable paragraphs that
are created within a container do not appear in the print stream.
Note that you can only select fonts in the preview that have actually been used within the
template design, but when you publish for Interactive you can specify extra fonts for the
correspondent to use with editable text – see “Running a publishing task” on page 351.
224
Creating EngageOne templates
7. Enter or copy text into the container as required. The text will automatically be marked as
editable. To revert editable text back to protected text see page 225.
4. Check that the interaction in your template design performs as required by using the
Preview for EngageOne option. See “Previewing an EngageOne template” on page 227 for
more details.
| To unmark text as editable within an editable container: select the highlighted text you
want to revert back to protected text. From the Format menu uncheck the Mark as Editable
option,
– or –
select the Mark as Editable button on the Standard toolbar.
– or –
use CTRL+E.
225
Creating EngageOne templates
Note that it is possible for an editable container to contain only non-editable text. If you
delete an editable container, be aware that all content will be deleted within it, including
protected, non editable text. If you want to delete the object in the logic map then you must
move the content you still require outside the editable container and then delete the object.
Recipient processing
When a template is submitted for delivery by the correspondent the delivery process is defined
by the EngageOne Administrator, which involves defining and mapping devices and recipients
to channels and grouping channels to form delivery options. This provides automatic carbon
copy processing using recipients, meaning that the correspondent need only select one
delivery choice and carbon copies will automatically be created and delivered.
Recipient conditions in the template are used to produce non-unique content. For example, if
you do not want the user AGENT to receive the content designated to INSURED then you
must check a condition against the recipient field for the content in your template design:
if the recipient field Is Not Set (correspondent needs to see everything), Or, is equal to AGENT.
You must then use EngageOne Administration to set the Inclusion Condition in the delivery
channel to match. See the Delivery Channels chapter in the EngageOne Administration
Guide.
| To set a recipient condition: on the Format menu option click Paragraph. On the Show
When tab of the Paragraph dialog box check the Show When option and enter the condition as
required.
For more details about conditional paragraphs and creating conditional expressions see
“Conditional paragraphs” on page 45.
226
Creating EngageOne templates
Editor toolbar
Inactive prompt
Active prompt not completed
completed
Capture control
Inactive prompt
not completed
In interactive mode the document background is shaded and you can use the capture control
to move through both the data prompts that have been introduced through the IDE and lists
for selecting optional data defined using Active Content groups. See previewing IDE
definitions on page 215 for details about using the capture control.
227
Creating EngageOne templates
You can also tab through the prompts. When you reach the end of all data prompts included in
the template the document background turns to white and turns back to grey again if you
reach the first prompt in the document. The order in which you see the prompts is driven by
the logic so if you want to change the sequence then you must change the positioning in the
logic map.
Any interactive data is identified on the document using pushpins. Green pushpins indicate
data that has already been entered. White pushpins show positions where data input is still
required. A larger version of pushpin indicates the current active prompt. This can be green or
white depending on whether data has already been entered or not.
If your template contains multiple documents a navigation pane will be displayed that shows
named thumbnails of the documents in the template. You can move between the different
documents by clicking on the required thumbnail. Prompts are only displayed for the
currently selected document and once all prompts have been completed the next document
will be displayed automatically, until you reach the end of the series. Following is an example
of a multiple document preview.
Navigation pane
A white pushpin
indicates that prompts
are outstanding and the
document is incomplete.
A green pushpin
indicates that all
prompts in the
document have
been completed.
228
Creating EngageOne templates
Editor toolbar
The editor toolbar provides standard text
editing and formatting features for editable L NOTE THAT IN A PREVIEW FOR ENGAGEONE:
– YOU CAN ONLY FIND AND REPLACE TEXT IN AN
text and additional EngageOne related EDITABLE TEXT SECTION. ALSO THE WHAT TO
features. For details on how to use the editor SEARCH OPTIONS ARE NOT APPLICABLE.
toolbar features see “Editing features” on – SPELL SETTINGS ARE NOT APPLICABLE WHEN
page 28 and “Creating paragraphs” on USING THE INTERACTIVE EDITOR. FOR MORE
page 33. Pushpins can be toggled on and off INFORMATION ABOUT SPELL CHECK MANAGEMENT
ENGAGEONE ADMINISTRATION GUIDE.
using the Pushpin button (only when the SEE THE
229
Creating EngageOne templates
Additionally, Active Content can be published as a group or individually. These files are also
imported into the EngageOne environment. For more detailed information about this process
and configuring the EngageOne production environment see the EngageOne Administration
Guide. Take special care when publishing Active Content on its own – see “Using Active
Content to update publications in production” on page 246.
In some cases you might need to make a wider selection of fonts available to the
correspondent within editable sections of text, other than those contained within the
template design. This is handled in the Publishing Wizard, where, when publishing for
Interactive you can select additional fonts for the correspondent to use in the Additional
Resources page. Note that the fonts specified will not be available in preview mode and you
must still use the Publish Resources for EngageOne option as usual.
All data fields that have been used in the template must be linked with actual data elements.
With EngageOne these references are resolved by referencing the data map produced from the
interactive data file. See “Generating a dictionary and data map for IDE” on page 221
When the completed template is imported into EngageOne, resources for that template are
gathered by querying all the templates for the resources in the list. Using the Delivery
Management/Resources/Export Resources option in EngageOne Administration you can export
template resources to a local file in XML format, which is passed manually to DOC1 Designer.
The Publish EngageOne Resources option in DOC1 Designer allows the input file to be browsed
and read and then prompts for the target output device definitions to publish to. A single zip
file is created that contains all the resources for the selected devices. This zip file is then
imported into EngageOne Administration to create or update all devices installed on the
server.
230
Creating EngageOne templates
If publishing cannot complete because the requested file contains missing resources you are
given the opportunity to import the missing resources into your repository. Possible reasons
could be that resources referenced by the templates were published from another DOC1
repository, or resources are missing due to a database restore from an older backup.
The basic process flow is illustrated in the following diagram.
231
Creating EngageOne templates
4. Click OK. Using the Explorer dialog provided, name and save the file to the location
specified by your EngageOne Administrator. A file package is created ready for importing
into the EngageOne Server. For more information about delivery management see the
EngageOne Administration Guide.
If a resource cannot be found, you are given the opportunity to import the missing
resources into your repository and continue publishing. The Missing Resources dialog lists
all the fonts and images that cannot be found in the DOC1 repository but are present in
the resource request file.
You can use the Import Fonts, and Import Images buttons until all the required resources
have been imported. For example, one of the missing images may not exist in the specified
folder, in which case it will fail to import. You can then specify a different folder, or copy
the missing image to the folder and press Import Images again. The same applies to fonts –
you can install the required fonts onto your system and try importing them again.
232
Controlling the output environment
This section discusses features that allow you to issue specific commands to the intended
output device within the datastream created by DOC1 Generate.
These options are only used where dynamic changes to the output environment are required.
General settings for the intended printer/browser are included in an output device object
that is specified as part of the Publish task.
When selecting colors in DOC1 for use with spot color printers you will need to be aware how
your printer interprets color commands that are passed to it within an output datastream.
If the printer supports only a single spot color this will typically be used whenever a color
other than black is referenced within the datastream. Printers that support multiple spot
colors will typically attempt to map colors within the datastream to the best match in their
toner palette.
Within the DOC1 Designer the use of spot color commands in the output datastream is
specified by using a highlight color group in application logic. All presentation objects
within such a group (other than charts and images) will be assigned the defined color. Existing
color specifications in these objects will be overridden.
Objects not within a highlight color group will use their regular color settings but will be
assumed to be black in a spot color environment.
The initial color to be used is specified as part of the highlight color object. If your intended
printer supports multiple spot colors you can use an Action to change the active color. The
selected color stays in force for objects within highlight color groups until a further change is
requested.
If you intend to publish to an AFPDS printer that supports highlight color then you will need
to specify the Highlight Color Space (HCS) options. Refer to the IBM MO:DCA specification
for full details of the settings.
233
Controlling the output environment
| To change the active spot color: create an action of type Change Highlight Color and
specify the new color in the Action dialog box. This action is only available within a highlight
color group.
234
Controlling the output environment
Additionally, some printers also allow printing on both sides of the physical sheets of paper.
This is known as duplex printing. When it is decided to print single-sided only, as simplex.
To switch the settings during the processing of a job you need to include Action objects in the
appropriate part of your document logic.
When creating an action to switch trays or bins you need to be aware how they are referenced
on your target printer. DOC1 provides a set list of trays and bins that you can map using the
appropriate format for the target printer. The mappings for the trays/bins are set in the
Output Devices bar in the Environment tab. You need to be aware of the mappings to select
the correct tray/bin when you insert an Action object. While you can use an action to override
which tray/bin is used when the document is published, you cannot override the tray/bin
mappings created for the output device.
235
Controlling the output environment
PostScript DSC
DSC comments are typically used to communicate with document manager systems in a
PostScript environment.
PostScript output has specific sections that provide controls related to pages, documents or
the entire job. You will need to indicate what section your DSC comment is to appear in.
The comment generated is not validated by DOC1 and the user must ensure that it conforms
with the DSC guidelines published with your document manager. Invalid comments may result
in unprintable PostScript files.
236
Using Active Content
Active Content objects contain segments of document content and logic. They provide a
highly flexible way to share and reuse such segments across multiple publication designs.
• In its simplest form Active Content provides a means to make the same segment of
document design available to many different publications.
• By using parameters and return values Active Content can be used to create reusable
functions.
• When used as part of an Active Content group these files can be conditionally linked via
property settings to provide a mechanism for dynamically building frequently reused
sequences of content.
• If you are designing document templates for use with the EngageOne environment you
can present a list of optional content for end user selection in the EngageOne interactive
editor using Active Content groups.
• Active Content can be published independently and then used to dynamically update one
or more publications that are already in production.
• Active Content can also be called as a keyed object. This allows specific Active Content
objects to be called depending on the value of a key usually set by input data. See “Keyed
objects” on page 163 for details.
Within the Active Content editor, paragraphs are created and manipulated exactly as you
would within the main document editor and you can make use of all text related features. You
can also include graphics (shapes or images) but note that these must be in-line or anchored to
a paragraph; you cannot used a fixed anchor type.
237
Using Active Content
Existing Active Content objects can be edited either independently using the Active Content
editor in the Work Center Manager or, within the context of a parent document.
238
Using Active Content
For details about the System Properties pane on the Active Content dialog box see “Using Active
Content to update publications in production” on page 246.
| To update the attributes of an Active Content object: open the file from the Work
Center and then double-click the main Active Content object.
239
Using Active Content
Where variables or other Active Content functions are used to provide parameters you can also
dynamically update their values if the Pass by Reference option is set.
240
Using Active Content
241
Using Active Content
242
Using Active Content
Unlike other uses of Active Content when working with groups you may want to create Active
Content objects exclusively for use by a single document design. These are known as private
Active Content.
243
Using Active Content
244
Using Active Content
The Active Content Group dialog shows the Active Content entries within the group, the
match status and whether the entry has been selected for inclusion. The associated properties
are taken over from the Active Content group entry but can be changed in the Property Map
for the group.
| To map properties associated with the Active Content to a data source: double-click
on the required Active Content group object in the logic map. The Active Content Group
dialog is displayed.
Determined by whether
the properties and
selection criteria have
been matched.
245
Using Active Content
Active Content groups can be made conditional so that they appear when certain criteria are
met, for instance, you may want to show a group only if a customer has a certain type of
insurance. You will typically want to use values from data fields and variables that have been
made available to the template as part of the condition.
Note that if you make an Active Content group conditional it will not be shown in the editor if
the specified condition evaluates to false. To change the settings you will need to use the logic
map to work with the relevant Active Content object. See “Using the logic map” on page 94 for
more information.
| To make the entire Active Content group conditional: double-click the Active Content
group object to display the Active Content Group dialog. On the Show When tab of the Active
Content Group dialog box check the Show When option and enter the condition as required.
Enter conditions
here. See “Creating
conditional logic” on
page 137 for details.
IMPORTANT: data fields cannot be used directly in Active Content that is published
independently. You can however pass them as parameters to the Active Content – see “Using
Active Content as a function” on page 240.
246
Using Active Content
Publishable Active Content will be included when you publish resources for EngageOne. For
more information see “Publishing resources for EngageOne” on page 230.
Note that the Active Content HIP file is not created when you publish the publication. You
must publish these separately – see “Running a publishing task” on page 351.
As an EngageOne solution commonly includes a large number of templates it will also often
make use of independently publishable Active Content to avoid the need to republish all the
templates when minor content changes are required.
For more detailed information about using interactive optional content using Active Content
groups you should refer to the Active Content and EngageOne section in “Creating
EngageOne templates” on page 209.
Interactive settings
The Interaction tab of the Active Content Group dialog is used to specify that the template is to
be used in interactive mode in the EngageOne front-office environment and allows you to set
particular interactive characteristics for display in the interactive editor.
247
Using Active Content
248
Identifying Input Data
About DOC1 input data
Input data is the variable information you use as part of your documents – typically an extract
from your corporate databases. DOC1 supports input data in the following formats:
Keyed records – effectively a raw data extract where publication data is made up of one or
more record types. Each record must be identifiable by the contents of a key field.
Delimited – a variation of keyed records where field locations are predefined using one or
more consistent delimiter characters. This is sometimes known as a CSV (comma-separated
values) file.
XML – any well formed XML file with an associated DTD or Schema.
Note that XML support is an optional extra and is only enabled to users who install both the
DOC1 Work Center and Generate with the appropriate license keycodes.
The type and structure of the input data file expected by a particular DOC1 production job is
described in a data format object. A data format is initially created by importing a sample of
the expected input data which is then used as a template for identifying the expected records
and fields. This is known as a sample data file.
Once you have imported your sample data into a new data format you can then use the Data
Format Editor (DFE) to specify and corroborate the details of the data elements it contains.
The type of work you need to do in the DFE will depend on the type of input data you are
working with.
Work Center
work with indirect references to fields and Data Data Records
records. These references are stored as part Aliases & Data Fields
of a data dictionary and you can use such Data Dictionaries Publication
dictionaries to represent the data available
for a particular publication, document or Data Map
any other logical grouping you want to
establish.
Sample
Data Format
Before being published all the data aliases Data
used by a publication must be linked with Publish
actual elements defined in the data format. Import Sample Data
This is done by creating a a data map object.
HIP
This can be done as part of the publication
process or you can create one in advance.
Generate
DOC1
Production
Production
Data
Job
250
About DOC1 input data
Once you have associated a data map with a publication you will be able to use the sample
data to provide extended example data for data aliases used in document designs. You will also
be able to switch between sample data files providing they conform to the structure known to
the data format referenced by the data map. You may want to do this for instance, if you may
have a range of files that contain a variety of data samples.
Data structure
In the production environment DOC1 Generate requires input data to be supplied in a single
file for each job. You may need to merge multiple input sources using the PBBI Data Flow
product suite or similar.
The start of a new publication data set within the input data is indicated by the presence of a
specific data element known as a start of publication record. Such records tell DOC1 to
expect a new publication data set and to reload the appropriate logic. At least one element
within a data format must be assigned this flag.
A job can produce multiple types of publication. DOC1 Generate decides which design to
apply to each publication depending on the start of publication record it encounters.
251
About DOC1 input data
Repeating data
Repeating data is the general term used
for data elements or groups of elements start of a group of
2 repeating records
that appear iteratively within the input (transaction summary
file. These typically contain transactional & transaction details)
information such as the details of an
itemized phone bill or a list of purchases start of a group of
8 repeating fields
on a credit card.
252
About DOC1 input data
The key field can appear anywhere within a record but must be in the same position and have
the same length in every record type. It typically contains a string that acts as a code for the
relevant record type.
Various methods are supported for Keyed data record delineation methods
delineating the records within the input
data file: key field other fields LF
253
About DOC1 input data
Delimited
This is a variation of the keyed record format in which fields are separated by one or more
consistent text characters. This is sometimes known as a ‘comma-separated values’ or CSV
format.
All fields in a delimited file can have This sample uses a single comma to delimit fields within
records. The delimiter must always be the same one or more
variable length including the key field characters throughout the data.
itself. Note that RDW prefixes are not supported for delimited input
data – the key field must always appear first in each record.
Delimited is a text only format and binary Records can be delineated using CR/LF or LF as with keyed
field types are not supported. If field data record data.
needs to contain the actual delimiter
character(s) the entire string must be enclosed in quote marks characters (defined in the data
format). In the following example a single comma is defined as the separator and the double
quote symbol as the quote mark:
As with the keyed record format, all records and fields to be treated as repeating data must be
sequential.
254
About DOC1 input data
XML
An Extensible Markup Language (XML) file used as input to DOC1 must have a document type
definition (DTD) or schema (XSD) associated with it either within the XML or in an
independent file.
Note that XML support is an optional extra and is only enabled to users who install both the
DOC1 Work Center and Generate with the appropriate license keycodes.
Any ‘well-formed’ XML file should be acceptable as DOC1 input. The following XML features
are not currently supported:
• Model groups XML element structure
<Customer Details>
• XSL transformations <Name>TomGradin</Name>
<Address>22 Main St.</Address>
• Boolean data type </Customer Details>
You can include additional sample data files in the repository as required and swap between
files of the same type when working with the editors.
255
About DOC1 input data
256
Creating a data format
A data format is the DOC1 file that describes the type and structure of the input data file
intended to be used with a particular job.
To create a data format you must import a sample of the data file that will be used in the
production environment. This acts as the template on which the data format is built. The
sample data file used for this purpose must contain examples of every type of data element
that need to be referenced by the jobs that will use it.
The import process will automatically ascertain as much information as it can about the
record and field structure of your input data. Once it is complete you can use the Data Format
Editor to specify additional details about the structure. The amount of manual definition
required will depend on the type of input data being used.
You can import a legacy data format from DOC1 Suite 4 into DOC1 Series 5. When used with
a sample data file imported into the repository, the data format will be predefined in
accordance to the definitions set out in the Data Format Editor in DOC1 Suite 4. After it has
been imported it can then be manipulated like a data format created in the Work Center.
257
Creating a data format
258
Creating a data format
| To customize date options: click the Date Options button on the Sample Data File Properties
dialog box.
259
Creating a data format
Date options
260
Creating a data format
For both keyed record and delimited data you will need to:
• indicate the record types that mark the start of a publication
• mark records that must always appear in a publication data set as mandatory
• define a reference name and data type of all fields that need to be referenced by a DOC1
job
• identify the record and field types that will appear iteratively – i.e. repeating data.
For delimited data the key field is automatically assumed to be the first field in each record
and cannot be changed but it can have varying size.
For keyed record data the key field must appear at the same position within every record in the
input data and can be 1-64 characters in length. The field length cannot vary in different
records and its content must be padded with spaces if necessary.
261
Creating a data format
When working with keyed record data no other data definitions can take place until the key
field is defined.
Additionally, one or more records that indicate the start of a new publication data set will
need to be identified.
262
Creating a data format
Managing records
The Data Order tab allows you to manage the Used as a basis for defining
record structure used in publications, for the record structure required
example, re-create the record order, exclude for a production job.
records or group them together.
To remove, delete or
hide a record click the
Data Order tab.
263
Creating a data format
Grouping records
If you want to use the same record at different locations within the data format, then you must
use different key numbers for each record. However, you can group these records together,
which will enable you to maintain them as one, i.e. changes made to any of the fields will be
applied to all records in that group.
| To group records together: in structure view select the Data Order tab. Highlight Global
Record Group List and select Create Record Group from the shortcut menu. In the Record Group
dialog box, select the record from the record list that you want to use as the template, and Add
it to the group. Repeat for all other records that you want in the group.
| To modify a record group: in structure view select the Data Order tab and expand the
Global Record Group List. Right-click the record group and select Edit Record Group to display
the Record Group dialog box and make the required changes.
| To delete a record group: in structure view select the Data Order tab and expand the
Global Record Group List. Right-click the record and select Delete Record Group.
Mandatory records
By default, records other than those flagged as Start of Publication do not have to appear in
every publication data set. Provided fields within the record are used conditionally within
document designs they will simply be ignored when they are not present.
However, it may be important to your document design to make sure that certain records are
always present before attempting to process a publication. Where this is the case you can flag
such records as being Mandatory.
264
Creating a data format
Most keyed record fields will have a consistent offset and length within records. Variable
length fields are supported providing they have a marker that indicates the end of the field
contents. This marker must consist of a fixed length constant of one or more characters which
are appended to the field contents proper whenever it appears.
| To define a field:
1. If you are working with keyed record data first identify the field
position. In the data view drag the mouse over the required
positions in any example of the record in which the field
appears.
For delimited data or a field that has already been defined
simply click within any example of the appropriate field.
2. Select Define/Field from the menu or click the define field button on the toolbar.
3. In the Define Field dialog box you must specify the type of data the field contains and any
related settings (see below).
4. Click Define to add the field definition to the data format.
.
265
Creating a data format
Number A signed or unsigned number with an optional floating point. Values can have a
maximum of 24 digits before the decimal place and 8 after. Where used, the decimal
point is real – i.e. a byte containing a decimal point character is stored as part of the
number. The character used as the decimal point is interpreted according to the settings
in the default or field specific Locale.
Decimal A signed or unsigned number with optional implied decimal places. The use of this
option invokes the Precision entry field for the position of the decimal point to be
defined. Maximum value is the same as type Number.
Note that the binary and packed field options are not available when working with
character measured keyed data.
Native Binary A binary encoded number where the storage type (LSB or MSB as in the options above) is
assumed from the operating system on which DOC1 Generate processes a job. Decimal
places are implied – use the Precision field as with type Decimal
LSB Binary A binary encoded number where the most significant byte is the second in a two-byte
pair (typical of applications from Windows and Unix systems). Decimal places are implied
– use the Precision field as with type Decimal.
MSB Binary A binary encoded number where the most significant byte is the first in a two-byte pair
(typical of applications using IBM operating systems). Decimal places are implied – use
the Precision field as with type Decimal.
Packed Decimal A signed number represented by the hex values of the field bytes, two digits per byte. The
second nibble of the final byte indicates the sign: hex 'D' indicates a negative value, all
others a positive. Thus the hex string X'348961' represents the value +34896. Decimal
places are implied – use the Precision field as with type Decimal.
Sign Overstruck As for Packed Decimal except that the first nibble of the final byte indicates the sign.
Position relative Fields that follow data structures of variable length within a record – i.e. fields that
to previous field appear after variable size fields or repeating fields – should have this flag turned on.
Under normal circumstances this option should be automatically checked where
appropriate.
266
Creating a data format
default code page is assigned when the WORKING WITH THIS TYPE OF INPUT DATA.
You can redefine existing field definitions to change attributes or amend the defined position
of the field. When moving field definitions, note that if the new location occupies any
positions already defined for other fields these will automatically be undefined. It is often
cleaner to undefine the affected fields specifically before redefining their positions.
267
Creating a data format
You may also want to shift a group of existing field definitions along the record offset range
particularly if you are editing a data format to take account of additional data that has been
added to a record.
| To undefine a field definition: with the field highlighted select Define/Remove Field from
the menu or click the toolbar button.
For keyed record data, DOC1 supports two kinds of repeating data structure: repeating
records and repeating fields. Each type can either be an iteration of a single element or of a
group of elements – e.g. a range of several elements which appears iteratively as a group.
Groups of repeating elements must appear sequentially in the input data.
268
Creating a data format
Repeating records
Repeating records are specified using properties of the record objects in the structure view.
Repeating fields
“Call charges” record
Unlike repeating records, fields cannot be iterated an
has been added to
unlimited number of times. DOC1 needs to be told how the repeating record
many times the field or group of fields are repeated group started by the
“Service” record.
each time it appears in the input data.
If the data is always repeated the same number of times you can specify the fixed count setting.
269
Creating a data format
270
Creating a data format
271
Creating a data format
Once this has been done DOC1 will evaluate all The ‘root element’ is for
the elements within all of the element display only and cannot
declarations in the schema. In the structure be selected as a Start
of Publication record.
view individual data fields will be created for
each identifiable data element.
| To define a start of publication record: right-click on it in the data view and select Start
of Publication from the shortcut menu.
| To change the data type associated with an element: select the Formatted Data tab.
Right-click the data field you want to change and select Properties from the shortcut menu.
Choose the required data type from the Type list.
When importing your data you can Treat <xs:extension> as Record import option
create records based on the Address_UKAddress and
<xs:extension> definitions found in Address_USAddress records
are created based on
the schema by using the
corresponding
Treat <xs:extension> as Record option. <xs:extension> constructs in
Alternatively you can merge all the associated schema.
attributes into a single record type Treat <xs:extension> as Union import option
Using the Treat <xs:extension> as Union
When this option is used a
option. The merge option allows you single record type is created
to make use of XML used in previous containing all possible
versions of DOC1 without the need to attributes.
272
Creating a data format
change your publication design. Note that for both import methods you can use the Create
<xsi:type> field option to include an additional field in your record structure that contains the
xsi:type value.
<xs:sequence> restrictions:
• The Id attribute used to identify a particular <xs:sequence> construct is not supported.
You may want to use this feature if you have a static input data environment and want to be
confident that the aliases used in publication designs are represented in the actual input data
file that will be available in the production environment.
273
Creating a data format
| To export a data dictionary and data map: select the Data tab and then click the Data
Formats bar. Highlight the data format that you want to use for the data map from the
navigator. Select Tasks/Generate Dictionary to display the Data Dictionary and Data Map
Wizard. The wizard will guide you through the generation process.
In addition to the import process, you can optionally export a schema from marked up data in
the Data Format Editor, which can be used outside DOC1, if required.
| To export an XML schema from marked up data in the Data Format Editor: from the
Define menu select Export Data Format Schema
– or –
click the Export Data Format Schema toolbar button.
274
Data mapping
When you are designing publications in the DOC1 Work Center you work with indirect
references to fields and records. Before you can publish a design all such aliases must be
linked with actual data elements that are defined in the data format to be used with the
publication in the production environment. These cross-references are defined and
maintained in a data map object.
Alternatively you can create a data map in advance and assign it to a publication. You will need
to do this if you want to use a sample data file to show examples of 'real' data within a design
before it is published.
2. Click the
associated data
format element.
275
Data mapping
You can specifically create a data map object and associate it with a data format and a
publication. You can then add individual links between the data elements defined in each.
Data maps can be edited using either the data mapping wizard or data map editor. The wizard
allows you to define the required links using models of the data aliases used within a
publication and the data elements defined in a data format.
The Data Dictionary and Data Map Wizard can be used to create and update dictionaries and
maps. It enables you to select which publication data set you want to use and what names you
want to use for the new objects.
When updating a data dictionary and data map, additional options for handling changes to
the data format are available. If changes are made to the data format, such as changing the
data type of an element from a number to a decimal, you can use the Update mappings for
amended data format elements option to rationalize the data mappings and ensure that spurious
mappings between data fields and data elements do not occur.
Using the update mappings option every time you make a change to the data format will keep
the data map from having multiple data fields mapped to the same data format element.
If you have a data dictionary and data map which have not made use of the update mappings
option they may contain any number of extra data fields. As this may have been unavoidable in
previous versions of DOC1, using the update mappings option on a legacy dictionary and data
map will attempt to remove multiple data fields to data element mappings.
| To generate a data dictionary and data map: select the Data tab and then click the Data
Formats bar. Highlight the data format that you want to use for the data map from the
navigator. Select Tasks/Generate Dictionary to display the Data Dictionary and Data Map
Wizard. The wizard will guide you through the generation process.
276
Data mapping
The Data Mapping Wizard provides a Basic and an Advanced view. The Basic view simply lists the
publication data elements and enables them to be associated with a data format. The Advanced
view provides the ability to search the lists. The same options are provided in the Data Map
Editor, see “Editing a data map” on page 279 for more details.
| To map a publication’s data fields: invoke the Data Mapping Wizard by doing one of the
following:
• in the Document Editor click View/Publication and double-click the publication in the
logic map to display the Publication dialog box. Click on the Data Map button and select a
data format.
• in the Design tab select the Publication bar. Select a publication from the navigator and
click Tasks/Publish… to display the Publish wizard. Select the publication in the
Publications list and click the Assign Data Map button.
• in the Production tab open a production job from the navigator. Select a publication from
the Publications list and click the Assign Data Map button.
277
Data mapping
Selecting a
data field will
highlight what
it is mapped to.
278
Data mapping
The Find view enables you to search for data elements defined in either the data dictionary or
the data format associated with the data map. This is useful when the data map contains a
large number of elements. As well as being able to focus your search on specific types of
records and fields, the Hint option can be used to suggest possible mappings.
279
Data mapping
280
Working with data dictionaries
The data record and data field references created within publication designs are always added
to a data dictionary object. The purpose of these dictionaries is to allow you to group such
data aliases into reusable categories.
You may want to create other dictionaries to suit local requirements. Until you define custom
data dictionaries a 'System dictionary will be assumed for all new data aliases that are created.
The data dictionary editor allows you to maintain existing dictionaries and to create new data
aliases within a dictionary in advance of using them in publication designs.
data record
aliases
data field
aliases
Click and drag to
move an element
within the tree or use
the buttons.
281
Working with data dictionaries
Selecting an alias
from the search
results pane highlights
it in the Tree view.
282
Working with data dictionaries
| To copy an alias from another data dictionary: click on the appropriate alias if the new
alias is to be nested and click the Add Existing button. Select the alias to be copied using the
dialog.
| To delete a data alias: select the alias and click the Remove button.
| To edit a data alias: double-click on the alias and edit the settings as required.
283
Into Production
The production cycle
DOC1 Generate is the batch program that processes production jobs on your chosen host
system. Generate reads information about the job requirements from a DOC1 HIP file, merges
the input data file it is passed with your publication designs and produces output datastreams
ready for printing or presenting on your intended output devices.
A production job is made up of one or more publication designs that share the same input
data file. The appropriate publication is selected automatically when the control data with
which it is associated (the Start of publication record as defined in a data format) is
encountered in the input data.
Production jobs are prepared using a Publish task in the DOC1 Work Center. This brings
together the selected publications and creates a single HIP file that will control the job in the
batch environment. The HIP file contains all the information and resources required by a
Generate to process the job and to print/present the output datastreams it creates on the
actual output devices. The settings you specify when publishing can be saved in a Production
Job object for reuse.
Before you can publish you will need to provide information about your intended
printer/browsers in one or more output device objects. You will also need to create a host
object that provides operating system and deployment information regarding the intended
production platform.
User
Output Lookup
Host Exit
Device Tables
Programs
285
The production cycle
If you have unresolved data aliases in your publication designs – i.e. references to data fields
or records that have not yet been linked with actual data elements that will appear in the
input data file to be used by Generate – you will be asked to map them as part of the
publishing process. Such cross-references are stored in a Data Map object for future
reference.
At the completion of a publishing task a HIP file is created and is deployed to the location
indicated in the selected host object. If the necessary connectivity is available, deployment
can automatically copy the HIP to your host platform using FTP or APPC connections (as
defined in the Host object when the HIP was generated). Or you can deploy the file locally and
manually copy to your production platform.
Once the production environment is prepared you can run the DOC1 Generate program on
the host system. You will need to specify the HIP file that controls the publication as a
parameter when starting the program.
Previewing a publication
Previewing allows you to run a publication through the DOC1 production engine within the
Work Center itself without the need to go through the formal publication and deployment
process. It produces a PDF version of the intended output and displays it in a Work Center
window for your review.
When you first launch the Preview function the sample data (if any) assigned to the
publication is used to provide the variable data. Once the initial task is complete you can
specify an alternative sample file and preview again. Sample data is an example of the data that
will drive a DOC1 application in production and the sample provided must match the data
format assigned to the publication or the task will fail. Refer to “Creating a data format” on
page 257 for full details of creating and assigning a data format to a publication.
If you have unresolved data aliases in your publication design you will be asked to map them to
actual data elements (as defined in a data format) just as you would with the regular
publishing process. As with regular publishing you must have a data format for your
publication in place before you can run preview.
| To run preview:
1. Select the Design tab and then the Publications bar.
286
The production cycle
287
Output, media and resources
In the DOC1 Work Center an output device object identifies the type of data stream to be
generated by a publication and allows you to specify any custom settings related to the output
environment.
288
Output, media and resources
BookBill
An additional option allows you to work
with the specialized ‘BookBill’ media
layout. This format assumes that a
payment slip or similar is part of the first
physical page to be produced by a
publication design. The area reserved for
the slip is in addition to the regular media
layout – i.e. the first sheet produced has a
larger area than any subsequent sheets.
Such resources will be created and referenced using file names that adhere to the
requirements of the target output datastream. For PostScript, PDF and variants this normally
means the resources can have the same names as used in the design environment. For
datastreams that support a limited file naming convention (for instance, AFP and Metacode)
the files will be created with alias names that primarily consist of a unique number reference.
For example, an image resource of name 'Q3 results.bmp' may become 'S100014' when a HIP is
created for AFP output. If required, you can use a resource map to override such defaults and
indicate a specific name to be used for each individual resource file when it is being prepared
for use with each type of output datastream.
You may also want to use a resource map to reference the names of existing resources in your
output datastream environment. For example, if you already have a Metacode version of
Helvetica 10pt on your printer (but have not imported it into the Work Center) you can
indicate that all references to this font are replaced with the existing resource name.
289
Output, media and resources
allow you to turn off automatic embedding and this can provide a significant reduction in the
size the output file created by DOC1 Generate. However, you will need to consider alternative
methods of making the resources available to the printer/browser environment if this is not
already the case. The DOC1RPU utility is provided with DOC1 Generate distribution material
to extract presentation resources from a HIP file if required.
Overlays
AFP and Metacode overlays can be included in your document design. As with other native
resources, overlays must first be imported into the repository before they can be included in
your document, and can only be inserted in the background layer. Overlays can be referenced
in the print environment, or if you are working with AFP, they can be embedded in the
publication HIP file. Note that embedding is controlled via the associated output device
setting. See also “Overlays” on page 90.
Using these datastreams with publications that output ideographic text will produce
unpredictable results.
290
Output, media and resources
Every object has a range of general settings that apply to all output devices. These are
supplemented by settings specific to the type of output datastream selected for the device.
| To edit an existing output device: double-click on the object in the Work Center
Manager.
Settings
The Settings tab contains options for the output datastream being produced. Options relevant for all
datastreams are listed below. These will be supplemented with datastream specific options depending on the
Datastream type you have selected.
Resolution Each datastream has a default output resolution. This is used where the datastream
requires a specific resolution be indicated within the protocol itself or where DOC1
needs to generate or reference bitmap images as part of the output. If the default is
not suitable use this option to specify a different resolution to be used. This is
specified as Dpi – dots per inch. The defaults are:
AFP – 240
Metacode – 300
PCL – 300
PDF and PDF variants – 72
PostScript and PostScript variants – 72
MIBF – 600
291
Output, media and resources
292
Output, media and resources
Media
The Media tab enables you to configure the printer modes, input trays and output bins for output devices that
support these features.
Input Trays Input trays are used by the printer to provide paper for the output datastream.
Configure the necessary input trays by selecting them from the available input trays
in the list.
Output Bins The output bins provide the location where the pages are sent after being printed.
Configure the required output bins by selecting them from the list.
Layout
The Layout tab enables you to configure settings necessary for placing multiple logical pages on a physical sheet
of paper. The layout settings are dependent on knowing the size of the physical page, so if the output device’s
Sheet Size option is set to AUTO the layout options are disabled.
Sheet size By default, the size of the physical sheets of paper used on the printer is assumed to
be the same as the logical pages within your document designs. This is the AUTO
option. Where this is not the case use this setting to specify the actual sheet size
being used. You can choose from a range of standard sizes or select CUSTOM and
enter specific dimensions.
Duplex processing This setting determines if the datastream should be presented in simplex
(single-sided) or duplex (double-sided) mode. Note that the duplex options can be
modified dynamically during job processing. For printer drivers that support
‘tumble’ mode you can choose double-sided tumble. This causes the reverse side of
the page – i.e. even pages (2,4,6 etc.) – to be output the opposite way round. See
“Controlling printer features” on page 235 for more information.
Pages Per Sheet Select how many logical pages from your publication you want to output per side of
sheet. The Pages across and Pages down options control the total number of pages for
each sheet.
Book Bill remittance slip – this
option enables you to include a L FOR THE BOOKBILL OPTION TO FUNCTION
CORRECTLY YOU MUST INCLUDE A REMITTANCE
remittance slip with each SLIP SPECIFIC DOCUMENT IN YOUR PUBLICATION.
publication. The remittance slip is THE PAGE ORIENTATION FOR THE DOCUMENT
added by DOC1GEN to the end of MUST BE LANDSCAPE AND THE PAGE SIZE CANNOT
and does not affect the Sheet Size WIDTH AND HEIGHT SETTINGS.
SEE “USING
MULTIPLE DOCUMENTS” ON PAGE 101 FOR MORE
setting or any other output device
DETAILS.
option.
293
Output, media and resources
Layout tab.
It is assumed that each logical page is the same size. If you need to change the page
size, double-click on the corresponding page and the Page Details dialog box
enables you to change the settings.
Example This displays the layout of the publication’s logical pages on the physical sheets
after Layout tab options have been set.
Resource mapping
Use this page to assign a resource map to the output device and to adjust the mappings it contains. For full
details see “Using resource maps” on page 340.
294
Output, media and resources
AFP
The level of AFP features related to color and graphics will often vary depending on your
specific printer/browser environment. The output device options for an AFP device contain a
number of settings that allow you to control specific aspects of these features to suit your
installation.
In an AFP environment, font, image and overlay resources are commonly stored in a structured
file library for access by the software that handles the actual printing/presentation. If you
choose not to embed the resources in the output datastream produced by DOC1 you will need
to ensure that they are available in these libraries before the output can be sent to print.
File structure
By default, DOC1 generates AFP output with variable length logical records. Each logical
record contains a single AFPDS structured field. Under z/OS these are also separate records
within the file structure itself. On all other platforms the logical records form a continuous
stream.
The maximum logical record length is normally dictated by the textual data stored in the PTX
structured fields for a particular page. DOC1 Generate will attempt to place all text for a
particular page within a single PTX structured field up to a default maximum of 8200 bytes.
When publishing an application you can use an output device setting to specify a different
limit if required.
Under z/OS
Ensure your output file has a record length suitable to receive the AFP datastream. If you are
using the default Limit record length setting you should write to an output dataset with an
LRECL of 8205.
You can optionally store DOC1 created AFP datastreams in VSAM datasets of type relative
record (RRDS) or keyed sequential (KSDS). When VSAM is used the individual composed pages
are stored as entries in the VSAM table. This format may be useful if you intend to archive or
post-process the pages.
To use this option you will need to specify the 'RRDSAFP' or 'KSDSAFP' keywords in the Format
of logical records setting or by coding custom formatting parameters for this setting that
include the $BR or $BK output descriptors. Refer to the DOC1 Programmer’s Guide for
further information about custom output formats. You will also need to allocate an
appropriate VSAM dataset in your DOC1 Generate JCL. Note that DOC1 always assumes VSAM
datasets with fixed length records.
295
Output, media and resources
Under OS/400
Direct your output to a suitable physical file of type *DATA. The default storage type of
STREAM means that structured fields are stored as a continuous stream as normally expected
by the printing software.
Settings
Printer carriage control By default, the default printer carriage control (PCC) byte is not encoded.
Use this option to select a coding system to be used for the PCC if required.
Color support Use these options to modify the color commands used within the
datastream.
Full – use the highest level of color references supported by the output
datastream. Note that if your intended output device does not support
color it may not be able to accept a datastream generated with this setting.
Downgrade – color references are restricted to the 16 color model used in
AFPDS prior to the introduction of full color support. Color instructions
within document designs will be mapped to the nearest equivalent color in
this model.
24bit RGB – use this option if your output device supports the RGB color
format. Color instructions within document designs will be mapped to the
nearest equivalent RGB color.
32bit CMYK – use this option if your output device supports the CMYK
color format. Color instructions within document designs will be mapped
to the nearest equivalent CMYK color.
None – all color instructions within document designs are ignored. No
color references are used in the output unless required by the datastream
format in which case black is always used.
Note – if your publication uses rounded corners on a shaded table,
choosing 24bit RGB or 32bit CMYK will ensure consistency of color shades
in your publication.
Minimize image creation Will display if the Embed images option is checked – see page 292. Use this
option to ensure that only the images used are included in the DOC1
Generate output file.
Create fonts Create AFP fonts from the Windows fonts used in your publication. These
can then be either embedded in the output datastream – see “Embed fonts”
on page 292 – or extracted manually to the output device.
Minimize font creation Will display if the Embed fonts option is checked – see page 292. Use this
option to ensure that only the fonts used are included in the DOC1
Generate output file.
296
Output, media and resources
297
Output, media and resources
298
Output, media and resources
Media
General This setting contains the name of the default Formdef file provided with
DOC1 – F1G1DFLT. This AFPDS printer file contains information about the
printer and a collection of medium maps. The medium maps contain
information on input trays, output bins and printer modes.
The F1G1DFLT formdef file is automatically generated and placed inline to
the print stream. If another name is specified in the Formdef field then the
formdef is not generated.
Medium Maps This enables you to edit
the medium maps for the L MEDIUM MAP NAMES MUST BE IN UPPERCASE AND
HAVE A MAXIMUM LENGTH OF EIGHT CHARACTERS.
default F1G1DFLT formdef
file, as well as create and
delete medium maps for new formdef files. Use the Edit Mapping dialog box
to provide a Name for the map and select which Input Tray, Output Bin and
Printer Mode will be used with it.
Other options See “General output device options” on page 291.
299
Output, media and resources
Metacode
Rather than generating line data to be interpreted on the Xerox printer, DOC1 generates
Metacode datastream directly to optimize printing times but this does mean that some
non-standard printer settings may be required. Additionally, Metacode printers typically
support both online and offline methods of receiving data for printing. These issues mean that
you may need to customize the structure of the output file to suit your printer and data
transfer environment.
The default logical record format for Metacode varies depending on the platform on which
DOC1 Generate is run. For z/OS an online connection with the printer is assumed and the
Metacode is generated as a standard output stream. On other platforms tape transfer is
assumed and the default format includes an additional length field (Intel style RDW) at the
start of each logical record that is commonly required with tape generation software.
If these settings are not suitable for your printer environment you can to specify a different
organization of logical records using the Format of logical records option in output device
settings when publishing.
The name of a Job Descriptor Entry (JDE) and an associated Job Descriptor Library (JDL) to be
used when printing Metacode output are included in the datastream by all DOC1
applications. The default JDE/JDL names are 'ONLINE' and 'DPLJDL' respectively. If this is
unsuitable you can define the JDE/JDL names to be used within as part of the output device
settings used when put your application into production.
JDL adjustments
You need to be aware of some specific JDL requirements when printing Metacode generated
by DOC1. In the following topics the settings are identified by the JSL statements (the source
language that generates JDLs) that generate the appropriate setting.
PCC Definition
Metacode contains a printer carriage control (PCC) byte in each record that makes up the
output datastream. These is typically in position 1 of the records although this is configurable
if required using the Format of logical records option in output device settings when publishing.
The values in the PCC byte indicate certain standard functions to the printer of which DOC1
applications use only two – skip to channel 1 (typically generating a new page) and print (no
space). The Xerox printer can interpret a range of coding systems used to specify the PCC
values and their associated functions. The most commonly used coding systems for carriage
controls are 'ANSI' and 'Machine Code'.
300
Output, media and resources
The JDL used when printing Metacode output produced by DOC1 applications will need to be
aware which coding system has been used in the print datastream. By default, ANSI format
PCCs are used in Metacode output generated by a DOC1 application. This is typical of the
format used by Xerox off-line configurations. To use this format, your JSL should contain the
following statement:
LINE PCCTYPE=ANSI,VFU=1;
VOLUME CODE=NONE;
Output Statement
The JSL OUTPUT statement can be used to specify a variety of controls related to the
appearance of the printed output and you should customize these as normal for the
requirements of your application. However, all Metacode produced by DOC1 applications
requires the following control to be set:
OUTPUT GRAPHICS=YES;
As VSAM
Under z/OS you can optionally store DOC1 created Metacode output in VSAM datasets of
type relative record (RRDS) or keyed sequential (KSDS). When VSAM is used the individual
composed pages are stored as entries in the VSAM table. This format may be useful if you
intend to archive or post-process the pages.
To use this option you will need to specify the 'RRDSMTC' or 'KSDSMTC' keywords in the
Format of logical records setting or by coding custom formatting parameters for this setting that
include the $BR or $BK output descriptors. Refer to the DOC1 Programmer’s Guide for
further information about custom output formats. You will also need to allocate an
appropriate VSAM dataset in your DOC1 Generate JCL. Note that DOC1 always assumes VSAM
datasets with fixed length records.
301
Output, media and resources
Settings
Color support Use these options to modify the color commands used within the datastream.
Full – use the highest level of color references supported by the output datastream.
Note that if your intended output device does not support color it may not be able
to accept a datastream generated with this setting.
None – all color instructions within document designs are ignored. No color
references are used in the output unless required by the datastream format in
which case black is always used.
Graphics Spot Color This option enables you to designate the spot color name used in the metacode
img header. If the color name does not match any of the existing values in the
datastream then the name is copied into header and all in-line graphic images are
generated as spot colors.
JDL name Indicates the name of the Job Descriptor Library (JDL) to be referenced when
printing the output.
JDE name Indicates the name of a Job Descriptor Entry (JDE) associated with JDLName that
will be referenced within the Metacode output.
Optimize for printing If this setting is enabled the Metacode will be organized so that printing is as
efficient as possible. Not enabling this option may produce a minor saving on the
amount of time it takes for DOC1 to actually generate the datastream.
Online PCC If this setting is enabled a 'new page' PCC byte (x'F1') will be placed in Metacode
datastream before the start of any output records. This has been found to be
required on some Xerox printers for correct operation.
DJDE token This setting indicates a DJDE token name that is to be inserted into the Metacode
output to request printer specific actions. The token must be coded as a single
character representing its format followed by the token string itself enclosed in
quotes. The maximum length of the token is 29 characters/bytes.
The possible formats are:
A – the token name is included in the datastream as ASCII text, e.g. A'token
name'
E – the token name is included in the datastream as EBCDIC text, e.g. E'token
name'
X – the token name is coded as hex and will be included in the datastream as the
appropriate binary values, e.g. X'A1D390B2B1'.
Job terminator If required, this setting allows you to specify a custom value to be used to terminate
the Metacode datastream. This must match the terminator specified in the JDL
being used when printing the Metacode file. This value must be coded in hex
notation, for instance: x'A1D390B2B1'. The default setting is the standard Xerox
job terminator.
302
Output, media and resources
Media
Input Tray Initially the input trays are mapped to a default value. To override a value
double-click on the input tray.
Output Bins Initially the output bins are mapped to a default value. Double-click the output bin
to change the setting.
Other options See “General output device options” on page 291.
303
Output, media and resources
PCL
If you need to transfer PCL files between operating systems be aware that, by default, DOC1
applications generate such output as a true stream (as normally expected at the printer). For
instance, if receiving a PCL file from z/OS onto a PC workstation you should not specify the
CRLF attribute.
Positioning of the text can vary from printer to printer when non-zero orientations are used.
You may need to adjust the position of text in relation to the bottom/right side of the logical
page to cope with such variances.
Settings
Pels offset from left of The number of pels by which printing is to be offset from the left side of the
physical page physical page.
Pels offset from top of The number of pels by which printing is to be offset from the top of the physical
physical page page.
Adjust right anchor Specify the number of pels by which orientated text is to be adjusted in relation to
position the right side of the logical page.
Adjust bottom anchor As for Adjust right anchor position.
position
Use non-HPGL/2 The PCL commands used to draw charts are, by default, in HPGL/2 format as
commands supported by PCL5 printers. Select this option if your printer does not support
HP/GL2 and your publication does not use charts (other than 2D bar charts). Note
that if your publication uses advanced chart features and this option is set,
DOC1GEN will abort.
Output font format The default Bitmap will include a separate font for each different point size used.
TrueType will include a single font to represent multiple point sizes of the same font,
which can reduce the size of the PCL output file.
Image mode The default Color option should be used if you are using a color printer. If a
monochrome printer is being used you must select the Black/White option.
Other options See “General output device options” on page 291.
304
Output, media and resources
PostScript
PostScript is a text language and by default, DOC1 generates the PostScript commands in a
format suitable for reading on the production system. If you are generating PostScript output
under z/OS or OS/400 this means that the PostScript commands would be in EBCDIC-based
text and any referenced resources in ASCII-based text. To avoid having multiple character
codes in the same file, the default code page for PostScript is the ASCII-based Windows
1252@ISO Latin1.
Where this is not the case or in other non-standard scenarios you can override the default
setting and indicate that a specific code page be used for the PostScript command text.
Additionally, to cope with variations in the way systems interpret non-alpha numeric
characters, you can indicate specific code points to be used for the PostScript control
characters. Both of these options are defined in output device settings when publishing.
On some platforms you may also want to restrict the size of the PostScript records being
generated.
Some external print management systems require a page number to be used within the
PostScript page descriptor command. Output device settings allow you to choose between
using a job or document page number for this feature.
DSC comments
DSC comments are typically used to
communicate with PostScript document L SEE “POSTSCRIPT DSC” ON PAGE 236 FOR
DETAILS OF CREATING A DSC COMMENT ACTION.
management software. DOC1 allows you to
add such comments to the output datastream
using an action object within your publication logic.
Note that DSCs are not validated by DOC1 – you must ensure that the comment syntax you
enter for the action conforms to the requirements of your document management
environment.
Resource embedding
Normally DOC1 will place resources to be embedded into a PostScript file within the file
header or 'Form Space'. The exception to this is EPS images which, by default, are embedded
directly in each page where they are required; this is known as inlining. This is done to reduce
the memory overhead on the printer which can be significant when EPS files are included in
the PostScript file header. However, you can choose to embed some or all EPS files in the Form
Space if required.
305
Output, media and resources
Image caching
Images intended for PostScript output can optionally be cached in printer memory either on
an image by image basis or for all images, as required. This is done to increase print
performance. By default, images are not cached.
| To cache images:
1. Select the required PostScript output device from the Environment bar in the Work Center
Manager.
2. Click on the Resource Map tab and view the images defined for the current resource map.
3. Select the image you wish to cache and click on the Edit button.
4. Use the Mappings Details dialog box to
enable the Cache image option. L YOU CAN SET ALL IMAGES TO BE CACHED OR NOT
CACHED BY CLICKING THE CACHE ALL/CACHE
NONE BUTTONS ON THE IMAGES TAB.
See “Using resource maps” on page 340 for
further information on working with
resource maps.
306
Output, media and resources
Settings
Font subsetting Only those characters that are
used in a document are LSUBSET FONTS ARE NOT SUITABLE FOR USE WITH
PCE OR OTHER POST-PROCESSING TOOLS.
embedded in it. This reduces
the size of the output file
produced by DOC1 Generate, particularly when DBCS fonts are used
Minimize image creation Will display if the Embed images option is checked – see page 292. Use this
option to ensure that only the images used are included in the DOC1 Generate
output file.
Output code page If the default formatting of the PostScript commands is unsuitable for your
environment use this option to indicate a specific code page to which
PostScript will be translated before being output.
Record length Specify a maximum record length for the PostScript commands in the output
datastream. This should be an integer in the range 64-255.
Page label Specifying JOB means that the current page number within the complete
output stream will be used as the parameter in the PostScript page descriptor
command (%%Page). This is the default setting.
Specifying DOCUMENT means that the current page number within the active
document will be used as the parameter.
Customizations The default is None, while selecting Truepress Jet520 makes the Postscript output
compatible with that specific printer.
Hex Encode output strings When the codepage of the text to be output does not match the “Output code
page” configuration setting (see above) the text in the PostScript output is hex
encoded by default, for example where non-Western languages are being output
and Windows 1252 postscript commands are being generated. You can use this
option to override these defaults and force DOC1 always to output regular text.
This may be required where a post-composition process needs to manipulate
the output, but note that it is the users responsibility to ensure that this option
is suitable for use with the production environment.
Preserve image color space This applies to TIFF and JPEG images only. The default is off – which will
convert images to BMP with RGB color space. Selecting the option will convert
images to EPS2 and retain the original color space, e.g. CMYK, RGB.
307
Output, media and resources
Media
Input tray Enter the necessary Job DSC and Reference DSC for the input tray by
double-clicking the tray to invoke the Edit Mapping dialog box.
Output bins Enter the necessary Job DSC and Reference DSC for the output bin by
double-clicking the bin to invoke the Edit Mapping dialog box.
Other options See “General output device options” on page 291.
308
Output, media and resources
PDF
DOC1 Generate produces PDF that can be viewed in a PDF browser either as one file
containing all documents generated by the application, or as a series of PDF files each
containing a single document. You can also produce PDF as an output datastream which can
be passed directly to the Document Repository in a DOC1 Archive environment, or for
processing by the DOC1DIME utility for e-mail distribution. The Document processing output
device option determines the type of PDF output produced.
PDF documents have a number of identification attributes that can be applied such as
password, email address, title, author, subject and so on. They can also have permission attributes
that determine what actions the reader is allowed to carry out with regard to a particular
document such as the ability to print or edit. In the DOC1 environment these are defined as
attributes of a publication object. Any attribute that is specified is automatically associated
with every document produced by the publication in the production environment. Note that
in order for permission attributes to be enabled within PDF documents you must also specify an
owner password in the appropriate output device settings (see below).
Document security
DOC1 generated PDF documents can optionally be password protected and encrypted to
protect them from unauthorized access. Two types of password can be applied: user and owner.
User passwords protect documents from unauthorized opening in a PDF viewer. When using
this feature the passwords to be applied are specified as part of publication attributes. You
should resolve the Password attribute with a value that provides the required password setting.
The password can be varied from document to document if the value used is based on input
data or other objects providing dynamic values.
Owner passwords protect the PDF documents from unauthorized modification after they have
been created. This option is assigned globally to the documents produced by a publication
and is specified in output device settings when it is published. For fully secure documents you
can produce a randomized password to prevent any amendments to the PDF documents after
they have been created.
Encryption is automatically applied to all documents that have either type of password
specified – see “Encryption key length” on page 312.
Additional options in output device settings can prevent various specific activities being
carried out against the documents when they are opened in a viewer or editing tool.
309
Output, media and resources
Resource handling
By default, text and graphics within PDF output are compressed using the LZW algorithm (as
used by Adobe Acrobat). Alternatively you can set the output device settings to use the Flate
compression algorithm, which typically results in a better compression but requires more
processing time. You can also turn off compression altogether, or choose to exclude embedded
images from compression if required.
Settings
Font subsetting Only those characters that are used in a document are embedded in it. This reduces
the size of the output file produced by DOC1 Generate, particularly when DBCS
fonts are used.
Document processing Use this setting to determine the type of the PDF output produced by DOC1
Generate. Options are:
Compound – a single file containing all documents produced by the application.
This can be passed to directly to a DOC1 Archive or be processed by the
DOC1DIME utility to create individual PDF documents for e-mail distribution.
Note that the file produced by this option cannot be viewed directly using a PDF
reader.
Merged – a single viewable PDF file containing all documents produced by the
application.
Split – viewable PDF files created for each document generated by the application.
If you choose this option you will need to specify a filename template for the output
produced. Refer “Specifying a file template” on page 339 for further information.
Translate to 7 bit If this option is enabled any image data and compressed text in the output will be
translated to standard ASCII values to ensure the maximum amount of readable
data. Otherwise such objects are output as true 8-bit values.
310
Output, media and resources
311
Output, media and resources
E-mail distribution
The DOC1DIME program is used to e-mail
documents from within a PDF output L THE MAILING FUNCTION OF DIME IS ONLY
AVAILABLE UNDER WINDOWS AND IS A
datastream using a local e-mail client. It can SEPARATELY LICENSED DOC1 FEATURE. IT
only be used with PDF output produced with INTERFACES TO THE E-MAIL CLIENT USING EITHER
the Compound document processing option. CMC (COMMON MESSAGING CALLS) OR MAPI
(MESSAGING APPLICATION PROGRAMMING
The e-mail addresses to be used must be INTERFACE) APIS.
specified as part of publication attributes.
You should resolve the Email address attribute with a value that provides the address to be used
for each document. Normally this value will need to be based on input data to provide
individual addresses for each document.
DOC1DIME uses an initialization file (INI) to specify the DOC1 output file to be processed,
where the output documents are to be created and any other processing options including
e-mail settings. The program is then run as a batch job on the production system specifying
the INI file as a parameter. other govern. Full information about using DIME including all INI
settings, e-mail API details and platform specific guidance is provided in the
DOC1 Programmer’s Guide.
312
Output, media and resources
RTF
DOC1GEN can generate RTF output which can be viewed and edited using an RTF editor,
such as Microsoft Word. The output will be split into separate files for each publication
produced by a job. You will need to specify a filename template – used to provide unique
names for each file. See “Specifying a file template” on page 339 for more information.
The layout of an RTF document may not look exactly as designed in DOC1. This is because:
• RTF may be interpreted slightly differently by different editors;
• The RTF format does not support all the features offered by DOC1. Where possible, an
alternative method of presenting the feature has been used.
313
Output, media and resources
DOC1 Generate can also make use of a local cache for holding images used by a job. This
ensures that only those resources actually required to print a particular datastream are
included in the output file. PPML is an open format that adds object reusability to a range of
standard output streams. DOC1 currently supports PPML for PostScript and PDF output.
When generating VIPP, resources can be extracted from the application’s HIP file and
transferred to the output device environment using DOC1RPU. Note that the option to
extract and deploy resources for VIPP is only available when running DOC1RPU in a Windows
environment. Refer to the DOC1 Programmer’s Guide for further information.
314
Output, media and resources
315
Output, media and resources
Line Data
Line Data output is a textual representation of output from your application. It is intended for
viewing via character based terminals or, as a feed for archiving. Note that graphical objects
present in your design will be ignored in output generated by this driver.
grid height
Output from your application is placed 1 8 Ju n e , 2 0 0 4
A c cou n t R e f : 86 22 5
into a predefined grid providing an
approximate representation of the H o l di n g T ot a l
1 6 a t 2 . 1 0 0 0 3 3 . 6 0 0 0
original page design in terms of
character positioning and justification. Carriage control information
The dimensions of the presentation grid are set in the publishing phase as part of the output
device settings for the Line Data driver. However, where lines exceed the grid width the height
setting for the grid is automatically adjusted and extra lines are added to cater for the overrun.
316
Output, media and resources
317
Output, media and resources
HTML
DOC1 supports two forms of HTML output.
The HTML client/server format typically supports applications that require interaction between
web clients and a server on which pages and associated resources are stored. The output for
each publication is created as one or more independent web pages. These pages and their
associated image resources are output in an XML structure so they can be identified, extracted
and deployed to the server environment as required. Cascading style sheets are used for
presentation.
The HTML e-mail format provides a simplified version of HTML and is intended to be included
as part of an e-mail communication with the end user. The output for each publication is
created as a single HTML page (regardless of any page breaks in the design) and all images are
simply referenced using the base name of the imported resource with a user defined URL. The
HTML commands do not include cascading style sheets.
that are known to be generally available to THAT THE BROWSER OR E-MAIL CLIENT IS
web browser environments. Consider using a RESPONSIBLE FOR HANDLING SUCH THINGS AS
resource map if you Designer application INSERTING LIGATURES AND FORMATTING FOR
RIGHT-TO-LEFT TEXT.
does not use such standard font references
(see “Using resource maps” on page 340).
HTML client/server
The following restrictions apply to DOC1 applications producing HTML client/server output:
• The use of the DOC1 barcode feature is not supported
• Rotated text – i.e. text elements presented other than at 0° – is not supported.
• The output is only compatible with browsers supporting cascading style sheets, such as
the 4.0 or later versions of Internet Explorer and Netscape Communicator
The output device settings used when publishing are particularly important when HTML is
being produced. They allow you to specify:
• Default browser presentation settings,
including text colors and background. L NOTE THAT THE COLOR SETTINGS MAY BE
OVERRIDDEN BY THE END USER USING BROWSER
318
Output, media and resources
The HTML pages produced by a DOC1 job are created within a single XML file that also
contains any other resources required to present the pages. It can be parsed to extract the
pages as individual HTML documents or passed directly to the Document Repository if you are
using e2 Vault or e2 Present to manage the output.
By default, the DTD describing the XML is stored as an integral part of the file but you can
optionally request that it be extracted to a separate file if required. On record based systems
(z/OS and OS/400) you should allow a logical record size of 4k to receive the XML file.
Images used in your design are converted to png format. By default, converted images are
identified by their original base name together with a generated identifier. For example, if you
have included an image called welcome.bmp it will be converted to welcome_g0001.png. If
required, this name can be overridden using the resource mapping facility, refer to “Using
resource maps” on page 340 for further information.
Presentation options
Background color This is the color to be used for the background of all pages when displayed in
a browser. The default color is white. If Background image is also specified
the Background color will only be used while the image is loading.
Background image This is a URL indicating an image to be used as the background for all pages.
No image is used by default. For example:
http://doc1/webres/logo.jpg
Link color If specified, the color indicated will be used to highlight all hyperlinks.
IMPORTANT: this setting will override the colors used for such links within
document designs.
Active link color If specified, the color indicated will be used to highlight active hyperlinks.
Note that this setting may be overridden in some browsers.
Visited link color If specified, the color indicated will be used to highlight hyperlinks that have
been visited. Note that this setting may be overridden in some browsers.
319
Output, media and resources
Optimization options
Optimize for rendering By default, the HTML will be optimized for the most efficient download
speed. Enabling this option will optimize the HTML such that it renders as
quickly as possible on the browsers but the file size of pages will be increased.
Chart threshold This option specifies the maximum inline size (in bytes) for parameters
related to chart drawing. Where the parameters required for chart drawing
fall under this limit they will be included as meta data within the actual
HTML pages. Parameter lists exceeding this limit are created as independent
objects within the XML file.
320
Output, media and resources
Server references
Resource URL By default, the vector graphic used for lines and boxes are assumed to be
available at the same location as the HTML pages themselves once the
resources have been extracted from the XML file. If a different location is used
this option allows you to specify the URL where the resources are located and
will be used to reference them within the pages. The following codes can be
used to include attributes from the XML structure as part of the path if
required (you can use the same information when extracting files from the
XML):
&pakUID – unique ID for the current job
&groupUID – unique reference to account group
&groupID – contains the keyword parameter from the attributes of the first
document in the publication (if coded).
&docUID – unique reference to the current document
&docID – a reference indicating the sequence of the document within the
group
&pageID – a reference indicating the sequence of the page within the
document
&jdUID – ID specific to a chart data object if present.
Examples:
http://doc1/html/resource
http://doc1/html/resource/&pakUID
http://doc1/&pakUID/&docUID/&pageUID
321
Output, media and resources
If you intend to use the HTML in a web server environment you will need to parse the XML file,
identify the relevant resources and extract them to the appropriate server locations. Files
other than the actual pages will need to be made available at the resource locations specified
within the HTML itself (and which can be customized using output device settings). Detailed
information about the XML file format and guidelines for creating an extract routine can be
found in the DOC1 Programmer’s Guide.
If you simply want to extract the files from the XML for local browsing or onward processing
you can use the EDU (Extract and Deploy Utility) program which is provided as part of DOC1
distribution material in the production environment.
322
Output, media and resources
The DOC1EDU program uses an initialization file (INI) to identify the XML input file and to
specify the locations to be used for the output files. An index file can be created which
provides information about the document and page sequence which produced the HTML and
cross-references for resource files.
Full information about using EDU including all INI settings and platform specific guidance is
provided in the DOC1 Programmer’s Guide. However, the following is a simple example of how
you might configure and run EDU to extract HTML pages and resources on a Windows host.
<Files>
;HTML output from Generate (XML)
Input=doc1html.xml
;Location to receive HTML pages
PageFileMask=\html\%1.htm
;Location to receive resource files
ResourceFileMask=\htmlres\%1
;File to receive index file
IndexFile=\doc1\htmlindx.txt
doc1edu ini=extract.ini
323
Output, media and resources
Images other than those created for barcodes are assumed to be server resident and are simply
referenced within the HTML using the base name of the imported resource file at a user
defined URL. At publishing time image resources are not created for this device.
Barcodes are supported for this device and rendered as GIF images output as independent
files according to a further template path name. Unlike other images the barcode GIFs are
assumed to require physical packaging with the HTML itself as part of the e-mail system.
Once a production job has completed it is the user’s responsibility to check the validity of any
links in the HTML pages, package barcode GIFs with the pages if required and then actually
include the pages in the appropriate e-mail messages. DOC1 itself does not support direct
e-mailing for this type of output.
Use of the following DOC1 Designer features are not supported for this device. Results may be
unpredictable if they form part of a design used with the device:
• Charts
• Lines and shapes
324
Output, media and resources
• Bookmarks
• Shading – in the Shape properties dialog box the Fill Color option can be used, but you
should not use the Fill Shading option.
• Table attributes, including the following:
• Spacing before or after a table
• Indenting of tables
• Internal cell margins
• Page Setup view logic – there is no execution of logic contained in headers, footers or
the background object, this includes features like reserved areas.
• Page numbering, breaks and new page actions
• Columns
• Paragraph formatting, including the
following: L DUE TO THE LIMITATIONS IN PARAGRAPH
FORMATTING LISTED ABOVE, IT IS RECOMMENDED
TO LEAVE ALL PARAGRAPH OPTIONS AT THE
• Justified text
DEFAULTS PROVIDED WHEN CREATING A NEW
• Tab stops
• Line spacing
• Widows and orphans
325
Output, media and resources
Generate Barcode for URL Select this option to output barcode images from your application at the
destination specified in the Barcode Image URL setting. If this option is not
selected, references to barcode images are placed in the HTML page included in
an e-mail with the 'cid:' command, using the Multipurpose Internet Mailing
Extensions (MIME) standard.
Generate HTML v3.2 Selecting this option generates output that strictly adheres to the standards for
HTML version 3.2 as specified by the World Wide Web Consortium (W3C). Use
this option to ensure that your output will be displayed correctly in e-mail
clients, such as Lotus Notes and Microsoft Outlook. If you do not select this
option then the HTML output will conform to HTML version 4.01.
Note that it is not recommended that this option is used when a publication
contains Arabic text, as HTML v3.2 does not fully support right-to-left text.
For more information on HTML version 3.2, see
http://www.w3.org/TR/REC-html32.
Barcode file template This allows you to define a base file name to be used for barcode GIF images. It
must be specified if your publication uses barcodes and must be in a format
suitable for the host platform. Two parameters are available to help make the
filename unique:
For example:
Publication output filename = Out%1.htm
Barcode file template = Bar%1-%2.gif
will produce the following GIF image names:
BarOut0000001.htm-001.gif
BarOut0000001.htm-002.gif
BarOut0000002.htm-001.gif
BarOut0000002.htm-002.gif
Use table to position This forces each page to be output in an HTML table element, which preserves
output the designed width of the page. The table itself will not be visible.
326
Output, media and resources
327
Output, media and resources
IJPDS
IJPDS output is designed to be printed on the Scitex family of high speed ink jet printers.
To enable the fastest possible throughput these printers rely on input from the datastream
being processed to configure the print hardware environment. The IJPDS configuration wizard
simplifies the process of setting the many options required to achieve optimum performance
from your IJPDS printer. The wizard is automatically invoked when creating a new, or editing
an existing IJPDS output device in the Work Center.
RIP configuration
IJPDS output generated by DOC1GEN is converted into bitmap page images and directed to
the appropriate print heads by physical Raster Image Processors (RIPs) which also control
printing over a designated width of the printer’s page buffer.
328
Output, media and resources
To allow for maximum flexibility, the concept of the logical RIP is used in the Scitex print
environment. One or two physical RIPs sharing common attributes can be joined (stitched)
and controlled by a single logical RIP. You specify the attributes of the print heads to be
controlled by a logical RIP using these settings.
Color management
The color modes supported for IJPDS are black and white, spot and full color. When working
in spot color you should try to ensure that the spot colors used in your document design are
available on the printer hardware, if this is not the case then the closest color match is used
during the print process. Refer to “Spot color printers” on page 233 for more details.
To maintain consistently high quality color printing you will need to periodically tune the
color settings passed to the printer by DOC1GEN. The main reason for doing so is that print
quality may vary due to changes in paper, ink and environmental conditions. To ensure
consistent print colors you will need to associate color linearization tables to your output
device based on the results of test print runs. These should be run on a regular basis at your
print facility.
Dithering
IJPDS output requires all print objects to be connected to bitmaps. The colors presented in
these bitmaps is generated by the dithering algorithm used by DOC1GEN – i.e. the routine
that decides how the ink spots are to be mixed to form the required color or shade. These
algorithms minimize the amount of ink used to print the application. So that performance
versus presentation can be optimized for dithering operations you can individually select the
algorithm to be used for text and external images.
You can, if required work with pre-dithered image resources, these must be converted using
the supplied image conversion utility before use in the Designer, see the “Processing IJPDS
and MIBF images” section in the DOC1 Programmer’s Guide for further details.
General settings
Print mode This setting determines if the datastream should be presented in simplex
(single-sided) or duplex (double-sided) mode. You also select how many
logical pages you want to output per side of sheet, either 1–up or 2–up.
Color support This defines if the printer is to expect Full (CMYK), Spot (black, plus spot
color) or None (black only).
329
Output, media and resources
Registration marks
These settings enable each page of the publication output to contain a print mark by the print heads
individually when printing in full color mode, allowing alignment problems to be resolved. The values are
specified as a number of printer dots.
Reg mark position These settings must be specified as a pair to indicate the offset to be used
for the top left of the mark. You can set between 1 and 4 registration
marks.
330
Output, media and resources
Color attributes
These settings allow you to map the fixed color definitions available to your publication design with specific
CMYK values to be passed to the printer. By tuning these setting you can more closely match DOC1 standard
colors to those on your printer hardware.
| To make RIP assignments: click on the Set button associated with the
logical RIP, the Physical RIP selection dialog box is presented from which the
required selection can be made.
331
Output, media and resources
332
Output, media and resources
File paths
This page is used to define path/filenames for IJPDS resource files used during production. The IJPDS output
filename is created automatically using the production job name specified in the Publish Wizard or Production
view.
Index file Specifies the path/file name of the index file associated with the IJPDS
output data file. For each output file created the application will also create
an index file. This specifies the path/file name template to be used when
creating such files. The files are stored in the location indicated in this
parameter and if no name is specified for the file the name of the output
file will be used. The placeholders %1 and %2 also need to be included as
part of the filename. %1 is an automatically generated extension, as used
by the IJPDS output filename, that is only used when there are multiple
output files. %2 will always append ‘NDX’ to the file name.
Object cache file Specifies the path/file name of a temporary file to act as workspace for
object caching.
Image cache file Specifies the path/file name template of temporary files to act as
workspace for caching images used by the application. Up to 16 files may
be created for this purpose – %1 in the template is replaced with the file
names to be used. Note that the %1 parameter is mandatory.
333
Output, media and resources
MIBF
The Memory Image Bitmap File (MIBF) format is a proprietary Miyakoshi Corporation file
format for ink jet print streams, supporting high-speed, full-color production. To enable the
fastest possible throughput these printers rely on input from the datastream being processed
to configure the print hardware environment. MIBF produces multiple output files based upon
the number of Bitmap Image Processors (BIPs) specified in your printer configuration.
In common with IJPDS output, color management techniques are based on the use of
linearization tables and dithering algorithm, refer to “Color management” on page 329 for
further information. Note that color modes supported for MIBF are black and white, and full
color. You can, if required work with pre-dithered image resources, these must be converted
using the supplied image conversion utility before use in the Designer, see the “Processing
IJPDS and MIBF images” section in the DOC1 Programmer’s Guide for further details.
334
Output, media and resources
Model Selection
Printer Model Choose the type of MIBF printer hardware you wish to configure. Select
the required printer from the drop down list. Note that the configuration
options presented in this wizard are dependant on the model you select
here. If you select the User defined option, all printer dependant
restrictions are lifted.
Machine Settings
Create separate font file(s) This setting allows you to specify the type of MIBF output to generate, as
follows:
Checked
filename.MB2– contains general configuration settings.
filename.MBFnn – contains font resources for each BIP.
filename.MBPnn – contains page commands for each BIP.
Unchecked
filename.MB2– contains general configuration settings.
filename.MDBnn – contains page commands and font resources for each
BIP.
Where filename is the output specified in the Publish Wizard and nn
represents a two digit number corresponding to a specific BIP. Note that
only files for used BIPs are created.
Set font memory usage (MB) This option specifies the maximum amount of memory that can be used
for fonts. The value is dependent to the hard-disk capacity of the printer.
The default value for this option is -1, indicating that font memory is not
restricted.
Limit memory usage (MB) This is the maximum amount of memory specified in MB that can be
allocated to the DOC1GEN process before disk caching is used.
Printstream mode Indicates that the print stream is intended for full width printing or, half
width printing.
Max page size (inch) This is the maximum number of printer dots available in the Y direction of
the page buffer for the target printer. The default is 30 inches at the
specified resolution.
335
Output, media and resources
General Settings
Print mode This setting is used to indicate if the datastream should be presented in
simplex (single-sided) or duplex (double-sided) mode. You also select how
many logical pages you want to output per side, either 1–up or 2–up.
Color support This defines if the printer is to expect Full (CMYK) or None (black only).
Separate back-side color support This setting allows you to define separate color support when printing in
duplex mode. If this option has been selected you can then define if the
printer is to expect Full (CMYK) or None (black only).
Text/Image/Graphics dither Each of these settings allow you to specify the color matching process to
algorithm be used with the object type. Options are:
RAST and RAST 4tones – uses raster dithering.
FSB, FSB 4tones, FSB 5tones and FSB 7tones – uses the Floyd Steinberg
error diffusion method for dithering.
FSB is the recommended value for image dithering. When working with
text and graphics, RAST is the recommended setting.
Note that the available dithering options are based on your intended
MIBF printer hardware and are reflected in the associated drop down list
options.
Page X offset This values specifies the page origin X offset in dots. This is needed for
printing outside the cue and registration mark area and is based on the
top left corner of the sheet being 0,0. Printing is shifted to the right for
the X offset.
X 2up Adjustment This setting is for 2up printing, specifying how much the right side of the
page is shifted in the x direction.
336
Output, media and resources
Front Front
Back Back
Place multiple publication on This option enables different publications to be placed on the same cut
same sheet sheet of paper. A new publication will not be printed on the back side of a
sheet of another publication when this option is disabled.
Registration marks
These settings enable each page of the publication output to contain a print mark by the print heads
individually when printing in full color mode, allowing alignment problems to be resolved. The values ar
specified as a number of printer dots.
Size This setting indicates the size of all registration marks, which is a circle set
within a cross.
Page Y offset This value specifies the page origin Y offset in dots. This is needed for
printing outside the registration mark area and is based on the top left
corner of the sheet being 0,0. Printing is shifted down the sheet for Y
offset.
Reg mark X,Y position These settings must be specified as a pair to indicate the offset to be used
for the top left of the mark. You can set between 1 and 4 registration
marks depending on the selected check boxes.
Color attributes
These settings allow you to map the fixed color definitions available to your publication design with specific
CMYK values to be passed to the printer. By tuning these setting you can more closely match DOC1 standard
colors to those on your printer hardware.
Black, Brown, Green … White Enter a set of 4 integers (0-255) separated by commas to define the
associated CMYK color value.
337
Output, media and resources
BIP assignments
These settings allow you to assign specific colors to BIPs used by your printer. The information below
summarizes the recommended color assignments for each available BIP.
Set Cue Mark This option allows you to select which BIPs will print cue marks.
File paths
The file paths page allows for setting the path and file name for the disk caching files.
338
Output, media and resources
In these situations each file must be assigned a unique name. This is achieved by embedding a
variable in the appropriate output file name assignment using the Publish Wizard. During
production DOC1 Generate will automatically resolve the variable with a unique value for
each file produced.
Choose from one of following variables when making file name assignments:
• %1 – a 7 digit sequential hex number
based on order of processing. L IT IS IMPORTANT TO ENSURE THAT THE RESULTANT
FILE NAMES ARE COMPLIANT WITH NAMING
CONVENTIONS OF YOUR HOST OPERATING
• %2 – a 7 digit sequential decimal
SYSTEM.
number based on order of processing.
• %3 – the value in the Title field which is specified as an attribute of the publication
(see “Publication attributes” on page 99). If Title is missing, %1 will be substituted.
z/OS example:
'G1UKJB.TSTPCOM.PDF(D%2)'
may produce:
G1UKJB.TSTPCOM.PDF(D0000001)
G1UKJB.TSTPCOM.PDF(D0000002)
G1UKJB.TSTPCOM.PDF(D0000003)
...
Windows example:
TSTPCOM%3.RTF
may produce:
TSTPCOM1012831.RTF
TSTPCOM5598179.RTF
...
In the example above the Title publication attribute has been set to customer account number.
339
Output, media and resources
340
Output, media and resources
| To use font mappings: use the Mapping Details dialog box for Fonts to specify either a new
resource name or a cross reference to an output datastream resource known to the repository.
The resulting dialog box depends on the selected output datastream. Note that for AFP,
PostScript, VPS and VIPP you have the option to reference fonts from your printer
environment.
341
Output, media and resources
Outline AFP font encoding can be changed from the default settings to indicate the encoding
of the AFP font to be created. This option is used with single-byte fonts used for western
languages. Only applicable encoding schemes supporting these languages are available for
selection. Fonts used with non western languages, such as Chinese, Japanese and Korean are
generated using the UCS2 encoding scheme. For complex scripts, fonts are created based on
the original Windows fonts. Note that the encoding scheme for DOF AFP outline fonts is set
to UCS2 and cannot be changed.
Existing AFP bitmap and outline fonts are a combination of up to three file types:
– a character set containing the actual font bitmaps;
– a code page that maps code points to characters;
– a coded font that references a character set and a code page.
It is possible to reference a font using a coded font, a character set/code page combination,
an outline font family or a printer resident font directly. If you specify a new name for a font it
will be used as the base name for all required files. Note that for bitmap and outline fonts, the
name can be no more than six characters.
For PostScript, PDF and variants all point sizes of a font-face are mapped together. You need
only select the appropriate font folder and character set when mapping. For certain types of
PostScript multi-byte and double-byte fonts you can optionally specify a mapping file known
as a CMAP. The CMAP file name is entered directly after the font details in the Printer Font field
and must be preceded with two hyphens, as follows:
Mincho-Light--90ms-RKSJ-HA
In this example 90ms-RKSJ-HA is the CMAP file associated with the Mincho-Light font.
342
Output, media and resources
Note that PostScript images can be cached in printer memory as required to increase
performance and reduce the size of the output datastream. See“PostScript” on page 305 for
further information.
| To delete entries from a resource map: open the appropriate custom resource map in the
resource map editor. Select the mapping to be deleted and click Remove.
343
Publishing and deployment
Running a publishing task in the DOC1 Work Center prepares the material required for DOC1
Generate to process a production job. You can either publish for DOC1 Generate or for the
EngageOne Interactive environment.
About publishing
Publishing always works with issued versions of Active Content or publications and the other
files they reference – i.e. draft versions of files will not be included. However, you can use the
Publish Current Draft task to issue files automatically prior to publishing if required.
Specifically, the last saved version of the Active Content or publication is issued prior to
publishing along with all the documents and other objects it references providing they are
marked as private for the publication.
344
Publishing and deployment
Publications
When you run a complete publishing task for a publication you will need to specify:
• one or more output device objects that identify the type of datastream to be produced
• a host object that provides information about the operating system on which DOC1
Generate will process the job and any settings required to communicate with the
production machine when deploying the HIP file.
You can retain information about the publishing options you use in a Production Job object. If
required, production jobs can be created in advance and can then be made available to users
responsible for publishing.
When the publishing task completes, the HIP file is created and automatically deployed to the
location indicated in the assigned Host object. Normally this will be a file location on the
actual server where Generate will run but if you do not have direct connectivity with the
intended production machine the host object can indicate a local directory in which the HIP
will be created.
When publishing the design only, a single design HIP file will be produced – with no resource
information. Resources must be published separately. You can either publish all the required
output devices to a single resource HIP file or publish them separately in multiple resource
HIP files.
345
Publishing and deployment
Note that when publishing the design and resources separately you will need to make the
resource HIP files and output file names known to DOC1 Generate in the OPS file; see “Using
segmented resources” on page 364.
Active Content
If you reference publishable Active Content in your publication you must make sure that the
Active Content has already been published. For details of how to specify the location of the
Active Content HIP files in DOC1GEN see “Using segmented resources” on page 364.
data map, a dialog box is displayed listing the DICTIONARY AND DATA MAP FOR IDE” ON
The links you specify using the Click the active icon to
wizard are stored in a data map create or break a data
object and this can be reused in field’s link to the data set.
subsequent tasks and can be
shared by other publications if
appropriate.
346
Publishing and deployment
| To edit an existing host: double-click on the object in the relevant Work Center Manager
view.
347
Publishing and deployment
348
Publishing and deployment
Normally you will want to assign specific references for such files, i.e. you will specify the
location and file name where DOC1 Generate will look for them or create them.
If required, you can choose the Set
input/output on host option to allow the actual L INFORMATION ABOUT CREATING AN OPS FILE FOR
USE WITH GENERATE CAN BE FOUND IN “RUNNING
file references to be specified in an Override DOC1 GENERATE” ON PAGE 363.
Production Settings file (OPS) that is passed
to Generate when a production job is actually started. This allows you to amend file references
for individual production runs. You will need to take a note of the Name assigned to each file
by the publication task as you will need to specify this as part of the OPS format.
Additionally, where the intended host system is z/OS you can specify file references as DD
labels that can then be resolved to actual dataset names in the JCL used to initiate Generate.
Where you are using specific file references
you should always use the notation L IF YOU SPECIFY ONLY A FILE NAME (I.E. NO OTHER
SERVER/PATH REFERENCES) GENERATE WILL
appropriate for the intended host system. For NORMALLY SEARCH FOR THE FILE IN THE LOCATION
example, if Generate is going to run on a FROM WHERE IT WAS STARTED.
Windows or UNIX platform you might use a
server, folder and file name reference; for z/OS you should use dataset/member references;
and for OS/400 you should use the libname/filename(member) convention.
Note that the HIP file that is created by the publishing process is always passed to Generate as
part of the batch start-up command.
Input
Input files These can comprise:
• the primary input data file for the production job that contains the variable
information presented in the documents created.
• one or more references to resource hips generated when you publish resources
separately from the publication.
Lookup tables If a publication uses the table lookup feature to map text references to alternative
strings you will need to specify one or more files that contain the lookup
information. Refer to “Lookup table” on page 158 for information about the
expected structure of a lookup table.
Table references the File Alias used in the lookup table object in the publication.
File is the location of the lookup table on disk.
Terminator enables a character to be used to designate the end of a record entry
when using a lookup table with z/OS or OS/400.
Code page enables a system or custom code page to be associated with the text in a
lookup table.
349
Publishing and deployment
350
Publishing and deployment
When publishing publications you can identify the intended host system and output devices,
specify the file references to be used by Generate on the host system and set any other
run-time options relevant to the job.
351
Publishing and deployment
352
Publishing and deployment
Publish Options
Batch/On demand Publications
This will publish the files required by your publication to run Generate on the
host system and to print/present the resulting output datastream on your
intended output devices. You can publish all the publication design and
resources at the same time, or you can choose to publish them separately
Choose from:
Complete publication produces a single HIP file that supplies all the publication
design and resources.
Publication design only produces a single HIP file containing the rules for
constructing the publication.
Publication resources only produces a single HIP with all the resources (fonts,
output device settings, images and overlays) to support the publications you have
selected. You can produce any number of resource HIP files for a publication.
They can be for any combination of output devices required for the publication –
one, some or all. One or more can then be used when running Generate.
Note that when publishing design and resources separately the resource HIP files
must be specified as input files to Generate. See the “ResourceHIP” option in the
<Input> section of the OPS file on page 368 for more information.
Active Content
This will publish an individual HIP file for the Active Content selected. If you want
to publish more than one Active Content object click Next. Use the icon and
browse through the folders and publications in the repository using the window
provided. Any publishable Active Content objects found within a selected
publication are added to the publishing task, as well as:
• any publishable Active Content objects referenced within other Active
Content,
• publishable Active Content referenced by keyed Active Content maps.
You can use the icon to remove Active Content objects.
Click Finish to activate the publishing task. Use the window provided to browse to
a destination folder, or create one for saving the HIP files.
Interactive Publications
This will publish an EngageOne template package created from a single
publication. This is a combination of presentation elements, logic, interactive
data placeholders and a manifest describing the attributes and contents of the
template. See “Publishing for EngageOne” on page 230 for more information.
Note that templates do not contain any font and image resources for target
output datastreams. Such resources are placed within independent files that must
be created and deployed in conjunction with requests from the EngageOne
server. See “Publishing resources for EngageOne” on page 230.
353
Publishing and deployment
Production job
Note that the options available on this page depend on whether you are
publishing a complete publication, the design only or the resources only.
354
Publishing and deployment
Output Device
Process options
Note that all the options in This lists the output
this section are made device objects available
available depending on the in the repository.
user profile being used.
Use multiple output devices If selected multiple output
datastreams are created in
relation to the same set of
input data. Click here to modify the
settings of the selected
Configure DIJ … If selected a DOC1 output device.
Interchange Journal (DIJ)
will be created when the
job is processed by
Generate. This is required
when the output
datastream is to be used
with the e2 Vault, Present
and Pay, and e-Messaging products. When this option is selected an additional
page is provided in the wizard to allow you to specify the file to receive the DIJ
and to provide related settings.
Cache AFP DBCS fonts If selected AFP DBCS fonts are automatically stored in your local file cache.
for re-use Selecting this option can result in an increase in publication time, however these
fonts will be re-used by subsequent publications.
355
Publishing and deployment
Input/Output
These pages allow you to This lists the Host objects
indicate the files that will available in the repository.
Click here to
provide input to a Select the host for which the
modify the
production job will be prepared.
production run and those host settings.
that will receive the output
created by the job. Refer to
“Specifying files for
Generate” on page 348 for
details.
Output
These pages are used
when publishing
resources separately and
allow you to indicate the
files that will receive the
output created by the
job. Refer to “Specifying
files for Generate” on
page 348 for details.
356
Publishing and deployment
Additional Resources
Additional font and image Use these buttons to add
resources can be included in or remove resources
your publications HIP file. from the repository.
These can either be added
from the repository or
imported from your local
If you wish to import resources from
machine. your local machine click on this button.
Refer to “Using fonts and images” on
This option can be used to add page 87 for further information.
extra resources referenced by
RTF fields included in your input data. Refer to “Including RTF fields in input
data” on page 189 for further information.
Note that when including native printer fonts as additional resources you must
ensure these match your intended output datastream type.
In an EngageOne Interactive environment you can specify additional fonts that
will be made available to a correspondent when working with editable text in the
front-office environment.
Advanced Options
These pages allow you to fine-tune the DOC1 Generate run-time environment.
Publications to process Select Range of publications if you want DOC1 Generate to process only a subset of
the publication data sets available in the input data file. You may want to do this if
you need to rerun portions of a production job without creating a new input data
file. Use the entry field to indicate the sequential numbers of the publication data
sets to be processed. For example:
27,280,674 – specific publications
100-1000 – publications between 100 and 1000
1000+ – all publications after the first 1000
366,500-1000,2000+ – combinations.
Checkpoint progress Use these options to indicate when checkpoints are to be created by DOC1
Generate. Checkpoints output a message at user-defined intervals indicating
which publication data set is currently processing. This information is used if you
want to restart processing after a failure.
If you want to restart processing from the last checkpoint position you will need
to specify a checkpoint file. You must also specify #restart when restarting
Generate, either in the OPS file (see “Restart” on page 374) or on the command
line (see page 378 to page 381).
357
Publishing and deployment
Error Handling
On error with This setting relates to the handling of keyed record data only. Use it to indicate
publication data set what action should be taken if DOC1 Generate encounters a publication data set
that cannot be processed. This may occur in the following circumstances:
1. A record is defined as Mandatory but is missing in a publication data set.
2. An undefined record key is encountered.
3. A child record of a repeating group is present without its parent record.
Options are:
Abort job – no further publication data sets are processed and any output files
that have been created by the job are deleted (if this is permitted by the host
operating system).
Skip publication – the publication data set in error is ignored and no output is
created from it. Processing continues with the next publications data set in the
input file.
Record data and skip publication – as above but the publication data set is also
copied to the file indicated by the Data record file field before proceeding. Note
that this file specification must conform to the same naming conventions as all
other Generate I/O files; refer to “Specifying files for Generate” on page 348 for
details.
When shape is These options indicate what action DOC1 Generate should take if a graphic
positioned off page object (including text boxes) have offset values that mean they are positioned all
or in part outside the active logical page area. Different actions are possible for
graphics that are placed using constant values and those that use variable data
(i.e. when using any value object other than a constant to provide an offset).
Options are:
Abort – Generate aborts immediately. Any output files that have been created by
the job are deleted (if this is permitted by the host operating system). This is the
default for objects placed using variable data.
Warn – a warning message is issued for each object that is found to be positioned
outside the logical page area. Processing of the job continues as normal. The off
page object is included in the output datastream; the effect of this in the
printer/browser environment will depend on the device type.
Ignore – as above but no warning message is issued. This is the default for objects
placed using constant values.
358
Publishing and deployment
Memory Handling
The default setting of Allocate memory as required allows DOC1 Generate to call for
system memory in the amounts most suitable for its processing needs. If you need
control over such allocations select the Pre-allocate memory at start up option and
then use the Allocate memory blocks of size setting to specify the amount of
additional memory to be reserved each time a call is made. You can also use the
Start up with setting to indicate an initial memory allocation prior to any
additional blocks being called.
If you need to set a maximum limit for the total amount of concurrent memory
that can be allocated by Generate, select the Abort if memory exceeds option and
specify the limit in the entry field.
By default, Generate will attempt to hold all the pages of output datastream
created for an individual publication in system memory until it is complete. This
means that Generate can perform output functions as efficiently as possible. You
can use the Limit composed pages option to specify an upper limit to the amount of
memory to be allocated for this purpose. If this option is enabled a default of 4mb
will be used as the limit although you can adjust this to any value above 512k.
When the memory requirement of a publication exceeds this limit the existing
pages in memory will be output to a local disk file which is used as temporary
work space. When the publication is ready for output the pages in the work space
will be retrieved and merged with those still in memory. Use the Overflow… option
to indicate a specific file location for temporary workspace or, if this option is left
blank Generate will create a filename based on the Workspace configuration in the
host object. Note that this file specification must conform to the same naming
conventions as all other Generate I/O files; refer to “Specifying files for Generate”
on page 348 for details.
Note that all system memory settings are, by default, expressed as kilobytes. You
can alternatively use the M suffix to indicate a number of Megabytes if required.
For example:
64 = 64 kilobytes
100M = 100 megabytes
128K = 128 kilobytes
359
Publishing and deployment
Diagnostics
Issue report of memory If this option is enabled DOC1 Generate will issue a summary of the amount of
usage memory allocated by the job on completion. You may want to use this option
during testing to optimize memory handling settings.
Log file This option is used to specify the file that will receive any error or warning
messages issued by DOC1 Generate. The filename and path must be in the
required format for the operating system.
Produce trace This provides a method of tracing publications that cause errors in Generate or
information Preview. A tree structure representing the path that Generate took that caused
the error is displayed. This enables the error to be tracked down to a particular
object in the publication design. Note that this can also be specified in the OPS
file. See also “Debugging publications” on page 365 for more information.
Trace output file Specifies a file for the output from the trace. The filename and path must be in
the required format for the operating system.
If no file is specified the output is sent to the standard output medium of the
Generate host environment (e.g. command prompt window, system log, etc.)
Memory limit This is the maximum amount of memory in bytes that can be used for buffering
trace information. A value of ‘0’ means no limit.
Output file codepage This allows you to change the code page for the output file from the default host
code page to one that is more suitable.
Verbose trace Set this to include GUID information and the internal names of the opcodes that
information are being executed.
Messages
If your publication design contains messages created using the Message1 or
Content Author products, use this page to customize the production side of such
message application environments. For more information see “Interfacing with
message applications” on page 198.
Messages Click the icon to display the Add Message dialog box. You can search for one
or more message files (.HIM) that are to be used with the publication by using the
Browse button.
Audit trail file Specify the file to be used for audit information for each message that is included
in the published documents.
Mandatory not placed Select the action you want DOC1 Generate to take when a mandatory message
cannot be included in a document for which it was intended.
Stop – the default is to stop processing
Continue – ignore the error and carry on
Warn – issue a warning and continue.
360
Publishing and deployment
Server Mode
This section is used if you want your publication to be processed using the Server
Mode method of running DOC1GEN under UNIX and Windows. For more details
on Server Mode, see the DOC1 Programmer’s Guide.
Run DOC1 Generate in Select this option to activate Server Mode and enable its related settings. Abort on
Server Mode failure defines the behavior of DOC1GEN if a print job fails. Selecting this option
will abort Server Mode, otherwise Server Mode attempts to discard the failing
print job and await further commands.
Command Queue Server Mode uses a command queue to receive commands and application data.
The command queue can be specified either as a named pipe or a TCP/IP socket.
The format for named pipe under NT should be \\.\pipe\cmdqueue and under
UNIX it should follow a path/filename format such as /temp/cmdqueue. For
TCP/IP the format for Socket is an IP address such as 10.133.54.202 and for Host
it would be a host name, such as spa02. Both use the Port field which is a number
corresponding to the required port.
System Commands These commands can be specified to be executed before Server Mode has
processed application data, if it completes successfully or if it fails to complete
successfully. They can be any commands that can be passed to the appropriate
operating system from the command line.
Custom
This page allows you to enter any special settings that may be required as part of
problem resolution. Only enter values here at the request of DOC1 customer
support.
361
Publishing and deployment
362
Running DOC1 Generate
DOC1 Generate is the batch program that processes production jobs on your chosen host
system. Generate reads information about the job requirements from a DOC1 HIP file, merges
the input data file it receives with your publication designs and produces output datastreams
ready for printing or presenting on your intended output devices.
to control a job is specified as a parameter to BEFORE RUNNING IN THESE MODES AND THE
the DOC1GEN program when it is started. LAUNCH METHOD WILL DIFFER FROM THAT
DESCRIBED IN THIS SECTION. THE DOC1
Normally, all other file references will have
PROGRAMMER ’S GUIDE CONTAINS FULL DETAILS
been specified in the production job settings
OF THESE METHODS.
that were used when the job was published in
the DOC1 Work Center. If required however,
you can create an Override Production Settings file (OPS) in which you can specify
additional/alternative file references and other settings. Where used an OPS file is specified as
a second parameter to the DOC1GEN start-up command.
You will need to ensure that all input files referenced in the productions settings and the OPS
file are available at the locations specified when DOC1GEN is started. For jobs running under
z/OS indirect file references using DD names are typically used in which case the start up JCL
will need to include DD cards with these labels that indicate the actual datasets.
Output files will be created with the file location/names specified in the production settings
and/or the OPS file. You will need to ensure that suitable disk space is available to receive the
output at the defined location. Under z/OS you will need to allocate suitable datasets either in
advance or as part of start-up JCL if DD references are used.
363
Running DOC1 Generate
Return codes
DOC1GEN always returns 0 (zero) for successful completion or where warning messages
(only) have been issued. Return code 16 is issued where a failure has occurred – i.e. where an
abort message has been issued.
Messages
Messages issued by Generate are always written to the standard output medium for the system
on which the program is running. A list of possible messages and their explanations can be
found on the DOC1 Support Net web site at www.doc1supportnet.com.
364
Running DOC1 Generate
Legacy support
The DOC1 Series 5 production engine cannot process jobs created in a pre-Series 5
environment without modification. However, you can use Generate to automatically launch
the Series 4 production engine (known as EMFE). To do this you need to call the DOC1GEN
program with an OPS file (see below for details) that indicates the location of the DOC1EMFE
program and the relevant EMFE initialization file. You should refer to your Series 4 user
documentation for details of the parameters and files that are required when using this
method.
Debugging publications
When an error occurs in the logic of your publication design, you can use the debugging
option in Generate or Preview to trace the problem. Processing stops on the first publication
that causes the error and a tree structure is generated that represents the path the program
took when the error occurred. This can help in tracing the problem to the relevant object in
the publication design. The tree structure shows logic map labels so it is advisable to ensure
that your design is fully labelled.
Associated data is also shown, although this may include data from previous publications so
you must be aware of which data the publication actually uses. Information on the internal
opcodes being executed can also be shown if required. The debug information is output either
to a file or to the standard output device.
Debug options can be specified both in the publishing task (see “Diagnostics” on page 360)
and in the OPS file (see “Trace” on page 370). The TraceLevel option in the OPS file can be used
to switch debugging mode on or off each time you run Generate.
OPS file
An override production settings file allows you to specify supplements and alternatives to
some of the job settings that were used when publishing a publication design.
The use of an OPS file is optional unless you have not specified all file references and license
data in the publishing task.
An OPS is a text file. Options are coded as keywords and associated parameters within several
distinct sections. Sections must be introduced with the relevant name within angle brackets,
for instance: <Journal>. If you want to include comments in the OPS file, prefix the
comment line with a semicolon character.
No sections or keywords are compulsory and you should code only those options that suit
your requirements. All missing options are assumed to have been specified as part of the
publishing task.
365
Running DOC1 Generate
All file references can include both path and file name as required. Ensure that you code all
such references in a format suitable to the operating system under which you are running the
production engine.
Syntax:
<Generate>
ProgramLocation=Filename
EMFE=Filename
INI=Filename
ServerMode={True|False}
<Input>
DataInput=Filename
MessageLib=Filename
MessagesFile=Filename
ResourceHIP=Filename
ActiveContentLocation=Path
<LicenseInfo>
CustomerName=String
Keycode=Keycode
<Journal>
Name =Filename
Name =Filename
...
<LookupTable>
Name =Filename
Name =Filename
...
<KeyMap>
Name =Filename
Name =Filename
...
Mode ={Cached|Runtime}
<DIJ>
Name =Filename
...
<Output>
Name =Filename[,TempFilename]
Name =Filename[,TempFilename]
...
MessageAuditTrail=Filename
Name
366
Running DOC1 Generate
<Server>
CommandQueue= {QueueID|PIPE:QueueID| SOCK:address:port|HOST:hostname:port}
Commandnn=CommandString
CommandBefore=CommandString
CommandOK=CommandString
CommandFail=CommandString
CommandEnd=CommandString
AbortOnFail= {True|False}
...
<Advanced>
ErrorFile=Filename
LogFile=Filename
Checkpointfile=Filename
CPconsole= {0|1}
ConstantShapeOffPage=Abort|Warn|Ignore
DynamicShapeOffPage=Abort|Warn|Ignore
RangeOfPublications=n
WorkSpace=Filename
SystemTempFiles={Yes|No}
...
<OverFlow>
OverFLowFile=Filename
OverFlowSize=Memory
<Custom>
Name=Parameter
Name=Parameter
...
367
Running DOC1 Generate
<Generate> If required, use this section to specify an alternative DOC1 production engine
program from that associated with the DOC1GEN program with which OPS was
launched.
ProgramLocation Can be used to indicate an alternative DOC1 Series 5 engine. Where used,
Filename must indicate a PCOM.DLL file (or equivalent name depending on your
production platform) as supplied with versions of DOC1 Generate.
EMFE Can be used to indicate a DOC1 Series 4 production engine. Where used, Filename
must indicate an EMFE.EXE file (or equivalent name depending on your
production platform). If you use this option you must also code the INI keyword to
specify an EMFE initialization file that contains the settings for the job to be
launched. If you use the EMFE keyword all other OPS settings are ignored.
ServerMode Setting the keyword to True initiates Server Mode. Setting the keyword to False
overrides any Server Mode settings contained in the hip file and DOC1GEN runs
in batch mode.
<Input>
DataInput Filename specifies the main DOC1 input file; i.e. the keyed record, delimited or
XML file that will provide variable data to the current job.
MessageLib Filename specifies the DOC1GEN production message library (PCOMEng.DLL or
equivalent). Use this option if the message library file is not in the same location
as the DOC1GEN program with which the OPS is to be launched. Also use it if the
ProgramLocation or EMFE keywords are being used to specify an alternative
production engine in which case the message file associated with the selected
engine should be specified.
MessagesFile Filename specifies the Message1/ Content Author HIM files to be used (note that
you can use wildcard characters in the filename, e.g. re*.him). These files contain
the required messages.
ResourceHIP Filename specifies the resources file used when publishing output definition
separately. Each additional HIP specified relates to a resources HIP targeted at a
specific device. These must pair up with entries in the <Output> section.
368
Running DOC1 Generate
<LicenseInfo> This section allows you to specify your DOC1 license keycode details for the
production platform on which DOC1GEN is to run. If specified this section
overrides the keycode options that were specified in the Host object used when
publishing a publication (if any).
CustomerName String is the customer name as indicated on your DOC1 keycode report. This is
case sensitive and must include any punctuation shown in the report.
Keycode Code the Keycode as shown on your DOC1 keycode report. This must be coded
exactly as shown including hyphens. Do not code spaces.
<Journal> This section allows you to specify or override the file references to be used when
creating journal files for the publication. Name should be the file alias assigned to
a journal object in the publication design. Filename should indicate the actual file
to receive the journal output. You may code as many entries as necessary to meet
the number of journals to be created by the publication.
<LookupTable> This section allows you to specify or override the file references to be used with
lookup table functions within the publication. Name should be the file alias
assigned to a lookup table function in the publication design. Filename should
indicate the actual file containing the lookup table data. You may code as many
entries as necessary to meet the number of lookup tables referenced by the
publication.
<KeyMap> This section allows you to specify or override the settings used with key maps
within the External Key Maps section of a production job or Publish Wizard.
Name The file alias assigned to a key map in the publication design. Filename should
indicate the actual file containing the key map data. You may code as many entries
as necessary to meet the number of key maps referenced by the publication.
Mode Specifies how the key map is read at run time and is applied to all the key maps
associated with a publication. For more details, see “ Production job file
references” on page 349.
369
Running DOC1 Generate
<DIJ> This section allows you to override the settings specified for the DOC1
Interchange Journal in the Output Files section of the Publish Wizard. See
“Appendix C – DOC1 Interchange Journals” on page 436 for details. Name
corresponds to the Name field which is automatically assigned when using the
Publish Wizard. Filename corresponds to the DOC1 Interchange Journal field and
indicates the actual DIJ file you want to use.
<Output> This section allows you to specify or override the file references to be used when
creating the output datastream files produced by the job.
Name Is the reference name assigned
to the output file when
publishing the publication and
optionally, a temporary file.
Filename indicates the actual file
Use the Name for
containing the datastream. If set regular publishing …
… or the Device name
to ‘null’ the publication will be when publishing the
resources separately.
not be generated for that output
device, e.g. output2=null.
If required, you can override the name of the temporary file used by Generate for a
specific output device using TempFilename. This is used in preference to the
Workspace option – see page 374. When specifying output datastream files you may
code as many entries as necessary to meet the number of output datastreams to be
created by the publication.
MessageAuditTrail Filename is the file to be used for Message1 and Content Author audit information
for each message that is included in the published documents.
<Trace>
OutputFile Filename is the name of the file for the trace information. If no file is specified the
output is sent to the standard output medium of the Generate host environment
(e.g. command prompt window, system log, etc.)
370
Running DOC1 Generate
<Messages>
MandatoryNotPlaced Select the action you want DOC1 Generate to take when a mandatory message
cannot be included in a document for which it was intended. The default is to Stop
processing, otherwise you can ignore the error and Continue or issue a Warning and
continue.
MandatoryMessageError Select the action you want DOC1 Generate to take when a mandatory message has
unresolved links – typically when a font used by the message is not included in the
resource pack or when a data field used has not been mapped. The default is to
Stop processing or you can ignore the error and Continue processing.
OptionalMessageError As above but for non-mandatory messages.
CampaignDate Specifies the date to be used when selecting messages using the activation and
expiration attributes as defined within the Message1 and Content Author
environments. Options are:
Auto – the current system date
Auto+|-<n><d|w|m> – the current system date plus or minus the specified number
of days, weeks or months, e.g Auto+10d, Auto-3w
dd/mm/yyyy or mm/dd/yyyy – a specific date
Cycle String defines which cycle (defined in the Message1 and Content Author
environments) to use. If defined, only messages belonging to this cycle will be
selected.
MessageProcessing Allows details for message rejections to be output to the standard output medium
for the system on which the program is running. The default is No.
371
Running DOC1 Generate
<Server> The keywords in this section are used with the Server Mode method of running
DOC1GEN under UNIX and Windows. For more details on Server Mode, see the
DOC1 Programmer’s Guide.
CommandQueue Including this keyword in the OPS file initiates server mode.
QueueID – is the name of the communication channel in the format applicable to
the operating system. Under UNIX this is the name of the existing pipe and under
Windows this is the name of a pipe which will be set up automatically when Server
mode is initiated. This must always use the following conventions: \\.\pipe\name
address:port – is the name of a communication channel specified as a TCP/IP 'dot'
address and an associated port number, such as 10.133.54.202:5000
hostname:port – is the name of a communication channel specified as a host name
known to the current system and an associated number, such as spa02:5000
Commandnn – The number nn is used to reference the command when the DOC1SBMT
program is executed. The command string can pass up to nine parameters which can
be user defined or predefined elements of the Server Mode environment. The
predefined elements are identified by fixed symbols as in the following list
(assumes that defaults are being used, i.e. a ValuePrefix of “&” and ValueSuffix of “.”):
&I. – input file name
&Pn. – print file name (where n is the file alias assigned to the output file when
publishing a publication, i.e. &POutput1. &POutput2.)
&R. – server mode return code…
0 job OK
10 PAGE 1 of N overflow threshold exceeded
15 error executing system command specified by the user
25 failed during processing of job
30 failed during termination of job
50 failed during initialization of processing. Most likely input or print filenames
were invalid
372
Running DOC1 Generate
<Advanced>
ErrorFile This option is used to specify the file that will receive any publication datasets
that cannot be processed by DOC1 Generate when a production job is run. It will
override the file specified in the Data record file option in the Publish Wizard.The
filename must be in the required format for the operating system.
LogFile This option is used to specify the file that will receive any error or warning
messages issued by DOC1 Generate. The filename must be in the required format
for the operating system.
Checkpointfile This option is used to specify the file that will receive the messages that indicate
which publication data set is currently being processed.
CPconsole Checkpointing messages can be reported to the standard output medium of the
Generate host environment (e.g. command prompt window, system log, etc.). Set to
0 – do not report messages (default)
1 – switch reporting on.
373
Running DOC1 Generate
ConstantShapeOffPage Defines the action DOC1 Generate should take if graphic objects (including text
boxes) positioned using constant values for both X and Y offsets are positioned all
or in part outside the active logical page area. Options are:
Abort – Generate aborts immediately. Any output files that have been created by
the job are deleted (if this is permitted by the host operating system).
Warn – a warning message is issued for each object that is found to be positioned
outside the logical page area. Processing of the job continues as normal. The off
page object is included in the output datastream; the effect of this in the
printer/browser environment will depend on the device type.
Ignore – as above but no warning message is issued. This is the default for objects
placed using constant values.
DynamicShapeOffPage As above but this option applies to graphic objects positioned using variable data
for either offset.
WorkSpace This option specifies a file template used by DOC1 Generate to create temporary
files at runtime. Refer to “Creating a host object” on page 347 for further
information Use either the %1 or %2 placeholders to create unique filenames,
refer to “Specifying a file template” on page 339 for further information. This
option is not for use on z/OS. However you can define a temporary file explicitly
when specifying the output file – see page 370.
SystemTempfiles When set to Yes the host operating system will allocated temporary files for DOC1
Generate to use at runtime. Note that either this option or the Workspace option
should be used to manage temporary files.
<Overflow> These options are used to override the Limit composed pages in memory settings on
the Memory Handling page in the Publish Wizard. For details, see “Error Handling”
on page 358.
374
Running DOC1 Generate
<Custom> This section allows you to specify any temporary settings that may be required as
part of problem resolution. The keyword Name and associated Parameter will be
provided directly by DOC1 customer support as required. You may code as many
entries in this section as necessary.
Examples:
<Generate>
ProgramLocation=\\servnet\mt\doc1gen.exe
<Input>
MessageLib=\\servnet\mt\doc1msg.dll
ResourceHIP=C:\Resources\Default pdf.hip
ResourceHIP=C:\Resources\myafp240.hip
ActiveContentLocation=C:\Resources\%1
<LicenseInfo>
CustomerName=Big Corp
Keycode=EN-7824-620B-F1A0-17CC-721F-194D
<Journal>
J1=\trace\doc1j1.txt
J2=\trace\doc1j2.txt
J3=\trace\sn1j3.txt
<LookupTable>
tsub=\\servnet\mt\lookups.txt
<KeyMap>
kmap1=\\resnet\gjk\km1.xml
mode=Runtime
<DIJ>
Output1=\doc1\edm\doc1a.jrn
375
Running DOC1 Generate
<Trace>
Outputfile=trace.out
TraceLevel=default
outputcodepage=utf8
memlimit=0
publication=3
<Messages>
MandatoryNotPlaced=Warn
MandatoryMessageError=Continue
OptionalMessageError=Continue
CampaignDate=12/07/2007
Cycle=AC02
MessageProcessing=Yes
NoMessages=Warn
<Server>
CommandQueue=HOST:spa02:5001
Command00=¨sndmsg msg('DOC1GEN processed &I.') tousr(*requester)¨
Command01=¨sndmsg msg('&0.') tousr(*requester)¨
CommandBefore=¨time /t >> start.log¨
CommandOK=¨time /t >> OK.log¨
CommandFail=¨time /t >> Fail.log¨
CommandEnd=¨time /t >> End.log¨
AbortOnFail=False
<Advanced>
ErrorFile=doc1\backups\june21err.txt
LogFile=trace04.out
Checkpointfile=check.out
CPconsole=1
RangeOfPublications=100-350
ConstantShapeOffPage=Warn
DynamicShapeOffPage=Warn
WorkSpace=d:\process\work\b%1xml
SystemTempfiles=yes
#restart
<OverFlow>
OverFlowFile=doc1\memerror.txt
OverFlowSize=48m
<Custom>
PTF5690=¨Type1¨
376
Running DOC1 Generate
Using symbols
You can dynamically define parameters used in an OPS file by using symbols when starting a
Generate job. The value assigned to a symbol is substituted wherever it is referenced in the
OPS file and can be used to provide part or all of any parameter.
Where used, symbols must be defined after any other parameters in the start-up syntax. Under
Windows for example, you could specify the following on the command line:
where ext is a symbol name. When referenced in the OPS file the symbol names must be
enclosed in percent (%) characters. For example:
<Journal>
J1=\trace\doc1j1.%ext%
J1=\trace\doc1j1.%ext%
...
Symbol names are case sensitive. Where a
symbol is referenced in the OPS but no value L NOTE THAT THE FOLLOWING MUST NOT BE USED
AS SYMBOL NAMES: OPS, MODE, ECP, MMGX.
is assigned it is treated as an empty string.
Symbols may also be defined within the OPS file itself by coding them in an <OPS> section
prior to where they need to be referenced. The format is as follows:
<Symbols>
Name =Parameter
Name =Parameter
...
If the same symbol name is specified both in start-up parameters and in the OPS itself then the
start-up parameter will override. For example; in the OPS:
<Symbols>
RunName=run
BaseDir=\doc1
<Journal>
J1=%BaseDir%\trace\doc1j1.txt
J2=%BaseDir%\trace\doc1j2.txt
J3=%BaseDir%\trace\%RunName%j3.txt
<Output>
Output1=%RunName%1.afp
Output2=%RunName%1.pdf
377
Running DOC1 Generate
The JOBLIB and/or STEPLIB concatenation must reference the main DOC1 load library and
message library datasets. You may also need to include references to the IBM Language
Environment (LE) run-time libraries if these are not known to system libraries.
The HIP file that controls the job plus an OPS file (where used) are specified as parameters
on the EXEC card. However, these normally indicate DD references that are resolved to
dataset names in subsequent DD cards.
The JCL must also include DD cards for all other files that have been identified using DD
references in the HIP or OPS.
Parameters:
HipRef is the DD label indicating the DOC1 HIP file that will control the job.
OpsRef is the DD label indicating an override production settings file if appropriate.
EcpRef is the DD label indicating the DOC1 Extended Code Page file which will be required for most
non-Western applications. The ecp file must be placed in a fixed block dataset.
CodePage is the number of a host code page to be used instead of the default code page – US (37).
#restart restart the job from the last checkpoint position. See “Checkpoint progress” on page 357.
symbols See “Using symbols” on page 377.
Example JCL
378
Running DOC1 Generate
379
Running DOC1 Generate
The HIP file that controls the job plus an OPS file (where used) are identified as parameters
to the start up command.
All other references to files to be used or created by Generate are defined within the HIP or
OPS files. You will need to ensure that these are available (or creatable) at the locations
indicated.
Syntax:
Parameters:
HipRef is the path/file name of the DOC1 HIP file that will control the job.
OpsRef if an override production settings file is being used this is the path/file name of the OPS.
EcpRef is the path/file name of the DOC1 Extended Code Page file which will be required for most
non-Western applications.
#restart restart the job from the last checkpoint position. See “Checkpoint progress” on page 357.
Note that the quotes are only required when running under UNIX.
symbols See “Using symbols” on page 377.
Examples
For Windows:
C:\doc1\run\doc1gen job6.hip ops=C:\doc1temp\newfiles.ops ecp=doc1ecp
For UNIX:
/doc1/run/doc1gen job6.hip ops=C/doc1temp/newfiles.ops ecp=doc1ecp
For OpenVMS (assuming that the program name has been defined as a symbol):
doc1gen DISK1:[doc1gen]job6.hip ops=[doc1gen]newfiles.ops
380
Running DOC1 Generate
Parameters:
HipRef is the library/file/member name of the DOC1 HIP file that will control the job.
OpsRef if an override production settings file is being used this is the library/file/member name of
the OPS.
EcpRef is the library/file/member name of the DOC1 Extended Code Page file which will be required
for most non-Western applications.
CodePage is the number of a host code page to be used instead of the default code page – US (37).
#restart restart the job from the last checkpoint position. See “Checkpoint progress” on page 357.
symbols See “Using symbols” on page 377.
Trouble Shooting In certain circumstances where DOC1GEN has earlier finished abnormally some files may
remain locked by the operating system. This situation may be evidenced by messages such as
"File… was already closed…" and "Member… already in use…". If this occurs you can use the
WRKJOB utility to display locks and then clear each locked object using DLCOBJ. Refer to
your OS/400 documentation for more information.
Example
381
Administrative and Repository Tasks
Access control
A user who creates a new DOC1 design repository (as part of installing the DOC1 Work Center
software) is automatically added to the Administrators group and is given full access to all
objects within the repository.
Other users that require access that repository must be registered as a user by an
Administrator. Users can be grouped to make access right assignments more convenient.
By default, design objects are available to all users. You can create projects folders in which
design objects are stored and specify which users have access to such folders and the level of
access they should have.
User accounts
Before any user other than the initial Administrator can log in to the repository they must be
assigned a user account.
Each account can have one or more Projects associated with it. This allows access to design
resources within the named projects.
Additionally you can confer project rights by including user accounts within Groups. The
project rights defined for the group are conferred on each user belonging to it.
383
Access control
384
Access control
User groups
User groups provide the same access control functions as individual user accounts but apply
to all accounts assigned to a group. If user accounts have individual rights these will apply in
addition to the group rights.
385
Access control
386
Access control
Projects
Projects are containers within which publication All the projects in the repository
design objects can be created and maintained. A are displayed in a tree view.
project can contain one or more sub-projects Highlighting a project displays
its settings in the Project
enabling more detailed levels of object Information section.
organization if required.
| To create a project:
1. In the Work Center Manager select any tab that relates to design
objects. Design, Production or Data.
2. If you want to create a sub-project first open the master project in
which it is to be created.
3. From the File menu select New Project.
| To move objects into or between projects: in the Project Explorer select the object you
want to move and select Edit/Copy or click . Browse to the project you want to move the
object into and select Edit/Paste or click .
387
Managing Resources
Resources stored in the DOC1 design repository are considered to be one of two types:
composite and non-composite. Composite resources are objects such as publications and
documents that make reference to other resources stored in the repository.
The DOC1 Work Center provides a range of features for managing and maintaining the
resources within the repository. As resources are issued new object revisions are automatically
created. You are able to restore older revisions of individual objects and roll-back composite
resources to restore an group of objects to a particular revision level.
You can copy resources between projects which creates a new version of the resources to be
managed separately. You can rename and delete resources from project folders and you can
manually lock a resource file for an indefinite period.
Private/public resources
Before an object is issued it is always
considered to be private. This means that it L THIS SHOULD NOT BE CONFUSED WITH ALLOWING
ACCESS RIGHTS FOR A PARTICULAR RESOURCE TO
cannot be used within a composite object. OTHER USERS. ACCESS RIGHTS CAN BE
Most resources automatically become public CONFERRED IN PROJECT SETTINGS REGARDLESS
as soon as they are issued and can then be OF THE PUBLIC/PRIVATE STATE.
The exceptions to this rule are document designs and images that have been included directly
into a publication and not imported into the repository. Both are always considered to be
private to an individual publication unless they are specifically made public in the repository.
388
Managing Resources
Resource properties
Each object in the repository has The General tab includes
properties that provide detailed the resource’s file name and Access Rights displays
which users have access
information about the resource. a number of other details,
to an object and what
such as type, creation date
and latest revision. rights they have to it,
| To view resource properties: such as read and write.
highlight the resource that you
want to view and select
File/Properties. The Description
–or– tab includes any
right-click the resource and select user comments.
Properties from the shortcut menu.
The Properties dialog box is
displayed. Select the tab
corresponding to the information
that you want to view.
Copying
Copying resources creates new versions of the selected objects that are independent of the
originals. Objects are copied from their original folders and then pasted into new folders.
Resources must be public before they can be copied between folders in the project explorer.
| To copy a resource to a new location: from the navigator highlight the resources you
want to copy and select Copy from the Edit menu. Move to the folder where you want to copy
the objects and select Paste from the Edit menu.
389
Managing Resources
purged they cannot be restored. To purge or restore resources from the recycle bin you must
be logged on as the administrator or have the Perform Backup and Restore operations privilege.
Note that you can only delete resources that are not used by anything else.
| To delete a resource: highlight the file to be deleted in the navigator. From the File menu
select Delete. The resource will be removed to the recycle bin in the repository.
– or –
right-click the file to be deleted in the navigator and select Delete from the shortcut menu to
remove the file to the recycle bin in the repository.
| To purge resources from the Work Center: from the project explorer double-click the
recycle bin. Highlight the resources and select File/Purge. To purge all the resources from the
recycle bin, highlight it and select File/Empty Recycle Bin.
| To restore a resource from the recycle bin: from the project explorer double-click the
recycle bin. Highlight the resource or resources you want to restore from the recycle bin and
select Restore from the File menu.
Renaming
Changing resource names does not affect the relationship between files as DOC1 keeps track
of file associations through unique identifiers imbedded in each file.
| To rename a resource: right-click the resource in the Navigator and select Rename from the
shortcut menu. Edit the name and press Enter.
– or –
highlight the resource in the navigator and select Rename from the File menu. Edit the name
and press Enter.
Locking
Resources that are opened for editing are automatically locked. By default, when the object is
closed the lock is removed. If required, DOC1 allows you to keep a resource locked from access
by other users even when it is not open for edit. If you try to open a locked resource in a
client/server environment a message box will display which user has locked the item.
The Work Center administrator has the ability to lock or unlock resources while other users in
the system are editing them.
| To lock/unlock a resource:
highlight the resource in the navigator. Objects have a lock
icon placed on them
From the Edit menu select Lock or Unlock when they are locked.
as needed.
390
Managing Resources
| To show the resources used by a resource: select the resource from the navigator and
select Show Uses from the Tasks menu.
Resource information
includes details on the
selected resource, such
as the creation date and
current revision.
391
Managing Resources
392
Managing Resources
Revision control
Until a design resource is issued it is
considered to be a draft version. Any saved L ONLY DESIGN OBJECTS ARE REVISION
CONTROLLED. ADMINISTRATION OBJECTS SUCH AS
changes to a draft version will overwrite the USERS AND USER GROUPS HAVE AN AUDIT TRAIL
previous draft. Once a resource is issued a BUT ARE NOT ISSUED AND DO NOT MAINTAIN
new revision of the object is stored in the REVISIONS.
Other resources that are not editable within Select this to override the
the DOC1 Work Center can be issued after Work Center Preferences
they have been imported. However, editable option to Prompt for
description to draft changes
resources like publications, documents and for the resource being saved.
Active Content can be issued at the same
time as saving them.
393
Managing Resources
Restoring revisions
You can restore any object back to the state it was in after any issue. For composite objects you
will need to use the Rollback option to ensure that the other objects it contains are also
restored to the correct revision level. For other objects the Revert function provides a simple
method of restoring a previous revision.
394
Managing Resources
395
Repository management
The DOC1 Design Repository stores and controls revisions of all the design resources and
other objects that are used in the DOC1 Work Center. These include resources that are
created within the Work Center itself or have been imported into it from an external source.
The repository consists of a database and a filestore. The database is used to provide revision
control for the repository and will be in the default location as specified in the SQL Server.
The filestore is where DOC1 design files and resources are stored, and is specified as a folder
location.
The tool is supplied with DOC1 distribution material and is run separately.
396
Repository management
You can install any number of repositories, selecting which one to use when logging in to
DOC1 – see “Repository selection configuration” on page 398.
397
Repository management
398
Repository management
.zip – this file contains the contents of the filestore and when the archive option is selected it
contains both the database and filestore backups
The filenames for the backup files are controlled by DOC1 and cannot be set by the user. A
unique sequential number is added to the name to differentiate between backups.
For example:
DOC1Repository_3.zip
399
Repository management
3. Click the browse button to select a location where the database and filestore contents
will be placed for backup.
4. To create a separate zip file containing the database and filestore contents select Copy
Backup Files to Archive and then click the browse button to select a location for the
separate compressed archive of the database.
5. Click Backup and the designated backup files are created.
400
Repository management
• Filestore Location – the location where you want to restore the filestore
• Filestore Backup File – the filestore (.zip) file that you want to restore
4. Compact the database if required. Use with caution – see page 398 for details.
5. Click Restore and the database and filestore will be restored.
| To configure server connection: select the Application Server Setup tab. Note that only
repositories that are up-to-date can be configured. To upgrade a repository to the latest
version see page 398.
401
Repository management
402
Repository management
When importing data dictionary objects that already exists in your repository, it is important
to note that in order to preserve data integrity, deleted data fields and records are never
removed from data dictionary. Note that import can only be run when there are no other users
logged on, and that users will not be allowed to logon during the import process.
| To export a publication:
1. In the Project Explorer open the required project and select the publication, or Active
Content you want to export.
2. From the menu select Tasks/Export Snapshot. The items contained in the
publication/Active Content are loaded and displayed in the Export Snapshot wizard.
3. Click Browse and use the Select Export File dialog box to specify a name and location for
the snapshot.
4. In the Export wizard click Export to complete the process.
403
Repository management
| To import a publication:
1. Ensure that there are no other users logged on.
2. Double-click Repository in the Project Explorer and from the Tasks menu select Import
Snapshot. The Import Snapshot wizard is displayed.
3. Click Browse and use the Select Import File dialog box to search for the file. Click Open and
the contents of the publication are loaded into the wizard.
Care must be taken when importing Active Content to ensure that all dependant publications
are published. If the Active Content is independently published then it also must be
published.
404
Repository management
Backup /
snapshot
Import Restore/Import
file
Publication/
Public Active Content
Designer
resources
Publish
Designer Publish
• Snapshot files
• Repository Backups
This shows a single design repository allowing for the creation and maintenance of document
designs. Testing in the design environment is carried out either using Preview/Advanced
preview or by creating HIP files. This repository is used as a source area from which resources
are promoted to the other repositories for testing and carrying forward into production. Note
405
Repository management
that shared objects such as Public Active Content and images are recognized by the repository
using an internal identifier rather than by name. For this reason it is recommended that a
single source repository is used to avoid the creation of duplicate resources.
The next step in the process is either to create a snapshot containing the relevant design
resources, or to carry out a backup of the test repository. Before promoting these resources to
the production repository a backup of the production repository is required. Refer to “DOC1
Repository Configuration” on page 396 for details on running the backup and restore
functions. The snapshot/backup can now be imported/restored to the production repository
and the updated resources published for production.
At the end of this process a set of snapshots and backups is created. These files should be
stored in a version control environment in case there is a requirement to revert the design
repository back to state under which a particular production HIP was created.
406
Appendices
Appendix A – Glossary
2of5
Type of barcode.
3of9
Type of barcode.
action
DOC1 functions that change the way an application is being processed at run time.
Active Content
Active Content files contain segments of document content and logic and provide a highly
flexible way to share and reuse such segments across multiple publication designs.
ACU
This provides the ability to extract AFP codepage information within a HIP file.
address block
Design object that automatically formats name and address data into a style that is the
standard for a named country.
Administration
The view where the administrator can create and maintain users and administer repository
tasks.
anchor
The method of position objects within a publication design.
408
Glossary – anchored
anchored
Anchor method where graphics are positioned relative to paragraphs within the document
design.
arithmetic
DOC1 function that performs calculations within publication designs.
ASCII
The character coding system used in Windows and UNIX operating systems.
audit trail
See Message audit trail
axes, axis
The lines on a chart that provide a scale references.
background
A design area whose contents are placed behind the main document layer. The background is
often used for a watermark or similar.
bar
1. A section within the DOC1 Work Center Manager window that provides access to a group of
objects.
2. An element on a bar chart
barcode
A code normally consisting of a series of vertical lines or bars of varying thickness which can
be read by an optical scanner.
Base 14 fonts
A set of standard fonts that is available with most PostScript and PDF printers/ browsers.
bidirectional text
A combination of both left to right and right to left text in a paragraph.
bitmap or BMP
A computer image format that is the standard working format within the DOC1 Work Center.
You can convert a wide range of other image formats to BMP.
409
Glossary – body/body area
body/body area
The primary area in a document design where content is added.
BookBill
A physical media layout that includes a payment slip or similar as an extension to the first
physical page of a publication design.
bookmark
A DOC1 design object used for generating bookmarks within PDF output.
bounding box
A rectangular shape area that encompasses all elements of a presentation object.
browser
A program that allows the on-line viewing of documents such as Acrobat Reader for PDF files.
bundle
Design object that allows you to temporarily withdraw other objects from the design scope.
carriage return
See hard return.
case
Design object that selects one of a range of conditional paths when a comparison value is
matched.
casting
Converting one data type to another, for instance, using a string containing 121205 as a date.
cell
The basic element of a table. Combines to make rows and columns.
centralized printer
The name sometimes given to a type of Xerox printer.
character set
One of three font files used in the IBM AFP architecture, a character set contains the actual
raster patterns for the characters.
410
Glossary – chart
chart
A graphical representation of numeric application data. DOC1 supports bar, pie, line and
scatter charts.
chart element
Used to represent a single numeric value within a chart, e.g. a single bar in a bar chart.
checkpoint
A means by which DOC1 Generate can report, at specific intervals, which publication data set
is currently processing.
child object
An object that is within another object in a logic map.
CMYK
Color model expressed as cyan, magenta, yellow and key (black) values.
code128
Type of barcode.
coded font
One of three font files used in the IBM AFP architecture, a coded font combines a character
set and code page.
code page
One of three font files used in the IBM AFP architecture, a code page maps code points used in
output data with actual characters in a character set.
column
1. Consists of any number of cells aligned vertically and is used with rows to create a table.
Also used to specify the layout of a table on the page, for example, a three column table
will split the table into three, side by side.
2. A rectangular section within the body area of a page for positioning main document
content. Can have up to a maximum of eight. Defined using a column layout.
column layout
Used to define the layout of columns on a page.
411
Glossary – composite resource
composite resource
Any design object that contains other design resources, for instance a publication that
contains document designs.
concatenation
Joining of two or more text values together to form a single string.
condition
Design object that queries an expression and executes either a True or False logic map path
depending on the result.
conditional paragraph
A paragraph that has criteria associated with it defining when it should be included in the
document output.
constant
Provides non-variable data to objects.
Content Author
Content Author is an optional module of the DOC1 environment that allows key parts of
publication content – messages – to be created and maintained independently of the main
publication design.
control object
The data element that is used within a repeating data object.
currency
A DOC1 data type used for monetary values.
Data
The DOC1 Work Center Manager tab that gives access to the data format editor, data
dictionary and data maps.
data alias
A reference to a field or record in a publication design. Data aliases enable you to create a
publication design without having sample data available.
database
This is the part of the DOC1 Work Center repository that provides revision control.
412
Glossary – data dictionary
data dictionary
A group of existing data aliases.
data field
A field from input data used in a publication design. This is an alias to the actual field and is
mapped to the appropriate data element before the publication is put into production.
data map
Used to map data aliases from a particular data dictionary to real data in a data format.
data record
A record from input data used in a publication design. This is an alias to the actual record and
is mapped to the appropriate data element before the publication is put into production.
date
A DOC1 data type for calendar dates.
DBCS
Double byte character set. This term is used to describe fonts that have more than 255
characters and which therefore cannot be uniquely identified with a single byte – typically the
case with Chinese, Japanese, Korean and other pictorial languages.
deployment
The process of sending publication resources to a production system for subsequent
processing by DOC1 Generate.
413
Glossary – delimited data
delimited data
A structure of input data supported by DOC1. This is a variation of keyed record data where
field locations are automatically identifiable to DOC1 by the presence of one or more
consistent delimiter characters between each field.
Design
The DOC1 Work Center Manager tab that gives access to publications designs and their
sub-components (documents etc.).
DFE
See Data Format Editor.
dictionaries
1. The reference files used by the spell checking and automatic hyphenation features.
2. See data dictionary.
DIME
Dynamic Internet Mailing Engine. This DOC1 utility is provided to extract the individual
documents from a PDF stream generated by DOC1 Generate and, optionally, to e-mail them.
DJDE
Controls stored within a Xerox Metacode datastream. They can specify dynamic changes to the
Xerox print environment.
DOC1ACU
See ACU (AFP Codepage Utility).
DOC1DIME
See DIME.
DOC1GEN
See Generate.
DOC1RPU
See RPU (Resource Pack Utility).
414
Glossary – document
document
The basic design unit of a publication. Typically, publications have only a single document
design which is made available automatically when the publication is created. However, you
can create additional document designs for conditional selection or reuse within a range of
similar publications.
document area
A logical area that defines the dimensions within which messages are designed in Message1.
Messages associated with a document area can appear multiple times in the same document.
Document Editor
The main DOC1 document layout tool.
document section
See section.
dot leader
A row of dots between the end of preceding text and a tab stop, typical of table of contents and
similar styles.
draft
The status of a DOC1 design resource before it is issued.
e2 Vault
See Vault
EBCDIC
The character coding system used on IBM
z/OS and OS/400 operating systems.
embedded resources
Fonts and image resources that are actually contained within an output datastream rather
than being referenced.
415
Glossary – e-Messaging
e-Messaging
The e-Messaging system manages e-mail and SMS (Short Message Service) customer
communications.
EngageOne
EngageOne is an interactive document production system, which enables the creation and
delivery of ad hoc customer correspondence.
Environment
The DOC1 Work Center Manager tab where you can configure hosts, output devices, locales
etc.
EPS
Encapsulated PostScript file that can be imported into a publication.
EPS2 is a Level II Encapsulated PostScript file which includes support for JPEGs in their
original format.
eye-catcher
A sequence of bytes used to provide a human-readable reference in input data records.
external document
A pre-composed document in a supported external format that can be inserted into a
publication.
field
General term used for the various values that can be used in a document, including data field,
variable and system variable.
filestore
This is the part of the DOC1 Work Center repository that contains DOC1 files and other
resources used when designing publications.
fixed anchor
Anchor method where a graphic is positioned at a fixed offset on the page where it is inserted
(or multiple pages if used on the background).
416
Glossary – font
font
A set of printable or displayable text characters in a specific style. In DOC1 you design
publications using Windows fonts which are then converted (if necessary) to a format suitable
for your intended output device.
font subsetting
Only those characters that are used in a document are embedded in it. This reduces the size of
the output file produced by DOC1 Generate, particularly when DBCS fonts are used.
footer
An area at the bottom of a page or table containing any type of content. Can be specified to
appear only in certain conditions, for example, only on the first page.
form
The Xerox term for an overlay.
formatting marks
Non-printing characters that indicate controls within paragraphs such as end markers, spaces,
tab characters and so on.
formula
Can be used as part of some design objects to specify more complex parameters than can be
provided by dialog options.
Generate
The DOC1 batch program that processes production jobs on your chosen host system. It reads
information about the job requirements from a DOC1 HIP file, merges the input data file it
receives with your publication designs and produces output datastreams ready for printing or
presenting on your intended output devices.
governor field
Indicates the number of times data is repeated to a repeated data object.
hard return
Used to create a new paragraph by pressing the ENTER key.
header
An area at the top of a page or table containing any type of content. Can be specified to
appear only in certain conditions, for example, only on the first page.
417
Glossary – HIP
HIP
Created by a publishing task, a HIP file contains all the information and resources required for
a particular publication in the production environment. It also typically contains the
resources required to print/present the resulting output datastream on your intended output
devices.
host
Provides properties for the computer where the Generate program will be run.
HTML
Hypertext Mark-Up Language is used for displaying information on the web.
IJPDS
AN output format that is designed to be printed on the Scitex family of high speed ink jet
printers.
image
A graphics file used by design files.
indentation
The position of a paragraph in relation to the page margins.
indexes
The references used to assign data to chart elements in some types of charts.
in-line anchor
Anchor method that positions graphics as a character within paragraph text.
input data
The data file that is provided as input to a DOC1 job in the production environment.
insertion point
In the logic map, this indicates the object after which the next object will be added.
integer
A DOC1 data type. An integer with up to 9 digits.
418
Glossary – issue
issue
1. A status of a design object within the design repository. An issued object is currently active
and available for use when publishing a publication design.
2. A revision of a design object within the repository.
journal
A file that records the activity of a publication when it processes in the production
environment.
keycodes
The codes used to protect DOC1 software from unauthorized use. Various keycodes will be
issued to the user depending on their software and hardware configuration.
key field
In keyed record data this is the field that uniquely identifies each record type.
key map
Maps keys for keyed objects to the actual image or Active Content when using resources that
are in the Work Center.
If images are supplied externally, it maps keys to sample images for use when designing, with
the actual images being provided via an external control.
keyed object
Keyed objects provide a means of allowing content (Active Content) and images to be selected
dynamically at production time based on variable criteria or ‘keys’.
419
Glossary – keyed record data
legend
The key to the elements shown in a chart.
lines
1. Drawing objects that can be used in document designs.
2. The lines that connects two data markers in a line chart
3. Optional rules on some chart types that provides an additional scale reference.
line data
Organized text data with an implied structure that can be used by suitable input/output
software but which does not contain any actual controls within the data itself.
locale
DOC1 object that provides settings related to the customization of data and presentation
objects to take account of regional variations.
lock/unlock
In the DOC1 design repository resources that are being edited are automatically locked. They
are normally unlocked automatically but the user can choose to keep the lock when the
resource is not open.
logic map
An icon based view of the instructions you are generating as you add objects to a design.
logical page
DOC1 Generate produces logical pages within output datastreams. You can configure a job to
place multiple logical pages on a single physical page.
logo
A format of graphic used on Xerox printers where the image is stored as one or more font
characters.
420
Glossary – lookup table
lookup table
Keywords passed to a lookup table are replaced with the appropriate text string if a match is
found.
loop
Design object that queries an expression and continuously executes a logic map path until it is
no longer True or until a Break Loop is encountered.
mandatory records
Records in input data that must be included in every publication data set.
margin
The space around the edge of a page that is not available as part of the body area.
message
An object created and controlled by Message1 or Content Author.
message area
A logical area that defines the dimensions within which messages are designed in the message
applications.
messages file
The file (.HIM) containing Message1 or Content Author objects associated with a particular
campaign. It contains all the information and resources required for messages in a production
run.
message box
Reserves fixed space in a document for messages from a message application environment.
message stream
Allows messages from Content Author to be inserted directly into the flow of the page in the
DOC1 publication.
Message1
Message1 is an optional addition to DOC1 that allows key parts of a document – messages –
to be created and maintained outside the Work Center.
421
Glossary – Message audit trail
metacode
The output datastream used with Xerox Centralized printers. Also the name sometimes used
for printers using this datastream.
MVS
The previous name used for IBM’s z/OS mainframe operating system.
non-repeating data
Fields that typically appear only once in the input data for a single publication.
note
An object that allows you to provide commentary within a publication design.
number
A DOC1 data type, this is a decimal number with a maximum of 24 digits before the decimal
place and 8 after.
OpenType font
The OpenType font format is an extension of the TrueType font format, adding support for
PostScript font data.
orphan
A few lines at the end of a paragraph that are separated from the rest of the paragraph by a
page break.
output datastream
The main output of DOC1 applications. An output datastream contains the composed pages
in the low-level format suitable for your target printer/browser.
422
Glossary – output device
output device
In the DOC1 Work Center an output device object is used to indicate the output datastream
required by a particular job plus any device specific settings you may need.
outsorting
Splits the output from a single production job into multiple stream to support the needs of
post-printing equipment such as enveloping machines or similar.
overlay
An overlay is the term used by IBM for an electronic form. The Xerox equivalent of an overlay is
a form (FRM) file.
owner password
Protects the attributes assigned to a PDF file from unauthorized modification.
page check
A specialized version of a condition that allows you to query the current page number within a
document or section to see if it matches those specified.
page setup
A document design function that defines the page size, headers, footers, background and new
page logic.
paragraph
A continuos piece of text which can include graphics, images, text boxes anchored to it. Has
properties such as alignment, spacing, tabs.
parameter
A value passed into Active Content.
PCE
The DOC1 Post Composition Engine (PCE) handles the requirements of some applications for
additional processing once document pages have been composed.
PCL
A control language used to control printers or other output devices based on the Hewlett
Packard family of laser printers.
423
Glossary – PDF, PDF/A
PDF, PDF/A
Portable Document Format is a file based document format suitable for Internet distribution
and on-line viewing with a PDF viewer such as Adobe Acrobat Reader.
PDF/A is a subset of PDF that is suitable for long-term archiving.
physical page
An actual piece of paper on a printer.
PostNet
A type of barcode.
Postscript
A common page description language acceptable to many desktop printers and also,
increasingly, for high volume production printers.
PPML
Personalized Print Markup Language. This is an XML based page description language
developed for high speed output datastream generation.
preview
Runs the current publication through DOC1 Generate and displays the resulting output into
a window. This can then be sent to the local printer.
production job
The production settings associated with a publication as saved in the DOC1 Work Center.
project
Can be used to group design resources for organizational and access control purposes.
public
Property of some design resources indicating that they can be shared by multiple
publications.
424
Glossary – publication
publication
An assembly of one or more related documents.
Publication Editor
Where you specify the documents that make up a publication and define publication
properties.
publish
A task that prepares a DOC1 job for the production environment. It creates the HIP file used
by DOC1 Generate to control processing.
record
A segment of input data. A record is typically a line of data in the input file containing one or
more fields.
repeating data
A data element that is iterated within a single publication data set. Repeating data typically
contains transaction type information
repository
This stores and provides revision control for all the design resources and other objects that are
used in the DOC1 Work Center. These include resources that are created within the Work
Center itself or have been imported into it from an external source. The repository consists of
a filestore and a database.
reserved area
Only available on the background, it defines space on the page that cannot be overwritten by
content within the main document body which will flow around the reserved area as necessary.
425
Glossary – resource map
resource map
A tailored mapping of resources created by a publishing task. A resource map overrides the
default names given to the font and image files (and the references used to identify the
resources within an output datastream).
revert
This function allows you to restore to an earlier revision of a non-composite design resource.
revision
A version of a design resource.
RGB
Color model expressed as red, green and blue values.
rollback
This function allows you to restore to an earlier revision of a composite design resource.
row
Cells aligned horizontally within a table.
rulers
Measurement guides that can be shown at the top and side of the Document Editor.
sample data
An extract from intended job input data. This is used as a template for defining a data format.
scope
The level at which variable names are reserved. For example, a value in a variable with
Publication scope is available throughout an entire publication.
426
Glossary – section
section
A sub-set of logic map objects within a document design. You can reuse sections within the
same document.
segmented publishing
A term used where the publication design is published separately from the output device
configuration and resources. Any number of separate resource HIP files can be produced for
use with DOC1 Generate.
set
Provides categorization in some chart types.
shape
Lines, rectangles, rounded rectangles and ovals that can be drawn in a document.
sheet
An actual media page as used on a printer or produced by an electronic document format. A
sheet is the area on which the logical pages produced by DOC1 are placed.
soft return
Used to create a new line within the same paragraph by pressing the SHIFT + ENTER keys.
sort
In DOC1 terms, the reordering of repeating data prior to its use with a publication design.
spell checking
Verification of paragraph text using the dictionary of the assigned language.
static table
A regular table in a document design. It cannot contain repeating data.
427
Glossary – string
string
A DOC1 data type that can contain any alphanumeric characters can be used up to a limit of
32k characters.
substring
The substring function extracts one or more consecutive characters from within a text string.
symbol
A character that cannot be accessed directly from the keyboard.
system variable
Information from the production environment that can be included in publication designs,
for example current page number or date.
table
Aligns text and graphics in rows and columns or generally helps with positioning objects on a
page (as with most word processing tools). Can be a static table or a transaction table.
template
The package that contains the publication and the interactive sections of a document, ready
for use by the correspondent in EngageOne.
text box
Acts a container for specific page content and can contain both paragraph text and graphics.
Can be used to highlight particular content or as a reserved area which other paragraph text
can flow around.
time
A DOC1 data type for time values.
transaction table
Controls how repeating data is presented, i.e. how multiple iterations of the same repeating
data structure are ordered and how they are positioned in relation to one another.
TrueType font
An Windows outline font where the characters are scalable.
428
Glossary – unlock
unlock
See lock/unlock.
URL
Uniform Resource Locator – the global address of a document or file on the Internet.
user
An individual given a user name and password, enabling them to work in the DOC1
environment.
user exit
DOC1 user exits allow an application to call a user defined program function. DOC1 supports
user exit programs coded in either C. There are four types of user exit: data input, file, lookup
table and keyed.
user group
A list of users who share similar responsibilities. Groups are used for logical groupings of
multiple users and enable the administrator to manage a number of users at one time.
user password
Used to protect PDF documents from unauthorized opening in a PDF browser.
variable
Variables store values for subsequent use. They can hold values of any supported data type, but
each individual variable can only accept data of a single type.
value
Values in document designs can be provided by data fields, variables, system variables, the
output from functions or you can simply enter a constant.
Vault
The e2 Vault environment caters for high speed storage and retrieval of electronic documents.
e2 Vault itself is the main repository in which documents are stored and maintained. Various
other e2 products provide access to the repository.
vector offset
A reference to the start of individual composed documents within DOC1 job output.
VIPP
Variable Data Intelligent PostScript PrintWare. This is a PostScript based page description
language developed by Xerox for use with VIPP enabled printers.
429
Glossary – VPS
VPS
Variable Print Specification. This is a PostScript based page description language developed
by Scitex for use with VPS enabled printers.
VSAM
A data set structure used under z/OS.
widow
A few lines at the beginning of a paragraph that are separated from the rest of the paragraph
by a page break.
XML
XML – Extensible Markup Language – provides a common method of describing data for
internet and other applications. DOC1 supports XML as a format for input data.
zoom
Magnification used in an editor.
430
Appendix B – Formula expressions
Formulas can be used as part of some design objects to specify parameters more complex than
can be provided by simple value controls or as a more convenient way of coding compound
functions. For instance, you could create a complex statement for a condition such as:
SubStr(CN,0,1) = "V" And Pay > 35000
Or you might use a formula to code a calculation rather than using nested arithmetic objects:
(GrossPay - Deduction) * TaxRate
In the Advanced view of the Formula Type the formula directly Red text indicates that
dialog box you can use the various or use the function buttons part of the formula is
function buttons to help with coding in the Advanced view to incomplete or incorrect.
assist with the syntax.
the syntax.
Formula syntax
A Formula expression consists of a single statement. Compound statements are
allowed but assignments and program logic are not supported. All keywords plus data
and variable names are case sensitive.
Objects and functions are referenced using their name plus their type and a varying
number of other qualifiers. You may exclude some or all qualifiers (always working
left-to-right) where there is no possibility of duplication or ambiguity. For a data field
reference for example, you may have a fully qualified name of:
Data.MainDic.CustomerAddress.CityName
Provided 'CityName' is not used as a field or variable name elsewhere in the
publication design you may simply code:
CityName
431
Appendix B – Formula expressions
If the field name is used in another record of the same data dictionary you can code:
Data.MainDic.CityName
You may not code:
CustomerAddress.CityName
If a name contains spaces or characters used as part of the formula syntax itself the
entire name must be contained within single quotes. For example:
'Var.Pub.Current Rate'
Numbers 18.67
432
Appendix B – Formula expressions
Returns the current value held in variable Name. If Name is an array index must be
specified to indicate the element required.
Scope and Type may be used to identify the variable uniquely if duplication is possible:
Scope – indicates the defined scope of the variable.
Options are Job, Pub, Doc or Loc.
Type – indicates the data type of the variable.
Options are Counter, Num, Str, Date, Time or Currency.
Examples:
Var.Temp=Var.Job.Str.Addr[2]
Date(CDateString)
IsSet Var.Time.Tdate
Conditions
Comparison operators: When using a formula within a condition object the expression is evaluated using one
of the following operators and TRUE or FALSE is returned.
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
=
Equal to
<>
Not equal to
IsSet object returns TRUE if object is a data field that is available in the current data set or is a
variable currently in scope.
IsNotSet object returns TRUE if object is a data field that is unavailable in the current data set or is a
variable that is not currently in scope.
Examples:
Var.DayCode = 7
Data.Received > D'13/10/2003'
Var.Option <> ¨Gold¨
IsNotSet Var.CountR
Logical Operators: You may also use these operators within conditions to join expressions and return the
result. Note that any function that returns TRUE as its result (such as InRange, InSet,
Even, Odd) must specifically test for “= TRUE” when the function is used as part of a
formula using the logical operators.
AND returns TRUE if both expressions are TRUE
OR returns TRUE if either expression is TRUE
NOT returns TRUE if an expression is FALSE.
Examples:
Data.Tax > 10 AND IsNotSet Var.CountR
(System.InSet(Var.Code,312,315,317) = TRUE) OR
(System.InRange(Var.Code,320,350) = TRUE)
433
Appendix B – Formula expressions
Functional Operators Use these operators to perform calculations of input values. You may calculate dates
within the restrictions of the regular DOC1 arithmetic function. See “Date
calculations” on page 150 for details.
+ addition
- subtraction
* multiplication
/ division
% modulo (remainder)
Examples:
Var.Job.Str.Addr[2] + 10
SysVar.RunDate –¨2M¨
Functions The following functions can act on values supplied to a formula and return a value.
Use the qualifier System if necessary to ensure their name is uniquely identified.
Concat Concatenate multiple strings.
System.Concat(string1, string2...)
Returns the input strings as a single concatenated string.
Example:
Concat(¨Today is ¨,SysVar.RunDate)
System.Concat(Var.T1, Var.T2, Var.T3)
Even System.Even(counter)
Returns TRUE if counter is even.
Example:
Even(Var.MonthCode)
434
Appendix B – Formula expressions
Odd System.Odd(counter)
Returns as TRUE if counter is odd.
Example:
Odd(Var.Pub.Counter.Weekday)
SubStr Substring
System.SubStr(source, offset, length)
Returns a substring of string source starting at position offset and continuing for length
bytes.
Example:
SubStr(Var.FullAddress,1,20)
System.SubStr(RunDate,6,8)
Casting System.type (input)
Returns input converted to the specified data type where possible. Type can be:
Currency
Date
Counter – integer, a whole number up to 9 digits
Num – number
Str – string
Time
Note that, wherever possible, DOC1 will automatically convert data types to meet the
requirements of a function. You need only code explicit casting where there is
ambiguity. The format of the return value (from both explicit and implicit casting) is
based on the DOC1 locale that is active when the function is called. See “About
locales” on page 190 for more information. Use the qualifier System if necessary to
ensure the function is uniquely identified.
Examples:
System.Date(¨06/07/2005¨)
Num(Var.TCode)
Active Content
Blogic Call Active Content function.
BLogic.Name (parm1, parm2, …)
Returns the return value of Active Content function Name which is called with any
required parameters. See “Using Active Content” on page 237 for more information.
Example:
BLogic.GetRate(3) = Var.MaxRating
Param Accesses Active Content parameter.
Param.Name
Use only within an Active Content function itself. Returns the value of parameter
Name which must be a parameter passed to the function.
Example:
InRange(Param.Rating,1,5)
435
Appendix C – DOC1 Interchange Journals
A DOC1 Interchange Journal (DIJ) is an XML file that records information about the
documents within a DOC1 generated output datastream. Each record within a DIJ specifies a
unique key for each document, such as an account number. This can be used by other
products, such as e2 Vault or e-Messaging, as an index into the output datastream. Note that
each product will make use of a different set of DIJ options.
| To create a DIJ:
1. In the Document view, from the View menu select Publication
– or –
right-click in the logic map and select View Publication from the shortcut menu.
2. Double-click the Publication icon in the logic map and the Publication dialog box is
displayed. Select the Journals tab.
3. Select Create DOC1 Interchange Journal and click Edit DIJ. The Document Interchange Journal
dialog box is displayed.
4. Supply values for the required
parameters. L ALL VALUES ARE ADDED USING THE REGULAR
DOCUMENT EDITOR MECHANISM. SEE “WORKING
Note that if you wish to use the Address WITH VALUES” ON PAGE 106 FOR DETAILS.
or Pay Details tabs you must set
parameters in the Options tab first.
Data
These parameters are used to identify individual publications.
Account Number A unique reference number for the intended recipient of the publication (usually
an account number).
Name A name that uniquely identifies the publication.
Statement Date A date associated with the publication, such as creation date, date of usage.
436
Appendix C – DOC1 Interchange Journals
Address
Use this tab to provide the address data related to the account to which each document belongs.
The options available in this tab are specified in the Options tab.
437
Appendix C – DOC1 Interchange Journals
Custom Settings
You can use custom settings to pass additional document information that may be required. Each entry provides
you with a name and a value field for you to enter a user specified value to be included in the DIJ.
You must specify that the DIJ file is to be generated when the document is published.
438
Index
A Additional Resources
Publication Wizard 357
address block 146
Abort action 135 Address option 347
Abort on failure option 361 Adjust bottom anchor position option 304
Absolute line spacing option 147 Adjust right anchor position option 304
access control 383–387 advanced barcode mode 153
Account Management 205–207 advanced preview 286
actions 135 Advanced section of OPS 373
Abort 135 AFP 295, 297
Change border color 55 color options 296
Change fill color 55 embed overlay option 297
Change highlight color 234 GOCA options 297
Change locale 192 importing fonts 87
Change shade percent 55 indexing 197
Change side thickness 55 IOB option 297
Postscript DSC 236 overlays 54, 89, 90, 290
Print message 135 record length 297
Reset page number 135 resolution 291
Select input tray 235 resource mapping 341
Select output bin 235 After last occurrence object 186
Set customer ID 204 after text indentation of paragraph 40
Set message audit trail 204 aliases to data 74
Set variable 202 aligning
Simplex/duplex 235 characters 42
Active Content 85, 237–248 graphics 58
and EngageOne templates 237 text 38
creating 237, 238 Alignment of table option 327
editing 238 Alignment offset option 303
for EngageOne 209, 247 alignment offsets option 303
in conditional expressions 137 All option 188
interaction tab 247 Allow copying option 311
interactive prompts 243 Allow medium maps option 298
interactive settings 247 Allow modifications option 311
keyed objects 163 Allow notes option 311
languages 239 Allow printing option 311
managing change 405 Allow scaling options 292
page setup 239 Alternate left and right margins option 63
parameters 239 Always on odd page option 125
private 223, 243 anchors 50
properties 239 fixed 51
public 237 in-line 51
publishable property 247 AND logical operator 149, 433
publishing 344, 346 annotation bar 94
sample data 239 annotations 211, 216
snapshots 403 adding 216
using as a function 240 editing 216
Active Content groups 237, 243 ANSI carriage controls 300
adding Active Content references 244 Applet URL option 322
adding private Active Content 244 application server setup 401
creating 244 DOC1 Application Service 402
making conditional 246 SQL Server Connection 402
properties 243 arithmetic 148
show when option 246 At End of Page group 117
Active link color option 319, 325 At Start of Page group 116
Active on next page option 235 attributes of shapes 52
addition 149 audit trail, Message1 204
439
Index B
440
Index D
441
Index D
442
Index E
443
Index G
444
Index I
445
Index L
446
Index N
memory limit N
publishing wizard option 360
menus 28
Merge with previous paragraph option 46 named pipe option 361
merging paragraphs 46 native binary data type 266
merging table cells 69 native underlining 292
message areas 199 Negative option 109
Message audit trail 370 nested repeating groups
message box 199 setting default values 218
message data fields 202 nesting tables 83
message environment file 198 New control object option 187
Message leading option 200, 201 New publication option 27
message library 368 next shape 61
message signals 202 No applet message option 320
message streams 201 non-breaking space 34, 36
Message1 198–204 non-printable areas 62
message areas 199 non-printing characters 36
message box 199 non-repeating data 74
previewing 204 NOT logical operator 433
Message1 286 notes, comments in logic map 96
publishing 204 Number of columns option 77
resolving data fields 202 Number of fields in repeating group option 270
system variables 161 Number of repeats option 270
Messages Number of repeats to show in editor option 188
OPS settings 371 Number of rows option 77
messages numbered lists 43
error, warning 97 numbers 107
for Generate 364 data type in keyed record data 266
information 25 formats 109
messages file
specifying in OPS file 368 O
messages option 360
Metacode 300 objects
color options 302 – see also graphics
forms 90 aligning 58
overlays 54, 89, 290 deactivating 95
resolution 291 distributing 59
resource mapping 341 On error with publication data set option 358
Method for underlining option 292 ONLINE JDE 300
MIBF 334 Online PCC option 302
resolution 291 OpenVMS
Minimize image creation running Generate 380
AFP 296 Operating system option 347
PostScript 307 OPS file 349, 363
Minimum length option 109 Optimize for printing option 302
minimum value 170 Optimize for rendering option 320
minor ticks per increment 170 Optional message error option 361
Minus option 149 Optional messages system variable 161
Mode OPS keyword 369 OR logical operator 149, 433
Mode option 350 Order option 110
Modulo option 149 orientation of a page 63, 124
Month option 110 orphan lines in a paragraph 44
Most significant byte RDW 253 OS/400
moving generating AFP output 296
graphics 57 running Generate 381
logic map objects 95 otherwise path in conditions 141
objects within projects 387 output 309
MSB binary data type 266, 267 output bin 235
MSB ordered RDW 253 Output code page option 307
multi-document template EngageOne 228 output comments 236
multiple output datastreams 102 output datastreams 288–333
Multiply option 149 creating font and images resources 288
selecting 102
447
Index P
448
Index Q
449
Index S
450
Index S
in transaction tables 188 Shrink box height to fit content option 199
modifying to preview repeating group entries 229 sign overstruck data type 266
publication attribute 99 signals 202
selection on preview 286, 287 simplex printing 235
with publication designs 185 Simplex/Duplex action 235
saving 393 size of page 63
scaling of charts 170 size of shapes 52
scatter charts 182 small segments in pie charts 180
schema 255, 271 soft return marker 36
searching logic map 96 Sort option 187
Second separator option 110 sorting data 81
sections 124 Source type option 314
using locales 192 spacing
segmented resources 364 between lines 38
Select all option 30 between paragraphs 38
Select input tray action 235 in repeating data 188
Select output bin action 235 spanning headers and footers
selecting columns 132, 133
objects 29, 56 tables 80
output datastreams 102 special characters 47
text 29 Special option 109
selection criteria tab spell checking 36
Active Content group 244 spell dictionary
Send backward option 61 publication attribute 99
Send to back option 61 spell settings 37
Separator between values option 196 spelling history 37
separators 110 spot color 233
Server Mode 363, 368 SQL Server Connection 402
Command Queue 361 stack charts 172
OPS settings 372 standard barcode mode 152
Publication Wizard 361 start of job journal 100
System Commands 361 start of page 116
Set customer ID action 204 start of publication record 101, 251
Set input/output on host option 349, 354 for XML 271
Set language option 35 identifying 262
Set message audit trail action 204 Started Task 363
Set parameter value action 241 static tables 67
Set variable action 202 string data type 265
sets in charts 171, 172 strings 107
Settings tab 291 trimming 259, 265
Shade using white option 320 structure of data 251
shading structured journals and EngageOne 197
shapes 52 Structured XML Journals 196
tables 70 EngageOne 222
shapes Style sheets option 320
attributes 52 styles
drawing 52 character 142
error handling 358 Subject setting 100
moving 57 substring function 435
positioning 51 substrings 159
resizing 57 subtraction 149
sharing design resources 103 Supported output streams 102
sheet 288 Suppress messages option 359
Sheet size option 293 symbols 47, 377
Short date option 109 synchronization 103
shortcut key 28 Synchronize with open files option 104
shortcuts, keyboard 28 Synchronize with referenced files option 104
show history of resources 392 system data dictionary 281
show resources used 391 system variables
Show when option 45 as function values 160
with Active Content groups 246 formula expressions 432
show with relationship in paragraphs 47
Active Content group 244
451
Index T
T Trace
OPS settings 370
trace output file
tab character marker 36 publishing wizard option 360
tab stops tracing logic problems 365
character 42 transaction counts in tables 81
default 42 transaction tables 67, 76
dot leader 42 balanced columns 79
inserting 41 presentation columns 79
leader 42 transactions 78
setting 42 transparent fill, shapes 52
Table column overflow system variable 71, 161 Treat as RTF option 109
table of contents 207 Trial run only option 277
Table page overflow system variable 71, 161 Trim spaces option 109
Table Wizard 68 true condition path 139
tables 67–73 tumble printing 235, 293
adding rows, columns and cells 69 Two digit year conversion option 260
balanced columns 79 Type option 265, 347
borders 70
counting 81 U
creating 68
editing 69
headers and footers 71 underlining options 292
spanning 80 undo an editing action 31
inserting new pages 73 units for charts 170
merging cells 69 units of measure 28
nesting 83 UNIX
positioning 68 running Generate 380
presentation columns 79 Until new page option 188
rounded corners 70 UOM 28
shading 70 Update mappings option 276
spanning headers and footers 80 URL links 49
static 67 Use extended medium map option 298
totals 81 use HIP font mapping option 361
transaction 67, 76 Use location defaults option 109
template file for EngageOne 209 Use non-HPGL/2 commands option 304
text 33–49 Use table to position output option 326
aligning 38 user passwords 309
direction 34 users 383
entering symbols 47 creating 384
find and replace 31 deleting 384
flow around objects 59
formatting 33 V
hyphenating 36
indentation 39
inserting in a document 33 Valid document flag system variable 161
keep together 33, 34 value objects
positioning 38 find and replace 31
rotating 42, 56 values 106–114
runaround properties 59 assigning to variables 114
selecting 29 casting 111
text boxes 19, 54, 62 finding 31
text viewer 256 formatting 108
threshold value in pie charts 180 in Active Content 242
tilting in input data 251
bar and stack charts 175 replacing 31
pie charts 179 variable size field 266, 267
time data type 107 variables 112
Title 99 creating 112, 113
Toggle grid option 29 deleting 114
toolbars 27 finding 31
totals in tables 81 formula expressions 433
in Active Content 240
452
Index W
warning messages 97
When placed using constant values 358
When placed using variable values 358
When shape is positioned off page 358
white space management 125
widow lines in a paragraph 44
width
of shape 58
table cell 69
Windows
fonts and images 87
importing fonts 88
input language 34
running Generate 380
Word 97 compatible option 313
Work Center Manager 21, 85
workflow 18, 86
Workspace option 348
453