Configure Meta Queues in the Meta Input Module

Prev Next

Applies to: Lasernet Core 10

To allow Lasernet Meta to connect to Lasernet Core, a Meta Input Queue must be running. Configure the queues type in the Meta Input properties.

Queues

In the Queue tab you can add and administer a list of queues that will be available for the users running the Lasernet Meta application. For each queue you can add a list of fields by using the toolbox. Each field, depending on type, can have a set of properties.

Add a new queue

In the above screen shot we have already added five queues with icons and a list of Meta fields.

Click the Add button in the Queues tab section to add a new queue.

General tab

Type in a queue name and select one of the pre-defined icons from the icon list or you can click the browse button to select one of your own icons from a folder. Recommended icon format is 64 px. Other formats will automatically scale to fit the required icon size.

Conversion – server-side

In the Conversion tab you define parameters for converting PostScript to PDF on the server-side.

The Meta Input module has support for running an executable file from a command line. A tool like GhostScript is recommended for converting PostScript to PDF and can be used as a third-party converter. Lasernet Group does not sell or support GhostScript and the software must be downloaded, installed and maintained by the end-user.

Example of running GhostScript 9.16 from a command line:

"C:\Program Files\gs\gs9.16\bin\gswin64c.exe" -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE#pdfwrite -sOutputFile#%2 -dCompatibilityLevel#1.4 -c .setpdfwrite -f%1

You can set up different conversion parameters for each queue if required (see GhostScript documentation for more information about supported parameters). The parameters defined on a queue and will have higher priority than defined in the general settings for the module.

Note

The conversion parameters can also be defined and is recommended to run in the Lasernet Meta application on client site and then leave the conversion settings in the Meta Input module empty. This way you can convert the documents locally instead of at server side. The Lasernet Meta application is bundled with a PDF converter, which can convert EMF to PDF. When using the converter bundled with the Lasernet Meta application there are no requirements for installing and running third party tools for converting documents into PDF.

Properties

A range of parameters can be defined for each queue. The properties are used to specify the name and icon of the queue, allow attachments, specific document types, preview options and converter settings on the server-side.

Allow attachment Enable attachments for queue. The user will be able to attach additional files to the primary job.
Allow Autofill Autofill functionally has been configured for queue. The Autofill function requires that PDF data can be converted to a text format and automatically recognize the field data. The Lasernet Core Input Management solution is recommended to be used for auto filling of fields.
Extensions List of allowed attachment extensions, like .pdf, .docx etc. Click … button to open the String Collection Editor. Insert the strings in the collection (one per line). Empty list (default) means any extension is allowed.
Icon Click … button to pick up an icon for the queue from a folder. Recommended icon format is 64 px. Other formats will automatically scale to fit the required icon size. If you double click on the queue, in the left window, you can also select one of the predefined icons.
Name Name of queue.
Preview Queue can be used for preview only.
PS2PDF Optional conversions settings for converting PostScript to PDF via a shell command.
Server-side Print data will be converted on server-side.

Fields

Select a queue for which you want to design a list of fields. The fields with values are used for adding Meta data to the incoming job. The toolbox includes the following tools: Header, Checkbox, TextBox, NumericUpDown, ComboBox, MemoBox, File and Separator.

Drag and drop the tools from the toolbox to the selected queue window in the order you want them to appear in the Lasernet Meta application. You can order or remove them afterwards with the Move Up, Move Down and Remove buttons.

The tools are used for customizing the fields and the properties in the Lasernet Meta application.

Header

A label text for a section of meta fields.

Label The text associated with the field.
Name Name of Field.
Tooltip Optional tool tip for header.
CheckBox

A square box that can contain white space (False) or a tick mark (True).

Checked Optional default check state.
Label The text associated with the field.
Name Name of Field.
Read only Field cannot be edited by user. Possible values are False (default) and True.
Remember value Remember last used value. Possible values are False (default) and True.
Text Optional default text.
Tooltip Optional tool tip for checkbox.
TextBox

A single-line text box that can contain a string with default 256 characters.

Label The text associated with the field.
Name Name of Field.
Read only Field cannot be edited by user. Possible values are False (default) and True.
Remember value Remember last used value. Possible values are False (default) and True.
Text Optional default text.
Tooltip Optional tool tip for text field.
Validation Optional rules for validating contents of field. Click … button to open the Validation dialog. Regular Expressions and JavaScript are supported for setting up validation rules.
NumericUpDown

A control that represents a numeric textbox that can be increased or decreased in value.

Decimal places Indicates the number of decimal places to display.
Increment Indicates the amount to increment or decrement on each button click.
Label The text associated with the field.
Maximum Indicates the maximum value for the numeric up-down control.
Minimum Indicates the minimum value for the numeric up-down control.
Name Name of the Field.
Read only Field cannot be edited by user. Possible values are False (default) and True.
Remember value Remember last used value. Possible values are False (default) and True.
Thousands separator Indicates whether the thousands separator will be inserted or not.
Tooltip Optional tool tip for field.
Value Optional default value of the numeric up-down control.
Width Width of control. Default is 0 pixels (full width).
ComboBox

