5.21.6 CREATE
The CREATE command reads the specified spool file and creates the PDF document.
Each spool file page will cause a new PDF page to be created. Use appropriate font size, leading and printer file options to fit the spool file page on a single PDF document page.
A spool file of 132 columns and 57 lines per page can fit on an A4 landscape page using a font size of 8 and leading of 8.5.
To accommodate the large number of keywords, a working list can be used to pass a list of keywords. Create a working list with two fields, the first field containing the keyword and the second field containing its value. Add an entry for each keyword required. Any keyword specified directly on the command will take precedence over a corresponding keyword entry in the working list. Refer to the examples to see how this works.
Syntax:
Command |
Keyword |
Value |
Developer notes |
CREATE |
DOCUMENT |
value |
Required. File path. |
NAME |
value |
Required. Spool file name. |
|
NUMBER |
integer |
Required. Spool file number. |
|
JOBNAME |
value |
Required. Spool file job name. |
|
JOBUSER |
value |
Required. Spool file job user. |
|
JOBNUMBER |
value |
Required. Spool file job number. |
|
PASSWORD |
password |
Optional. A password can be associated with the generated PDF file to restrict the opening of the document. The password is case sensitive. |
|
MASTER |
password |
Optional. If a master password is associated with the PDF document, this password must be supplied before you can set or change security settings. The master password is case sensitive. |
|
AUTHOR |
value |
Optional. A text string to indicate the author of the PDF document. |
|
TITLE |
value |
Optional. A text string to be used as the title of the generated PDF document. |
|
SUBJECT |
value |
Optional. A text string to indicate what the generated PDF document is about. |
|
KEYWORDS |
value |
Optional. One or more words can be supplied to assist with searching for a PDF document. Keywords can be looked at as categories you can use to group similar or related documents. |
|
CREATOR |
value |
Optional. A text value to indicate who created the PDF document. |
|
ENCODING |
*HPT |
Default. Use automatic host print transform conversion. |
|
*CSF |
Use automatic copy to stream file conversion. |
||
Code page |
Use specified code page for stream file conversion. |
||
FONT |
*AUTO |
Default. Auto select font. |
|
*COURIER |
Courier (Cp1252). |
||
*COURIER2 |
Courier (Cp1250). |
||
*COURIER3 |
Courier (Cp1257). |
||
*COURIER4 |
User defined true type font. |
||
*MINCHO |
Japanese HeiseiMin-W3. |
||
*GOTHIC |
Japanese HeiseiKakuGo-W5. |
||
*MTSANSWT |
Monotype Sans Duospace WT. |
||
*MTSANSWTIN |
Monotype Sans Duospace WT IN. |
||
*MTSANSWTJ |
Monotype Sans Duospace WT J. |
||
*MTSANSWTJEA |
Monotype Sans Duospace WT J EA. |
||
*MTSANSWTK |
Monotype Sans Duospace WT K. |
||
*MTSANSWTKEA |
Monotype Sans Duospace WT K EA. |
||
*MTSANSWTME |
Monotype Sans Duospace WT ME. |
||
*MTSANSWTSC |
Monotype Sans Duospace WT SC. |
||
*MTSANSWTSCEA |
Monotype Sans Duospace WT SC EA |
||
*MTSANSWTTC |
Monotype Sans Duospace WT TC. |
||
*MTSANSWTTCEA |
Monotype Sans Duospace WT TC EA. |
||
*MTSANSWTTCTWEA |
Monotype Sans Duospace WT TC TW EA. |
||
*MTSANSEXTB |
Monotype Sans Duospace Ext B. |
||
*THRNDWT |
Thorndale Duospace WT. |
||
*THRNDWTJ |
Thorndale Duospace WT J. |
||
*THRNDWTK |
Thorndale Duospace WT K. |
||
*THRNDWTME |
Thorndale Duospace WT ME. |
||
*THRNDWTSC |
Thorndale Duospace WT SC. |
||
*THRNDWTTC |
Thorndale Duospace WT TC. |
||
*SIMSUN |
Simplified Chinese. |
||
*DFKAISB |
Traditional Chinese. |
||
*MINGLIU |
Traditional Chinese and HKSCS. |
||
*BATANG |
Korean. |
||
*COURIERNEW |
European. |
||
FONTSIZE |
numeric |
Optional. The font size in points. |
|
LEADING |
numeric |
Optional. Allows you to control the blank space before each line in the PDF document. |
|
PAGES |
n,n |
Optional. A comma separated list of single page numbers and/or page ranges. |
|
PAGETYPE |
*TEXT |
Default. Generates pages in text format. The FONT, FONTSIZE and LEADING keywords control the text output. |
|
*IMAGE |
Generates pages in TIFF G4 format. The SCALING keyword controls the percentage scaling of the image. |
||
PAGESIZE |
*A4 |
Default. The page size for the generated PDF document. |
|
*A0 to *A10 |
|
||
*B0 to *B5 |
|
||
*LETTER |
|
||
*HALFLETTER |
|
||
*LEDGER |
|
||
*LEGAL |
|
||
*NOTE |
|
||
width, height |
Custom size. |
||
SCALING |
n |
The percentage scaling to be applied to the generated page image. |
|
MARGIN |
left, right, top, bottom |
Optional. Page margins are the blank space around the edges of the page. |
|
ORIENTATION |
*PORTRAIT |
Default. Page orientation. |
|
*LANDSCAPE |
|
||
APPEND |
*YES |
Optional. Append the created spooled file pages to the existing document |
|
*NO |
Default. |
ENCODING – Code page values:
Cp37
Cp273
Cp277
Cp278
Cp280
Cp284
Cp285
Cp297
Cp420
Cp423
Cp424
Cp500
Cp838
Cp870
Cp871
Cp875
Cp880
Cp905
Cp930
Cp933
Cp935
Cp937
Cp939
Cp1025
Cp1026
Cp1112
Cp1122
Cp1123
Cp1130
Cp1140
Cp1141
Cp1142
Cp1143
Cp1144
Cp1145
Cp1146
Cp1147
Cp1148
Cp1149
Cp1153
Cp1154
Cp1155
Cp1156
Cp1157
Cp1158
Cp1160
Cp1164
Cp1371
Cp1388
Cp1399
Cp4971
Cp5026
Cp5035
Example
CREATE DOCUMENT(/folder/file.pdf) PAGES(4-5) PAGESIZE(*A4) FONT(*COURIER) ENCODING(*CSF) ORIENTATION(*LANDSCAPE) #WRKLST(PDFKEY,PDFVALUE)