48
Create Forms
3/6/14
2-154
merging with a data file) and enter one of the following values in
the –or- field:
*DFT
Indicates that spool file pages that do not have a
^FILNM command (or files created when merging
with a data file) will be assigned a name based on
the conversion date and time. Default names use the
format:
DOCUMENT NAME+USER NAME+YYYYMMDDHHMMSSXXXXXX
where Y=Year, M=Month, D=Day, H=Hour,
M=Minute, S=Second, X=Millisecond.
*PATH
The file name is included at the end of the path.
This applies to a path that is taken from a spool data
location (or from the Data Field name if merging
with a data file) or a constant path entered in the
IFS Path field (see above). Be aware that if a
constant file name is keyed at the end of a constant
path, the constant file name will be applied to the
first PDF file created. Subsequent PDF files will be
named with the default date/time stamp.
NOTE: If embedded ^FILNM commands are found,
each embedded file name will be appended to the
end of the path without removing the previous file
name(s). It is recommended that *PATH not be used
if ^FILNM commands are embedded in a spool file.
Name
Key a file name to place spool file pages without an
embedded ^FILNM command (or files created
when merging with a data file) in a file with this
name. For output type *IFS, the filename may be up
to 15 positions long. For output type *QDLS, the
filename may be up to 8 positions long.
If a constant file name is used and:
*YES is entered in the Overwrite field, the constant
file name will be applied and the file will be
overwritten (contents replaced) each time a new PDF
file is created. *YES is the only overwrite option for
QDLS files.
*NO is entered in the Overwrite field, the constant
file name will be applied to the first file created and
subsequent PDF files will be named with the default
date/time stamp each time a spool page without an
embedded ^FILNM command (or a file created when
merging with a data file) is converted.
51
Form Commands
3/6/14
2-155
or
When merging with a spool file, key a Return Field value from a
DTEXT command already defined in the form in the Data Field to
retrieve data from a data file. Press F4 to see a list of available
values.
Overwrite Whether or not to overwrite (replace the contents) an existing file
if a new file is created with the same name.
*NO Do not overwrite the file. Apply a default file name to
new files that would otherwise have the same file name
as an existing file. Default for *IFS. *NO is not valid for
QDLS files.
*YES Overwrite a file if a new file is created with the same file
name. *YES is the only option for QDLS files.
Optional
An optional value used to create new documents. When a value
Break
is encountered in the spool data location specified here (or the Data
Field specified if merging with a data file) it will signal the
conversion process to create a new PDF document.
Use as
The optional break value can be applied as a prefix to the filename
File Pfx
to ensure a unique output destination. The prefix can be applied to
a constant file name or to a file name taken from a spool data
location (or a data field when merging with a data file). It cannot
be used when the file name is taken from a ^FILNM command or
when *PATH or *DEFAULT is entered as the value in the
Filename field.
N
Do not use the optional break value as a file name prefix.
Y
Use the optional break value as a file name prefix. A default
filename based on a date/time stamp will be applied if using
the optional break as the file name prefix will result in
filename duplication.
Retain
Whether or not to use the last known output destination to convert
Destination a spool page (or data file record) without a specified destination.
*N0
If a destination is not available for a spool page (or data file
record) do not convert the page.
*YES Convert any spool page (or data file record) without a
destination and place the converted file in the last known
output destination.
Retain Destination and Optional Break:
If Retain Destination is set to *YES when using the Optional Break
feature AND the current spool page (or data file record) does not
contain a value in the location defined in the Optional Break field
C# Word - Word Conversion in C#.NET Word documents in .NET class applications independently, without using other external third-party dependencies like Adobe Acrobat. Word to PDF Conversion.
delete text pdf; how to erase text in pdf
30
Create Forms
3/6/14
2-156
THEN the last known optional break value will be used. The last
known optional break will continue to be used until a new optional
break value is encountered in the spool file.
If Optional Break is set to *NO and the scenario described above
occurs, an optional break will not be applied.
Retain Destination=*YES and embedded commands
When Retain Destination is *YES and a spool data location is
indicated in the Filename field and ^FILNM commands are
embedded in the spool file, a ^FILNM command will be applied to
the page it appears on and every subsequent page until:
•
a valid filename is retrieved from the spool data location listed
in the Filename field OR
•
a new ^FILNM command is encountered OR
•
an ^END command is encountered.
When an ^END command is encountered, subsequent spool file
pages will not be converted until a new ^FILNM command is
encountered or a valid file name is found in the spool data location
indicated in the Filename field.
Page Down to display the next screen.
Output Type Whether the converted files will be output to the IFS, QDLS or a
database file. If *IFS or *QDLS are changed to *FILE, a new
screen is displayed and a database file, library and member must be
supplied. If *FILE is changed to *IFS or *QDLS a new screen is
displayed and an IFS path and file name must be entered.
42
Form Commands
3/6/14
2-157
Password
If a password is entered here users must enter the password to open
a converted file. Passwords are case sensitive and can be up to 30
positions in length.
To take passwords from the spool file, key the spool data location in
the Line, Pos, Len fields (or the Data Field name if merging with a
data file) and *YES (delete) or *NO (do not delete) in the Del field.
To use the same password for all files, key a password up to 30
positions in length in the -or- field.
Compression Whether or not converted PDF files should be compressed. This
field must contain a value of *YES to use the password feature.
*NO Compress the file.
*YES Do not compress the file. Requires a value in the
password field.
Image Type The type of PDF image to create.
*TEXT
Create a searchable text PDF file. Currently the only
supported option.
*IMAGE Create an image based PDF file. Not currently supported.
Save PCL Whether or not to save the PCL file used to create the PDF file.
Output
Used primarily for trouble shooting.
*YES Save the PCL file.
*NO Do not save the PCL file.
Include
Whether or not to include copies created during the merge process
Copies
in the converted files. If copies are converted they will be
converted as separate documents and a value of CXXXX (where
XXXX is the copy number) will be appended to the end of the
PDF file name.
*YES Convert copies.
*NO Do not convert copies.
Log File
You can opt to create a log file for troubleshooting.
0 Do not create a log.
1 Create a general log.
2 Create a PDF code log.
3 Create a PCL code log.
C# Excel - Excel Conversion & Rendering in C#.NET Excel documents in .NET class applications independently, without using other external third-party dependencies like Adobe Acrobat. Excel to PDF Conversion.
how to delete text in pdf preview; how to copy text out of a pdf
34
Create Forms
3/6/14
2-158
PDF for Output Type *FILE
PDF parameters for output to a System i database file are as follows:
Merging with a spool file:
Spool Data Spool data location fields are used to specify the spool file location
Location
of data used during PDF file creation. The following information
must be provided in order to extract data from the spool page:
Line
Line number on the spool page
Pos
Starting position on the spool page
Len
Number of positions occupied by the data
Reps
The number of lines to search when data is on multiple lines.
(The Reps field is not always applicable).
Del
Whether or not to delete the data from the spool file after
it is processed.
*YES = Delete *NO = Do not delete
or
Name
A value entered in a name field will be used for every PDF created.
Use this only for data that will not change from PDF to PDF
Merging with a data file:
Data Field When merging with a data file, press F4 to display a list of data
file fields and select the one to use for PDF file creation.
or
Name
A value entered in a name field will be used for every PDF created.
Use this only for data that will not change from PDF to PDF
55
Form Commands
3/6/14
2-159
Output
Whether the converted files will be output to the IFS, QDLS or a
Type
database file.
*IFS
Send converted files to the IFS. If *FILE is changed to
*IFS, a new screen is displayed and an IFS path and file
name must be supplied.
*QDLS Send converted files to QDLS. If *FILE is changed to
*QDLS, a new screen is displayed and a path and file
name must be supplied.
*FILE Send converted files to a System i database file.
Database
Converted files will be output to the database file indicated in this
File
field unless there is a ^FILNM command on the spool page. (See
^FILNM, below.) Key the spool data coordinates (or the Data
Field name if merging with a data file) or enter a database file
name.
Database
Converted files will be output to the database file in the library
Library
indicated in this field unless there is a ^FILNM command on the
spool page. (See ^FILNM , below.) Key the spool data coordinates
(or the Data Field name if merging with a data file) or a value.
Name
Key a specific library name.
*LIBL Search all libraries until the first match with the
database file is found.
Database
Converted files will be output to the database member indicated in
Member
this field unless there is a ^FILNM command on the spool page.
(See ^FILNM , below.) Key the spool data coordinates (or the
Data Field name if merging with a data file) or a value.
Name
Key a specific member name.
*FIRST
Output converted files to the first member.
*OPTBRK Use the value in the Optional Break field. The Use
as File Mbr field must contain a Y.
^FILNM
A ^FILNM (file name) command can be output in any position on
Command a spool file page to indicate the library, file and member. A
^FILNM command will take precedence over the destination
parameters described above.
The embedded file name command must be in the format
^FILNMLLLLLLLLLLFFFFFFFFFFMMMMMMMMMM^
where positions 1-10 (including blanks)are the library name,
positions 11-20 (including blanks) are the file name and positions
21-30 (including blanks) are the member name. The name must be
preceded by ^FILNM and followed by a ^ .
50
Create Forms
3/6/14
2-160
Create File Whether or not to create the database file if it does not already exist.
*NO
Do not create the database file.
*YES
Create the database file.
Optional
An optional value used to create new documents. When a value is
Break
encountered in the spool data location specified here (or the Data
Field if merging with a data file) it will signal the conversion
process to create a new PDF document.
Use as File The optional break value can be used as the member name
Mbr
in the database file. It cannot be used when file, library and
member are taken from a ^FILNM command.
N
Do not use the optional break value as the member name.
Y
Use the optional break value as the member name. Key
*OPTBRK in the Database Member field. A default
filename based on a date/time stamp will be applied if
using the optional break as the file member will result in
filename duplication.
Retain
Whether or not to use the last known output destination to convert
Destination a spool page (or data file record) without a specified destination.
*NO If a destination is not available for a spool page (or data file
record)do not convert the page.
*YES Convert any spool page (or data file record) without a
destination and place the converted file in the last known
output destination.
All 3 parts of a database file destination, file, library and
member, are considered to make up the destination.
For example, Retain Destination=*YES and a library, file
and member are extracted from page 4 of a spool file.
a.
The same library and file are extracted from page 5 but
the member spool data location on page 5 is blank. The
member will be retained from page 4 and page 5 will be
converted and included in the member retained from
page 4.
b.
The same file and member are extracted from page 5 but
the library extracted from page 5 is different. Because the
library changed this is considered a new destination and
page 5 will not be included in the same member as page 4.
A new member will be created.
38
Form Commands
3/6/14
2-161
c.
The same file is extracted from page 5 but the library
extracted from page 5 is different and the member spool
data location on page 5 is blank. This will cause an error
and the page will not be converted.
Retain Destination and Optional Break:
If Retain Destination is set to *YES when using the Optional Break
feature AND the current spool page (or data file record) does not
contain a value in the location defined in the Optional Break field
THEN the last known optional break value will be used. The last
known optional break will continue to be used until a new optional
break value is encountered in the spool file.
If Optional Break is set to *NO and the scenario described above
occurs, an optional break will not be applied.
Retain Destination=*YES and embedded commands
When Retain Destination is *YES and a spool data location is
indicated in one or more of the destination fields (file, library and
member), and ^FILNM commands are embedded in the spool file,
a ^FILNM command will be applied to the page it appears on and
every subsequent page until:
•
a valid value(s) is retrieved for the File, Library and Member
fields that contain spool data location coordinates OR
•
a new ^FILNM command is encountered OR
•
an ^END command is encountered.
When an ^END command is encountered, subsequent spool file
pages will not be converted until a new ^FILNM command is
encountered or a valid value(s) is retrieved for the File, Library
and Member fields that contain spool data location coordinates.
Page Down to display the 2
nd
PDF command screen. (See page 2-157 for
information about screen 2 of the PDF command.)
26
Create Forms
3/6/14
2-162
PIE - Pie Chart
The PIE command generates pie charts from constant or variable data extracted from a data file.
To generate a pie chart from constant data, enter the data to be represented in the pie chart and
legend. To generate a pie chart from variable data, define the form to be merged with the data
file. Then define variable fields from the file for the different options in the pie chart definition.
This command is only valid for printers supporting the GL/2 printer language.
PIE parameters are as follows:
Across
Distance from the left edge of the page to the center of the pie
chart.
Down
Distance from the top edge of the page to the center of the pie
chart.
Diameter
Distance from the left edge of the pie chart to the right edge of the
pie chart.
Value
Amount to be used for each wedge. Enter a value or
Wedge 1-7
a percentage of the whole pie chart. Press F4 to display a list of
fields if merging with a data file
Key *OTHER in any one wedge value to have the difference
between all values and the total calculated and used for that wedge.
Documents you may be interested
Documents you may be interested