A drop-down list and a single-line editable textbox, allowing the user to either type a value directly or select a value from the list.

CSV File

Path and filename to CSV file in the format

“Header1”,“Header2,“Header3”

“Value1,”Value2”,”Value3”

“Value1,”Value2”,”Value3”

The list of records, added to the CSV file, will be included in the drop-down list. The value of the first column can be selected and used as value for the field. Other columns are for viewing purposes only.

Header names: Required

Field separator: Comma only

Quotes: Not required but recommended

Number of columns: A maximum of 6 columns are recommended for viewing purposes.

Note: Lasernet Meta must be restarted to load an updated CSV file

If the CSV file contain a parsing error, because of incorrect CSV format, a dialog will pop-up in the Lasernet Meta application with a warning “Error parsing CSV file” and the line number.

The Count value shows the total number of successfully imported records in the grid.

It must be reported to the creator of the CSV file if there is a mismatch between Index number and Count.

Editable Allow users to enter a value which is not in the drop-down list.
Items List of strings in the drop down. Click … button to open the String Collection Editor. Enter the strings in the collection (one per line).
Label The text associated with the field.
Name Name of Field.
Read only Field cannot be edited by user. Possible values are False (default) and True.
Remember value Remember last used value. Possible values are False (default) and True.
Text Optional default text.
Tooltip Optional tool tip for combo box.
Validation Optional rules for validating contents of field. Click … button to open the Validation dialog. Regular Expressions and JavaScript are supported for setting up validation rules.
Value Optional default value.
Memobox

A multi-line text box that can contain a string with default 1024 characters.

Height Minimum memo height in pixels. Default value is 20 pixels (single line).
Label The text associated with the field.
Name Name of Field.
Read only Field cannot be edited by user. Possible values are False (default) and True.
Remember value Remember last used value. Possible values are False (default) and True.
Tooltip Optional tool tip for memo box.
Validation Optional rules for validating contents of field. Click … button to open the Validation dialog. Regular Expressions and JavaScript are supported for setting up validation rules.
Value Optional default value.
File

A field to include a text or binary file added from a disk drive. The file field can as example contain a list, in a CSV or XLSX format, that is used by Lasernet Core to send the same job to multiple receivers.

Extension Optional list of allowed file extensions.
Label The text associated with the field.
Name Name of Field.
Read only Field cannot be edited by user. Possible values are False (default) and True.
Remember value Remember last used value. Possible values are False (default) and True.
Tooltip Optional tool tip for file field.
Validation Optional rules for validating contents of field. Click … button to open the Validation dialog. Regular Expressions and JavaScript are supported for setting up validation rules.
Value Optional default value.
Separator

A graphical line to visually separate fields. Cannot contain data.

Name Name of Field.
Type Type of field. Separator is the only valid value.

The queues defined in the Meta Input module can be added to the Lasernet Meta application one by one. Different users can have different queues with different Meta fields.

Validation

The Validation property can be used to validate the contents of a Meta field in the Lasernet Meta application. Meta fields not matching specified conditions will be marked with a red cross when the Send button is clicked and the job will not be released, before all fields are successful validated

Validate via regular expression

In this example we have created a regular expression matching a number in the US format with comma as thousand delimiters and dot as comma delimiter.

Regular Expression: ^[0-9]{1,3}(,[0-9]{3})*(\.[0-9]{2})?$

The $ sign at the end of the regular expression is essential to match the full string and not a part of the string.

The Parameter field and Test button are useful to validate the expected result of the regular expression. This functionality is for online testing only in the Lasernet Developer.

For more information regarding syntax regular expression, we recommend to search the Internet.

Validate via JavaScript

In this example we have created a JavaScript matching that the parameter is not empty and activated that an error result is marked as unsuccessful (red errors).

In this example we have created a JavaScript matching that the parameter is higher than a specific amount and activated that an error result is marked as tentative (yellow errors). The parameter string is essential and contains the contents of the JobInfo to be validated. The expression will return empty string when validation of parameter is successful and error text when it fails validation.

if (parameter > 50000)
return "Amounts > 50.000 must be validated";
else
return "";

The Parameter field and Test button are useful to validate the expected result of the JavaScript. This functionality is for online testing only in the Lasernet Developer.

Populating Meta Queues to the Lasernet Core Environment

When the queue(s) have been added to the Meta Input module you can click Update in the Lasernet Developer to populate the web services in the Lasernet Core environment. The Lasernet Meta application can now be installed on the clients and connect to the queues.

Was this page helpful? Let us know at knowledgebase.feedback@lasernetgroup.com