Documente Academic
Documente Profesional
Documente Cultură
Table of Contents
Chapter 1: Introduction
14
24
35
41
44
46
52
9.1 Controlling ScriptServer PDF Broker with the Services Tool ..........................52
9.2 Viewing ScriptServer PDF Broker Logfiles .....................................................53
9.3 ScriptServer for OpenVMS Compatibility........................................................54
9.4 ScriptServer PAN Compatibility ......................................................................55
Chapter 10: Creating Desktop Printers
58
Chapter 1: Introduction
1
1.1 About ScriptServer PDF Broker Software
The ScriptServer PDF Broker is a software product that allows a network server to provide PDF
conversion services on behalf of network clients. It can also convert PostScript print data
streams and distribute the resulting PDF files via e-mail, copy to folder (whether local or a
network share), and/or post-process either the PostScript or PDF files by executing user-defined
commands.
Printing clients include the ScriptServer PAN Printing System and ScriptServer for OpenVMS,
which are separately licensed products from GrayMatter Software Corp., and virtually any
generic PostScript source over TCP/IP, including printer data streams from all versions of
Windows, and the various flavors of Unix, including Linux. ScriptServer PAN and ScriptServer
for OpenVMS are integrated with the PDF Broker so that information can be passed to it that can
be used to manipulate the PDF file produced.
How It Works
ScriptServer PDF Broker software is implemented as a Windows service that listens for
connections over TCP/IP. It can receive data from any PostScript-compatible printer driver,
which is operating as though it were connected to a network printer. The PostScript data
received is written to a temporary file and Acrobat Distiller or Ghostscript is used to convert the
PostScript language page descriptions to PDF format. The resulting file is then distributed
according to the way the particular routers associated with the conversion are defined.
Routers are used to determine how the PDF file is to be named and distributed. A router can
distribute based on the port over which the PostScript file was received, or based on certain
PostScript comments embedded in the PostScript data streams header. See Chapter 4 for more
information about setting up electronic distribution modes for your documents.
PDF Broker Editions
In order to provide the greatest amount of flexibility for our customers, ScriptServer PDF Broker
is licensed in three editions: Desktop, Standard, and Professional. Throughout the documentation
for PDF Broker software, the following symbols will be used to denote the version required for a
given feature:
The Desktop Edition provides basic PDF conversion functionality at an affordable
entry-level price. It includes support for port-based routing, event logging, emailing
PDFs, and saving PDF files to a folder.
The Standard Edition adds the following feature support to the Desktop Edition:
comment-based routing, job processing with command scripts, placeholder data
substitution, user-defined substitution data, and security profiles for PDFs.
The Professional Edition adds the following feature supported to the Standard
Edition: the Special Case router, data lookup tables, TransFormat support, PDF file
splitting, and TransFormat passthrough fields.
Details on the differences between the three editions, along with pricing information, can be
found in the document EditionComparison.pdf in the PDF Broker installation folder.
Features
Chapter 2: Installation
2
2.1 Before Installing the Software
You must install the PDF conversion software (Adobe Acrobat or Ghostscript) before using the
ScriptServer PDF Broker.
Using Adobe Acrobat
The component of Acrobat that converts PostScript print data to PDF is called Acrobat Distiller.
The name of the program is acrodist.exe, and it is normally installed into the path (in this case,
assuming the Acrobat version is 6.0):
C:\Program Files\Adobe\Acrobat 6.0\Distillr\Acrodist.exe
Acrobat affords extensive control over the PDF file conversion process in the form of job options
files. ScriptServer PDF Broker allows you to specify which job options file is to be used. Acrobat
provides several sample files that create PDF files suitable for particular purposes, such as for
viewing at screen resolution, laser printing, and pre-press applications.
Using Ghostscript
The Ghostscript installers for Microsoft Windows are available for free download from the
GrayMatter Software FTP site at the following URLs:
32-bit: ftp://ftp.graysoft.com/gpl/Ghostscript/win32/gs854w32-gpl.exe
64-bit: ftp://ftp.graysoft.com/gpl/Ghostscript/win64/gs914w64-gpl.exe
The name of the program is gswin32c.exe (for 32-bit) or gswin64c.exe (for 64-bit), and it is
normally installed into the path (in this case, assuming the Ghostscript version is 8.54):
C:\Program Files\gs\gs8.54\bin\gswin32c.exe
2.2 Installation
ScriptServer PDF Broker installer can be downloaded over the Internet with the following URL:
ftp://ftp.graysoft.com/pdfbroker/SPB_V5_0_0.exe
Once the installer has started, you will see the Installers welcome screen. Clicking on Next >
will bring up the license agreement window. You must accept the terms of the agreement to
continue with the installation.
!
License agreement screen
The installer will now display the contents of the ScriptServer PDF Broker ReadMe file.
Review the information that is displayed and click the Next > button to display the installation
location screen.
Enter, or browse for, the location that the software is to be installed into. The default location of
Program Files\GrayMatter Software\PDF Broker 5 on the boot drive is appropriate for most
installations. If this folder does not exist, you will be prompted for whether it should be created
for you.
If you are upgrading from PDF Broker 4, the installer will check to see if there are PDF Broker
archives in their default location. If it finds them there, it will display the following message:
Select the installation options desired and click Next to present the Ready to Install screen. If you
are satisfied with the answers you have provided, click on the Install button to proceed.
!
Ready to Install screen
!
Installer progress screen
After all of the ScriptServer PDF Broker software files have been copied to their destinations, the
Installer will display the Quick Start Guide. This document is also copied to the installation
directory, so it may be viewed after the installation process has completed (using Start >
Programs > ScriptServer PDF Broker > Quick Start Guide).
The installation is now complete; the installer now displays the following window.
At this point, the ScriptServer PDF Broker Service is ready to be configured. This is done with
the PDF Broker Settings application and is discussed in the following chapter.
Chapter 3: Settings
3
3.1 The PDF Broker Settings Application
Since ScriptServer PDF Broker software runs as a Windows service, it does not have a user
interface to control its operation. Instead, you use the PDF Broker Settings application to
manipulate the registry settings that control it. The PDF Broker Settings application can be run
from the Programs > ScriptServer PDF Broker > PDF Broker Settings entry in the Start menu.
The first time you run the PDF Broker Settings application, it displays the following welcome
window:
!
PDF Broker Settings application welcome window
This gives you an opportunity to display the on-line reference material by clicking the Help
button.
Clicking the Continue button displays the Settings window, which has three tabs: Settings, Email, and License. When you are setting up ScriptServer PDF Broker software the first time, you
must provide information on each of these tabs.
If you are upgrading from version 4.0 or 4.1 of ScriptServer PDF Broker software, the archives
database must be updated to handle optimizations implemented in version 4.2. When you run the
PDF Broker Settings application the first time after upgrading, you will be prompted to update
the database with the Archives Database Updater utility:
!
Click the Launch Updater button to use the Archives Database Updater utility to update the
archives database to the new format.
This radio button is used to select the conversion utility: Acrobat Distiller or Ghostscript.
Distiller/Ghostscript Path
The Distiller/Ghostscript path is used to specify the location of either the Acrobat Distiller
application or the Ghostscript program. Click the Browse button to specify the conversion
programs location.
The ScriptServer PDF Broker uses a work folder to hold the temporary files used in the creation
of PDF files. The default value is the folder named Work in the Application Data folder.
However, you may use a different folder provided that the ScriptServer PDF Broker service has
write access to the folder.
Job Options file (Acrobat Distiller only)
Acrobat Distiller uses job options files to control the various aspects of how PDF files are
created. You can select a job options file that is provided with Acrobat that is appropriate for the
type of PDF files you want to be created, or you can create a new job options file with the
Distiller application and provide the path to that file here. The default location for job options
files is in the folder \Program Files\Adobe\Acrobat\Distillr\Settings\.
PDF Settings (Ghostscript only)
This pop-up menu allows you to specify the target medium (Default, Screen, Ebook, Printers, or
Prepress) for the PDF files generated. Screen generates the most compact PDF files, Prepress
provides the greatest fidelity, and Default provides a tradeoff between the two. The following
table summarizes the effect of the PDF Settings on the key individual conversion parameters.
Setting
Default
Screen
Ebook
Printer
Prepress
Auto-rotate pages
PageByPage
PageByPage
All
None
None
Leave unchanged
RGB
RGB
Device
independent
Leave unchanged
Downsample images
no
yes
yes
no
no
Downsampling technique
Subsample
Average
Bicubic
Bicubic
Bicubic
Generate thumbnails
no
no
no
no
yes
Embed fonts
yes
no
yes
yes
yes
72
72
150
300
300
300
300
300
1200
1200
This menu allows control over the automatic detection of page orientation within a job converted
by Ghostscript: All enables automatic detection, None disables it, and PageByPage handles it on
a page-by-page basis.
E-mail Errors to
When a conversion error (such as a PostScript error) or a routing error (such as an invalid e-mail
address) occurs, ScriptServer PDF Broker sends an e-mail message to the address provided here.
Default Service Port
This determines what port is used to provide the PDF conversion service for client-mode
conversions and comment-based routers. Unless it conflicts with another application or service,
the default value of 8899 should be used, since it is the default value used by clients.
Event Logging Level
This setting controls the amount of logging performed by ScriptServer PDF Broker software to
the error log. For normal operation it should be set to Errors and Information messages.
Job Timeout
This slider allows control of the maximum length of time that the ScriptServer PDF Broker will
wait for a PDF file to be converted and distributed according to the router(s) used by the job. If
the job processing takes longer than the timeout period, the job will be terminated.
Connection Limit
This slider controls of the maximum number of connection that can be active simultaneously on
each router port. This lets you set a ceiling on the amount of load placed on the server during
periods of heavy activity. When the number of active connections reaches this limit, PDF Broker
will stop accepting connections until the active connections drops below this value.
Server address
Provide the name of the e-mail server to be used to send outgoing (SMTP-based protocol) mail.
You may use either its DNS name or its address in dot-notation.
Port
Provide the port number to be used when connecting to the e-mail server. The default port for
SMTP servers is 25.
Username and Password
If your e-mail server requires authentication information to send messages, provide the username
and passwords to be used here.
Clicking this button allows you to test that your email setting are properly configured.
E-Mail Message Defaults Fields
These fields allow you to specify default values to be used for Sender, Subject, Cc address(es),
Bcc address(es), and message text for the e-mails sent by the ScriptServer PDF Broker. These
values can be overridden on a per-router basis (for those routers using an e-mail disposition). If
the router-specific value is (use default), the values are taken from those provided here.
Specify a TCP/IP port number over which to provide network access to the archives. Unless it
conflicts with an existing service port, we recommend that you use the default value of 8890,
since it is the default port when configuring servers in the client application.
Session Inactivity Timeout
This setting controls the length of time that a connected client can be inactive before the session
is terminated by the server.
Authentication Settings
PDF Broker Archives Server uses several security features to control access to the contents of
PDF Broker archives. All communications between server and client are encrypted using a
combination of the Shared Secret (similar to the technique used in VPN software) and a sessionspecific seed. When configuring access to a server in the PDF Broker Archives application, the
user must provide the same Shared Secret as that used on the server or the connection will fail
with an Invalid shared secret error.
Once a client has successfully connected (i.e. the shared secret is correct), you can optionally
require that the user provide a valid Windows username and password to access the archives. To
require logon credentials, check the Require Windows-based user authentication checkbox.
The PDF Broker Archives application has the ability to save logon credentials and archives
access passwords on the client computer. These credentials are stored in encrypted format in the
users Preferences file. (The encryption seed is specific to the user, so the credentials in a users
Preferences file cannot be used to gain access if copied to another users account.)
To prevent users from being able to store access credentials in the PDF Broker Archives
application, uncheck the Allow clients to store access credentials checkbox.
Note
If an archive uses the Active Directory security model, the users Windows logon credentials are
required to authenticate the user against the archive. If you use the Active Directory security
model on an archive, you must check the Require Windows-based user authentication
checkbox to allow access to those archives.
Message Logging Level
This setting controls the amount of logging performed by ScriptServer PDF Broker software to
the error log. For normal operation it should be set to Errors and Information messages.
Logfile Rention
This setting controls the length of time PDF Broker software will keep logfiles. Older logfiles
are automatically deleted as new ones are created.
Start Date
This is the first day that the ScriptServer PDF Broker software will run.
Expiration Date
This is the last day that the PDF Broker software will run.
MAC Address
This controls the maximum number of routers that will be enabled by the PDF Broker service.
Modules
The license key is an encrypted checksum that verifies the other information on your license key.
Import Key Button
A license key can be entered manually or imported from a license file, which has a .slky
extension.
Chapter 4: Routers
4
The main window of the PDF Broker Settings application displays a summary of the currently
defined routers, which describe how you want PostScript files to be processed as they arrive over
the network.
modified router
selected router
router error
service status
The checkbox in the Enabled column must be checked for a router to be activated. The
Router column provides a brief description of the routers function, and the Using column
indicates the TCP/IP port number or PostScript comment used by this router.
!
The Edit Router window showing a port-based router
When ScriptServer PDF Broker starts receiving a print job, it parses out the PostScript comments
(if any) that it sees in the PostScript header. It then scans the list of active routers, looking for
those whose criteria match the characteristics of the incoming job. During this process it
constructs a list of the matching routers that will be used once the PostScript data has been
convert to a PDF file.
After the conversion process, the action (called the disposition) associated with each of the
matching routers is performed. Note that any number of routers may match a particular incoming
job, allowing you to set up numerous time-saving steps with a single printing process.
%%SSV_Queue (the ScriptServer queue name; not part of the Adobe specification)
%%SSV_Form (the ScriptServer form name; not part of the Adobe Specification)
These comments define a character string that is used by the ScriptServer PDF Broker software
for comparison to values that you provide when setting up a comment-based router. They are
also provided as placeholders, which may be used in a router definition to use the data provided
by the comment. For example, the $title placeholder refers to the value of the %%Title comment.
See the Placeholder section below for further information.
A Comment-Based Router
In this example, the router will place the PDF files created from PostScript files that have a title
comment (%%Title) that contains Invoice into the archive Invoices.
4.4 Dispositions
After conversion to PDF, the actions associated with the routers that match the job are
performed. First, the PDF file must be given a meaningful name, which can be one of the
following as specified in the router:
document title (from the %%Title comment)
the current date and time
a fixed name
One of the following actions can be associated with a router to be performed on the PDF file:
e-mail
copy to a particular folder
post-processing (using a DOS command or batch file)
archive (see the following chapter)
This allows you to specify values for passthrough fields that can be referenced using the
$passthrough placeholders. These can be used to extract data from the print job to manage the
disposition of the router. In the example here, it creates the placeholders $passthroughname1
with a value of CustomerName and $passthroughvalue1 with the result of a table lookup of the
documents title. See the discussion of placeholders later in this chapter for more information.
Note that since router-based passthrough data is processed at the start of a job, the file-related
placeholders ($ps, $pslong, $pdf, $pdflong) cannot be used in router-based passthrough
references.
Terminate router scan on match checkbox
This checkbox is used to prevent the PDF Broker service from scanning beyond this router for
further matches.
!
E-Mail Options Window
All fields support placeholder substitution (see below). If a fields value is (use default), the
default broker-wide values are used, which are established in the Edit Settings > Email tab from
the router list window. The example above demonstrates the substitution of a purchase order
number, which is presumed to be the title of the document, for the $title placeholder in both the
subject line and the body of the message.
4.8 Placeholders
When creating dispositions for routers, it may be convenient to refer to the values that are used
by ScriptServer PDF Broker software so that they can be used in e-mail messages or MS-DOS
batch command files (see example above).
ScriptServer PDF Broker uses placeholders as a way to refer to these values. The PostScript and
PDF files and each of the comments for a job can be referred to using the appropriate
placeholder:
Placeholders can be used to refer to the value they represent in any e-mail field, such as the
subject line or the body of the message. They can also be used in the post-processing command
line.
For example, suppose you want to set up routers that e-mail the PDF file to someone and to print
it to a network printer. You can set up the e-mail router so that the subject line informs its
recipient of the document name using the subject Attached is the $title document. The $title
in the subject line will be replaced with the value of the %%Title comment found in the
PostScript file. The second router that performs the printing could define the post-processing
command as:
lpr P lp S laser1.mydomain.com $ps
The $ps in the command will be replaced by the name of the PostScript file when the
command is executed. The P and S options tell lpr the printer name and address of the server.
The $ps placeholder gives it the name of the file to print.
The Edit menu (in both the Edit Router and Email Options windows) contains an Insert
Placeholder command as a convenience for insert placeholders.
Using the $field placeholder
This placeholder function allows you to extract substrings from another string, such as those
referred to by placeholders. Its format is:
$field(string,delimiter,occurrence)
Where string is the source string, delimiter is the character that separates substrings, and
occurrence is the field number to extract. This is convenient for extracting information encoded
in a filename. For example, suppose a printed document is named PO_180338_73620_1.TXT. In
this example 180338 is a P.O. number and 73620 is a vendor number. The P.O. number
could be extracted from the filename as follows:
$field($title,_,2)
Note that for the placeholder to be parsed correctly, if the string or delimiter contains commas or
parentheses, it should be enclosed in double-quote characters.
!
A Special-Case Router
The special-case router is a comment-based router, which is based on the comment %%Routing,
which has a non-blank value. This is the only situation where a comment can be compared to a
non-blank value. When creating a router with these criteria, the e-mail destination of the
disposition becomes the $routing placeholder, indicating that the value of the %%Routing
comment will be used.
Note: For security purposes, ScriptServer PDF Broker software does not perform placeholder
substitution on the command or application name portion of the post-processing command; only
the parameters can contain placeholders. Also note that the working directory used during the
processing of the command is the work folder as specified in the PDF Broker Settings
application.
To use the UserData feature with ScriptServer for OpenVMS, you use the special parameters
ROUTING and USERDATA with the PRINT command on the DCL command line. Using the
previous example, the command would be:
These examples illustrate the use of a special-case router that has the placeholder $userdata in
the message text definition.
User Data Fields
then the substitution string for the $userdata placeholder would be the entire string Betty Jones|
(555)243-7208. The substitution string for the $userfield1 placeholder would be Betty Jones,
and the substitution string for the $userfield2 placeholder would be (555)243-7208.
Both split fields and passthrough fields are handy ways to transfer information to the PDF
Broker to do data lookups in the PDF Broker Lookup Database. See chapter 8 for a discussion of
the data lookup feature in PDF Broker software.
As of version 4.4 of PDF Broker software, you can now associate passthrough data with routers
using the Router Options window.
Chapter 5: Archiving
5
ScriptServer PDF Broker 4 introduces the archiving disposition as a fourth alternative for
electronic distribution of the PDF files created. Archives are created in the PDF Broker Settings
application using the Data > Archives > New... menu command.
To enable archiving, simply create a router that uses the disposition place file in archive, then
select the name of the archive in the pop-up menu.
On Windows 2008 Server and later, the default archives folder will be:
C:\ProgramData\GrayMatter Software\PDF Broker Persistent Data\Archives
As archives are created, the top level folder for the archive is stored in this folder, and archive
subfolders are created automatically as needed. The database file is Archives.sqlite in the
archives folder.
As documents are archived, they are assigned a unique ID based on the current date. The PDF
files themselves are stored using the unique ID as the filename, and are stored in proper
subfolders in the archives folder. The information associated with the PDF file, known as
metadata, is stored in the archives database along with a preview image of the first page of the
document.
This organization allows the actual documents within archives to be manipulated using standard
file manipulation commands and utilities. The documents can also be backed up based on their
dates, and obsolete documents can be physically deleted.
user data - the value of the %%SSV_UserData comment, like the $userdata placeholder
routing - the value of the %%Routing comment, like the $routing placeholder
queue - the name of the ScriptServer PAN queue that generated the print data (where
applicable)
form - the name of the ScriptServer PAN form used to generate the print data (where
applicable)
!
With the exception of document previews, the properties on this window cannot be changed once
the archive has been created. To save disk space, document previews can be removed from an
existing archive using the Archives Database Updater utility.
Clicking the Next > button brings up the Archive Security window:
!
Archive Security Models
PDF Broker Archives are created using one of three security models: password-only, local
administrators, and Active Directory. All three security models support password-based access to
the contents of archives. The local administrators security model supports access to local
administrators without having to provide a password. The Active Directory security model
provides access to those Active Directory users and groups that have specifically been
authorized.
To authorize a particular user or group, select the user or group on the left hand pane and click
the Add button. To toggle the display between users and groups, click the Display Users/Groups
button. In the above example, a group named PDF Broker Archive Users has been created by the
Active Directory administrator for the purpose of controlling access to the contents of the PDF
Broker Archives. With a setup like this, users can be added and removed from this group as
needed without having to modify archive security settings.
In some cases, it may be desirable to have the archives reside on a different disk or in some other
location. Moving the archives consists of the following steps:
1.
2.
3.
4.
To change the location (step 3) of the archives, select Archives > Change Location from the
Data menu in PDF Broker Settings. In the resulting file selection window, navigate to the new
archives folder location, and select the Archives.sqlite database file.
6
ScriptServer PDF Broker uses security profiles to control what can be done with the PDF files it
creates. A security profile contains a modify password, an open password, and a set of
permissions that control access to the document when it is opened by a PDF viewing application,
such as Adobe Acrobat, Adobe Reader, or Apples Preview utility.
The modify password can be thought of as the owners password to the file. It is required to
change the permissions associated with the PDF documents created with the profile. It is a
required element of the profile because it is used as part of the encryption key. (ScriptServer PDF
Broker always uses 128-bit encryption when profiles are used.) When a PDF file is accessed with
the modify password, the permissions do not apply.
The open password can be thought of as the end-users password to the file. If present in a
profile, will be required to view the contents of the PDF documents created with the profile.
The permissions apply to end-users (viewers) of the PDF document. They control the access to
the contents of the PDF documents created with the profile as follows:
Permission
Meaning
Allow printing
Allow modification
Allow inserting, deleting and rotating allows document assembly changes, including
pages
adding, deleting, and rotating pages, creating
thumbnails, and creating bookmarks, even if Allow
modification is not enabled
Allow access for users with disabilities
The PDF Broker Settings utility is used to manage your security profiles. To create a profile, use
the Edit > New Security Profile command. It will prompt you for a profile name, and then
display the profile editing window:
Security Profile Editing Window
Once a profile has been created, it can be associated with a router. To associate a router with the
profile, double-click the desired router, then select the profile from the Security Profile pop-up
menu:
Security profiles are stored in the Windows registry. When you change a profile, the registry is
updated immediately. If the ScriptServer PDF Broker service is running and you want the to start
using the new or modified profile immediately, it must be re-initialized using the Service >
Reinitialize command.
7
The PDF Broker Assistant is a Windows taskbar application that provides convenient display of
the status of the PDF Broker service and one-click access to controlling the service and PDF
Broker settings.
The PDF Broker Assistant is an icon in the lower right corner of the display, showing an icon and
a colored bubble that indicates the current service status.
!
Assistant Icon in Task Bar
The PDF Broker Assistant provides a context-sensitive menu that is displayed by right-clicking
on its icon in the task bar. The commands that are available in the menu will change depending
on the current state of the service.
!
The Assistants Contextual Menu
Mousing over the Assistants icon in the taskbar provides a text description of the services status
in a tooltip:
!
Assistants Service Status Tooltip
The icon in the task bar changes according to the current state of the service. The following table
lists the meanings of the various icons:
Service is idle
!
The Assistant program is named pdfbrokerassistant.exe, and is located in the directed created
when the software is installed. By default, the full path is:
C:\Program Files\GrayMatter Software\PDF Broker\pdfbrokerassistant.exe
During installation of ScriptServer PDF Broker software, a shortcut (.lnk file) is automatically
placed in the Startup directory of the installation account, e.g.:
C:\Documents and Settings\Administrator\Start Menu\Programs\Startup
To automatically start the Assistant in another account, make a shortcut in its corresponding
Startup folder using option-drag.
8
8.1 Introduction
PDF Broker has the ability to import data into a database for subsequent lookup by router
processing. Comma-separated value files (.csv) can be imported using the PDF Broker Settings
application. The information is saved into a table in the PDF Broker Lookup Database.
You can then define lookups, which identify a table in the database, the column to be used to
lookup a value, and the column containing the value to be returned. This provides a method to
use information contained in a placeholder, such as the username in the %%For comment (the
$for placeholder), to return other information, such as the email address for that user.
Lookups are also very useful when used in conjunction with a TransFormat project that defines a
field, such as Customer ID, that is used as a passthrough field. Up to three passthrough fields can
be made available as placeholders in a PDF Broker router using the $passthroughvalue1,
$passthroughvalue2, and $passthroughvalue3 placeholders.
TransFormat projects can also define a split field, which is used to break a multiple-document
batch print job into individual PDF files with PDF Broker. As with any placeholder, the split
field can also be used as an argument to a lookup using $splitfieldvalue.
Lookups are performed within the PDF Broker using the $lookup placeholder, which is in the
format:
$lookup(lookup-name,key-to-lookup)
where lookup-name is the name of a lookup that has been created in the PDF Broker Settings
application, and key-to-lookup is the value to be looked up in the table, generally a placeholder.
!
Import CSV file Dialog
The CSV file format supports the ability to use the first line of the file as column headings. If this
is the case, check the First row is column headings checkbox.
By selecting a Primary key for the table, you can optimize lookups based on that key. In the
example above, it is likely that the first column, User Name, will be used as the lookup column,
so it is a good candidate for the primary key. The constraints on the Primary Key are established
using the checkboxes Must be unique (can only occur once in the column) and Must not be
null (must have a value).
Constraint handling determines how records that cause errors during import will be handled.
Setting
Behavior
the new record (with a non-unique or null value) is ignored and the
import continues
the import is aborted and the records that were imported will be
kept in the table
the import is aborted and the database is rolled back to its state
before the import
Re-Importing Data
You can re-import data from files that have been updated with modifications since the previous
import. When a file is first imported, the location and name of the file that was imported is stored
in the lookup master database. When you use the Data > Re-Import Lookup Data > {table-name}
command, the application will attempt to open the same file as the original import. If it exists, it
will confirm that you want to re-import the data from the same file, or give you the opportunity
to specify a different file to import. If the original file doesnt exist, you will have a chance to
specify a different file to import, or to cancel the operation.
!
Displaying Tables in the Lookup Database
The data in a table can be reviewed in the Contents tab. Select the table to be viewed in the popup menu at the bottom of the window to view its contents.
!
Lookup Table Contents Display
!
Edit Lookup Window
Select the table that the lookup is to be performed on, the Key Column that is searched for the
value, and the Return Column for the value to be returned. The behavior when a lookup error
occurs is controlled at the right of the window.
Take an example where the e-mail destination for a router needs to be lookup up in a table
containing user information. The Microsoft Windows printer driver for PostScript printers will
automatically place the username of the user printing a document in the %%For comment of the
PostScript header. This makes it available to routers as the $for placeholder. Once the user
information has been imported into the PDF Broker database, the lookup user-email was created
to return an email address from the username. In the disposition for the router to process these
jobs, the email destination address is set to the value:
$lookup(user-email,$for)
In this example, consider a batch print job of monthly statements that are created on a legacy
system and printed to a ScriptServer PAN system implementing a TransFormat resource in a
PAN form. This TransFormat project defines a field named CustomerID, which always appears
in a fixed location on the page. Since this is a batch print job, it contains all of the statements for
each of the customers and needs to be split into separate PDF files to be emailed by PDF Broker.
The CustomerID field is defined as the TransFormat split field for this purpose. As it is being
processed by PAN, when the value of the CustomerID field changes (i.e. one customers
statement ends and the next one begins), PAN starts a new print job to the PDF Broker. As with
passthrough fields, split fields are made available to PDF Broker software as a comment in the
PostScript header generated by PAN, which is in turn made available as a placeholder to PDF
Broker routers.
The PDF Broker software must now convert the CustomerID fields value to an email address.
The value of the CustomerID split field is available to the router as the placeholder
$splitfieldvalue, which must be looked up in the Customer table in the PDF Brokers Lookup
Database. In this example, $splitfieldvalue is looked up in the Customer table using the lookup
Customer-email, which returns the email address. In the disposition for the router to process
these jobs, the email destination address is set to the value:
$lookup(Customer-email,$splitfieldvalue)
9
The ScriptServer PDF Broker is managed using the standard Windows programs in the
Administrative Tools menu. The Services program may be used to view the current state of the
service, and to start, stop, pause, and resume it. (Note that these functions can also be performed
from the Service menu in the PDF Broker Settings application.) The Event Viewer program is
used to view any messages generated by the ScriptServer PDF Broker service.
!
The ScriptServer PDF Broker Service in the Services Administrative Tool
ScriptServer PDF Broker software will work with all versions of ScriptServer for OpenVMS
when used with port-based routers. ScriptServer for OpenVMS version 6 has modifications to
generate DSC-compatible PostScript comments and is required to be compatible with commentbased routers.
To create a ScriptServer for OpenVMS queue that sends PostScript data to the ScriptServer PDF
Broker, it must be created:
to send to the port used by the intended router(s) or the default service port (8899 by
default)
backchannel must be disabled
PCL support must be set to none
TCP/IP protocol should be set to HP
Setting Up ScriptServer for OpenVMS V6 Compatibility
In version 6 and later, all of the settings required can be configured with the "BROKER" network
protocol, which will configure all of the above settings with one logical name. For example, to
configure the a queue to send data to a ScriptServer PDF Broker running on a machine at address
10.0.0.1, define the logical name:
$ DEFINE/SYS SSV$10.0.0.1_TCPIP_PROTOCOL BROKER
Version 6 also allows you to specify a port number in the /ON qualifier of the INIT/QUEUE and
START/QUEUE commands. (Prior versions required you to define a TCPIP_PORT logical
name; see below.) For example:
$ INIT/QUEUE/PROC=SSV$SMB/LIBR=SSV$DEVCTL/ON="10.0.0.16:9110" MYQUEUE
In earlier versions, you must set up the individual logical names to make a queue compatible
with ScriptServer PDF Broker. The following DCL commands show a sample queue named
PDFROUTE1 being created to send data to a router that is setup to listen on port 9112 on the
Windows Server running ScriptServer PDF Broker at IP address 192.1.1.12:
$ DEFINE/SYS SSV$192.1.1.12_BACKCHANNEL_SUPPORT FALSE
$ DEFINE/SYS SSV$192.1.1.12_TCPIP_PROTOCOL HP
$ INIT/QUEUE/START/ON="192.1.1.12"/PROC=SSV$SMB -
$_ /LIBR=SSV$DEVCTL PDFROUTE1
If you want to be able to use comment-based routers with ScriptServer OpenVMS, version 6 is
required. This version provides the following additional support for ScriptServer PDF Broker:
$ PRINT/PARAM=ROUTING="router-data" myfile.txt
This parameter allows you to pass routing information directly to ScriptServer PDF Broker in the
form of a "%%Routing" PostScript comment. With a suitably configured router (i.e. "Incoming
data has the comment %%Routing which is not blank" and "e-mail the file to [ Routing
destination ]"), you can specify the e-mail address for the ScriptServer PDF Broker to send the
PDF file to.
$ PRINT/PARAM=USERDATA="userdata" myfile.txt
This parameter allows you to pass user-defined information directly to ScriptServer PDF Broker
in the form of a "%%SSV_UserData" PostScript comment. This is a ScriptServer-specific
PostScript comment designed to provide information as a placeholder. The placeholder $userdata
can then be used in e-mail subjects, body text, or as parameters to a post-processing command.
Using Both PRINT Parameters Simultaneously
To conform with DCL parsing rules, when you want to use both the ROUTING and USERDATA
parameters, you must use parentheses to enclose the list and commas to separate. For
example:
$ PRINT/PARAM=(ROUTING="jdoe@mydomain.com",USERDATA="Call me at 555-9876.") myfile.txt
To create PAN queues for processing by ScriptServer PDF Broker in router mode (PAN version
1.5.2 and later):
Log onto the PAN browser interface (this will require the Administrator privilege).
Navigate to the queue creation screen (PAN Administration > Manage queues > Create
queue).
After providing a name for the new queue, set Communications style to PDF Broker
This has the following effect (which must be set manually on prior versions, as follows):
set Color support to Yes
set Duplex support to No
set PS support to Level 3
The ScriptServer PAN Printing System (version 1.4 and later) has a built-in ScriptServer PDF
Broker client. To configure ScriptServer PAN to use ScriptServer PDF Broker whenever it needs
to create a PDF file, stop ScriptServer PAN in the browser interface (PAN Administration >
Utilities > Start/stop PAN), then open the configuration screen (PAN Administration > Utilities >
Configuration).
Near the bottom of the screen you will find a pop-up menu for PDF Conversion Mode. Select
PDF Broker in this menu, and set the PDF Broker Host field to the TCP/IP address of the
Windows computer running the ScriptServer PDF Broker service. If ScriptServer PDF Broker is
configured to use a non-standard TCP/IP port (in the PDF Broker Settings application), enter the
value in the port number in the PDF Broker port field.
!
ScriptServer PAN Configuration screen
Click the Save button to save the changes to the configuration, then restart ScriptServer PAN.
10
ScriptServer PDF Broker is used by creating printer queues that act as though they are
communicating with a TCP/IP-based PostScript printer. In this chapter we will provide step by
step instructions on how to create queues on Windows and Mac OS X. For details on setting up
print queues with the ScriptServer Printing Systems, please see chapter 5.
!
Starting the Add Printer Wizard from Printers & Faxes Window
To start, click on the next button and then select Local printer attached to this computer
(Do not check the Automatically detect ... checkbox.)
!
Select Local Printer Option
Check the Create a new port and select Standard TCP/IP Port from the scroll down menu.
!
Create a New, Standard Port
This will open the Add Standard TCP/IP Printer Port Wizard Window. To continue, click on the
Next button.
!
The Add Standard Port Wizard
At this point you need to enter the ScriptServer PDF Broker IP address and the Port Name. A
descriptive naming convention is recommended if you are planning on using a number of routers
performing different tasks. This example uses Broker as a port name and the port that has been
assigned to the broker.
!
Providing IP Address and Port Name
!
Using Custom Settings for the Port
This will present the Configure Standard TCP/IP Port Monitor. On this window:
Select Raw protocol.
Confirm that the Port Name and IP address you set up earlier (step 6) is correct. In this
example we are using port 9100 as the router setting for the task and Printer name or IP
Address for the location of the ScriptServer PDF Broker installation.
To complete, click on the OK button.
!
Providing the Port Number
This brings you back to the Add Standard TCP/IP Printer Wizard. Click Next.
!
Click Next to Complete the Wizard
You have now set-up a ScriptServer PDF Broker printer driver on your workstation. To complete
the set-up, click on the Finish button.
!
Finishing the Add Port Wizard
This will bring up the Install Printer Software window. Select your printer manufacturer and
printer. Note! Make sure that you install the PostScript (not PCL) driver. Click Next. In the
example below we selected HP as the Manufacturer and the HP LaserJet 4/4M Plus PS 600
printer. This will provide a printer driver that outputs PostScript files for the ScriptServer PDF
Broker to convert to PDF files.
!
Selecting a PostScript Printer Driver
At this point a window called Use Existing Driver will open. Select Keep existing driver (the
default and recommended option). Click Next.
!
Keep Existing Driver Screen
It is now time to name the printer. We recommend using a naming convention that describes the
function provided by ScriptServer PDF Broker. Each driver/router performs a specific task and
the name should communicate this task to the users for easy selection. To proceed, click Next.
Note about Printer Sharing: Unless you are an administrator we recommend that you do not
share this printer. If a printer is set up as Shared on a Windows Server it will be available to users
with auto discovery in the Add printer wizard.
At the Print Test Page screen, select YES or NO and then click on Next.
!
Test Page Screen
Your new ScriptServer PDF Broker printer on port 9100 should now be available in Printers and
Faxes on the start menu. The ScriptServer PDF Broker router is now ready to perform the
specific task it was set-up to do from any application.
!
Completing the Add Printer Wizard
!
Starting the Add Printer Wizard
In the first screen (above) of the Add Printer wizard, select Add a local printer and click the
Next button.
!
Choose Printer Port Option
Select the Create a new port option and select Standard TCP/IP Port from the popup menu.
!
Specify TCP/IP Address
The Add Printer wizard then presents the window to specify the TCP/IP address. Enter the
hostname or IP address of the computer running PDF Broker software. Uncheck the Query the
printer ... checkbox.
Windows will then attempt to detect the TCP/IP port. This procedure will timeout after about a
minute:
!
Attempting to Detect the TCP/IP Port
After the wizard times out, the following screen will ask for further information:
!
Providing IP Address and Port Name
!
Setting the PDF Broker Port Number
This will present the Configure Standard TCP/IP Port Monitor window. On this window:
Select Raw protocol.
Enter the port number for the PDF Broker router you want this Windows printer to
communicate with. In this example we are using port 9110 (the default PDF Broker router
port) as the router to receive print jobs sent to this printer.
Leave the SNMP Status Enabled checkbox unchecked, and click the OK button.
!
Selecting a Printer Driver
This brings you to the window where you must select a printer driver. Select a print driver for a
color-capable PostScript printer. In this example, we are using an HP Color LaserJet 2800
Series PS driver. The PS indicates that this is a PostScript driver.
Next you will provide a name for the new printer and click Next:
!
Provide a Name for the New Printer
You now have the opportunity to specify sharing options for the new printer. If you plan on
sharing this printers with other workstations in your network. select the Share this printer ...
option and specify a Share name for the printer.
!
Specifying Sharing Options
Finishing up, you can select whether you want to set the new printer as the default, and whether
you want to print a test page. If PDF Broker is running and the router associated with this printer
is configured, you should try to print a test page.
You have now set-up a ScriptServer PDF Broker printer driver on your workstation. To complete
the install, click the Finish button.
!
This will start the Print Setup Utility and display the following window:
!
Select these values for the new printer:
in the Protocol pop-up menu, select HP Jet Direct - Socket
in the Address field, enter the IP address of the computer running ScriptServer PDF
Broker software, followed by a colon (:), followed by the port number to use. If this
printer will be sending data to a comment-based router, use the default service port
(8899, by default), otherwise, use the port number of the port-based router
leave the Queue field blank
in the Name field, enter a descriptive name of the router being used
in the Print Using pop-up menu, select Generic PostScript printer