Job Ticket Parser: JDF

15 minute read Last updated on October 21, 2021

Job Ticket Parser: JDF Node

Note: This node works with JDF, MJM, and Zip (JDF + PDF) files.

The Job Ticket Parser: JDF Node is used to parse the information in a JDF file, and then write the parsed information as metadata. The JDF file should contain a job ticket field and a job ticket value field. The node reads the job ticket field and its corresponding job ticket values, and then updates the metadata. A mapping table is used to map the job ticket data to the metadata values.

The input will be a JDF, ZIP (JDF + PDF), or MIME (MJM) file. The JDF and ZIP (JDF + PDF) contain the job ticket information in the form of job ticket fields and job ticket values. The MJM file contain the JMF, the JDF content (job ticket), and the PDF content. The extracted JDF (job ticket) and the PDF file are processed by the node.

Note: The job ticket information in the MJM file will contain JMF, JDF, and PDF content in the form of base 64. This node WILL NOT process the JMF content in the MJM file.

Using the Job Ticket Parser: JDF Node

Add the Job Ticket Parser: JDF Node to the workflow by dragging the node’s icon onto the Workflow Builder canvas, and then double-clicking on the icon to open the Job Ticket Parser: JDF Node:

Job Ticket Parser: JDF Node

Use the window to create or import a mapping table by using a dependent UI component mapping table editor.

  • Select the Enabled checkbox so that the process will run. When unchecked, this process is ignored. Documents pass through as if the node were not present (i.e., continue along the default or positive path). Note that a disabled node will not check for logic or error conditions.

  • In the Node Name field, enter a meaningful name for the Job Ticket Parser: JDF Node.

  • In the Description field, enter a description for the Job Ticket Parser: JDF Node. This is not required, but can be helpful with multiple collection points. If the description is long, hover the mouse over the field to read its entire contents.

  • Click the Save button to save the changes. If Cancel is selected and the window is closed, the changes are not saved.

  • Click the Help button to access online help.

Category Panel

There are eleven job ticket parameter Categories (all noted in the image below). To display the setting values of a Category, click one of the eleven options:

Job Ticket Parser: JDF Node

  • Job Settings: Select this option to edit the job ticket parameters of the following values: Job Ticket Number, Job Ticket Name, Job Priority, Due Date, Color Mode, High Quality Color, or Job Description.

  • Basic Settings: Select Basic Settings to edit the job ticket parameter of Copies, Collate, Offset, Offset Copies, Offset Pages, Paper Catalog ID, Paper Name, Paper Source, Paper Weight, Paper Type, Paper Color, Paper User Color, Use Perforated Paper, Paper Size, or Orientation.

  • Layout Settings: Select this option to edit the job ticket parameters of the following values: Imposition, or Printing Type.

  • Cover Sheet Settings: Select this option to edit the job ticket parameters of the following values: Front Cover, Front Cover Paper Name, Back Cover, or Back Cover Paper Name.

  • Finishing Settings: Select Finishing Settings to edit the job ticket parameter of Binding Position, Saddle Stitch, Trim, Staple, Punch, Folding, Perfect Binding, Perfect Binding Mode, Perfect Binding Tray, Perfect Binding Duplex, Perfect Binding Spine, Perfect Binding Cover Size, Perfect Binding Cover Weight, Ring Binding, Ring Binding Front Cover, or Ring Binding Back Cover.

  • Inter Sheet Settings: Select Inter Sheet Settings to edit the job ticket parameter of PPS Print Type, PPS Binding, PPS Paper Catalog ID, PPS Paper Name, PPS Paper Source, PPS Paper Type, PPS Paper Size, PPS Paper Weight, PPS Paper Color, PPS Paper User Color, PPS Use Perforated Paper, PPS Paper Tab Type, PPS Number of Inserts, PPS Staple, PPS Punch Setting, PPS Punch, or PPS Finish Stapling.

  • Tab Settings: Select Tab Paper Size, Tab Paper Weight, Tab Text, Tab Sheet Page Number, File Order, or Number of Tabs.

  • Image Quality Settings: Select this option to edit the job ticket parameters of the following value: Resolution.

  • Customer Information: Select this option to edit the job ticket parameters of the following values: Comment URL, Customer’s First Name, Customer’s Last Name, Customer’s Address 1, Customer’s Address 2, Customer’s City, Customer’s State, Customer’s Zip Code, Customer’s Country, Customer’s Company, Customer’s Phone, Customer’s Fax, Customer’s Email, or Job Created By.

  • Job Download: Select this option to specify which Print File Option will be used to retrieve a print file: Retrieve from Local Path, Download from URL, or Retrieve from Network share.

  • Others: Select this option to if a job contains a custom job ticket parameter that cannot be found in any of categories. Add a new field for this option using the Others Category.

Tool Bar

The Tool Bar only appears when the Inter Sheet Settings and the Others Category options are selected. The example below displays when the Others Category option is selected. The Inter Sheet Settings Tool Bar varies from this example. All available Tool Bar options are noted below:

Job Ticket Parser: JDF Node

  • Add New: Use this option to add a new entry parameter and define its conversion rule. This is only available in the Others category.

  • Delete: Use this option to delete a parameter entry. This is only available in the Others category.

  • Add New Per Page Settings: Use this option to add another set of Per Page Settings. This is only available in the Inter Sheet Settings category.

  • Delete Per Page Settings: Use this option to delete a Per Page settings entry. This is only available in the Inter Sheet Settings category.

  • Import Mapping Table: Click to open a file dialog then select a mapping table XML file to import.

  • Export Mapping Table: Use this function to save any configuration changes applied to the external mapping table’s XML file.

  • Show/Hide JT Reference: Use this option to show or hide the Job Ticket Reference Panel.

Mapping Table Panel

Use this panel to define the mapping values between the job ticket parameters and the Dispatcher Metadata. Click each category option to open the Parameter Name/Metadata Key values in the main panel.

Job Ticket Parser: JDF Node

  • Parameter Name: This column notes user-friendly names for the job ticket parameters.

  • Metadata Key: This column notes the Dispatcher Metadata Keys for each parameter name.

  • Job Ticket Paths: This column is initially blank. In it, enter the JDF Path that corresponds to each job ticket parameter.

Value Map Panel

Click on the table above to display the Metadata Key panel. Use this panel to define the conversion rules between the Metadata and Job Ticket values. Enter the values into the table. Metadata Key(s) and Job Ticket Path(s) are listed in a header. Entries may be added or deleted, as required.

Job Ticket Parser: JDF Node

  • Add New Metadata Key: Click this button to add a new Metadata Key.

  • Add New Job Ticket Path: Click this button to add a new Job Ticket Path.

  • Add New Row: Click this button to add a new value map Row.

  • Use default Job Ticket Value: If this is enabled, values in the Job Ticket remain with their corresponding Metadata Keys and are saved without any conversion being applied.

    Note: The check box is only available in the case of 1-to-1 mapping. In all other conditions, this option is grayed out and cannot be enabled.

Job Ticket Reference Panel

Job Ticket Parser: JDF Node

To open a sample job ticket file, click the Open button (Job Ticket Parser: JDF Node). Once a job ticket is selected, all possible JDF Paths are listed in the table. Drag-and-drop items in the list to the desired Job Ticket Paths column in the Mapping Table Panel.

Click the Clear button (Job Ticket Parser: JDF Node) to clean up the list.

Basic Operations of the Mapping Table

Job Ticket parameters often need to be converted into a different format, either for storage or so that a certain task may be performed on the job ticket. Conversion (or parsing) of a job ticket into metadata makes it possible for the job ticket to be read for such tasks. This node supports conversion to the JDF format.

Job Ticket File

Before starting to work with this node, a JDF job ticket file must be generated.

Note: Once the Job Ticket Parser: JDF Node has been added to Dispatcher Phoenix via the add-in manager, sample job ticket files are available for viewing. Use the path below to locate them:

\Program Files\Common Files\Konica Minolta\Phoenix\Resources\JobTicketParserJDFNode

The sample job ticket noted above contains all possible job ticket parameters. The sample job ticket can be modified so it contains the parameters required to support a file. A job ticket file can also be generated using an external, third-party application. This job ticket file may then be used as a sample file.

The Job Ticket Parser: JDF Node defines job ticket parameters using Document- and Per Page Settings-level values. For the discussion that follows, a sample job ticket is modified with simple Document-and Per Page Settings-level values. This sample job ticket is used for the discussion that follows:

<?xml version="1.0" encoding="UTF-8"?>
<JDF xmlns="http://www.CIP4.org/JDFSchema_1_1"
  xmlns:kmbs="http://www.konicaminolta.com/KMBS_JDFExtension_1_1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Combined">
<ResourcePool>
    <Media Class="Consumable"
      ID="r170711_024318593_005119" MediaColorName="Yellow" Status="Available">
      <Location LocationName="AutoSelect"/>
    </Media>
    <LayoutPreparationParams Class="Parameter"
       ID="r170711_023611281_005743"
       Sides="TwoSidedFlipY" Status="Available">
       <LayoutPreparationParams RunIndex="0~4"
         kmbs:BindingEdge="Auto" kmbs:PerPageSet="Yes">
         <Media Class="Consumable" DescriptiveName="test">
            <Location LocationName="Auto"/>
         </Media>
       </LayoutPreparationParams>
    </LayoutPreparationParams>
    <RunList Class="Parameter" ID="r170707_053618136_000949" NPage="4"Status="Available">
    <LayoutElement>
         <FileSpec File="file" URL="c:\Temp\Testfile.pdf"/>
    </LayoutElement>
    </RunList>
    <Component Class="Quantity" ComponentType="FinalProduct"
    ID="r170711_024318596_005125" Status="Unavailable"/>
</ResourcePool>
<ResourceLinkPool>
    <MediaLink CombinedProcessIndex="0" Usage="Input" rRef="r170711_024318593_005119"/>
    <LayoutPreparationParamsLink CombinedProcessIndex="0" Usage="Input" rRef="r170711_023611281_005743"/>
    <RunListLink CombinedProcessIndex="0 1" ProcessUsage="Document"
      Usage="Input" rRef="r170707_053618136_000949"/>
    <ComponentLink Amount="10" CombinedProcessIndex="4" Usage="Output"rRef="r170711_024318596_005125"/>
</ResourceLinkPool>
<CustomerInfo BillingCode="" CustomerID="" CustomerJobName="JDF job"/>
</JDF>

Configure the Mapping Table Using the Job Ticket File

  1. Using a text editor, copy the sample JDF file above.

  2. The URL Path noted in the Layout Element, needs to be changed so that the path is valid.

  3. Save the sample file locally as jdf_sample_jobticket_file.jdf.

  4. Double-click on the Job Ticket Parser: JDF Node. The settings screen opens:

    Job Ticket Parser: JDF Node

  5. In the left panel, set the following values:

    • Enabled checkbox: Select the checkbox so that the process will run.
    • Node Name: Assign a name value to the node in the text field.
  6. In the Job Ticket Reference pane (far-right), locate the Open icon:

    Job Ticket Parser: JDF Node

  7. Click the icon and on the screen that opens, navigate to and select the file saved in Step 3 above (jdf_sample_jobticket_file.jdf).

    Job Ticket Parser: JDF Node

  8. When the file opens, its contents (or XPaths) display in the Job Ticket Reference panel, as noted in the following image:

    Job Ticket Parser: JDF Node

    Note: When the JDF job ticket is loaded, some values are automatically mapped in the main panel. Remaining unmapped XPaths need to be manually mapped using drag-and-drop. The Inter Sheet Settings and Others’ Path Range Paths and the must always be mapped manually.

    Note: If a value is not automatically mapped or if a required option DOES NOT appear in the Job Ticket Reference panel, manually enter the value noted in the instructions in this Help file.

Mapping XPaths

Once the XPath values are available, they need to be mapped to the Parameter Name/Metadata Key values in the main panel. Do this by clicking on a value in the Job Ticket Reference panel, and then dragging the value to the corresponding Job Ticket Paths cell in the main panel.

The Category panel is available to the left and contains several options. Click a category option. The Parameter Name/Metadata Key values it contains display in the main panel.

Mapping Basic Parameter Name/Metadata Keys Values

  1. In the Category panel, click the Basic Settings option. The Parameter Name, Metadata Keys, and Job Ticket Paths columns display in the main panel:

    Job Ticket Parser: JDF Node

  2. The following values from the Job Ticket Reference panel are automatically moved to their Job Tickets Paths cells:

    • /JDF/ResourceLinkPool/ComponentLink/@Amount -> Copies

    • /JDF/ResourcePool/Media/Location/@LocationName -> Paper Source

    • /JDF/ResourcePool/Media/@MediaColorName -> Paper Color

  3. If they are not automatically mapped:

    • Drag-and-drop /JDF/ResourceLinkPool/ComponentLink/@Amount to the Job Ticket Paths cell of the Copies row.

    • Drag-and-drop /JDF/ResourcePool/Media/Location/@LocationName to the Job Ticket Paths cell of the Paper Source row.

    • Drag-and-drop /JDF/ResourcePool/Media/@MediaColorName to the Job Ticket Paths cell of the Paper Color row.

  4. The values that were either automatically moved or manually dragged-and-dropped are removed from the Job Ticket Reference panel.

  5. In the Category panel, click the Layout Settings option. The Parameter Name, Metadata Keys, and Job Ticket Paths columns display in the main panel:

    Job Ticket Parser: JDF Node

  6. The following value from the Job Ticket Reference panel is automatically moved to its Job Tickets Paths cell:

    • /JDF/ResourcePool/LayoutPreparationParams/@Sides -> Printing Type
  7. If they are not automatically mapped:

    • Drag-and-drop /JDF/ResourcePool/LayoutPreparationParams/@Sides to the Job Ticket Paths cell of the Printing Type row.
  8. All values that were dragged-and-dropped from the Job Ticket Reference panel are removed from the panel.

  9. Repeat the same procedure for other Category options, as required.

Mapping Inter Sheet Settings Parameter Name/Metadata Keys Values

The Inter Sheet Settings Category is used to configure Per Page Settings. Enable and then map the XPath values to activate these settings. These Inter Sheet Settings generate page-level metadata.

  1. In the Category panel, click the Inter Sheet Settings option. The Page Range Path 1 field and the Parameter Name, Metadata Keys, and Job Ticket Paths columns display in the main panel:

    Job Ticket Parser: JDF Node

  2. From the Job Ticket Reference panel, drag-and-drop /JDF/ResourcePool/LayoutPreparationParams/LayoutPreparationParams/@RunIndex to the Page Range Path 1 text box.

    Note: Page Range Path** value should start with “/JDF/” pattern.

  3. From the Job Ticket Reference panel, drag-and-drop /JDF/ResourcePool/LayoutPreparationParams/LayoutPreparationParams/Media/@DescriptiveName to the Job Ticket Paths field for PPS Paper Name.

  4. Once these actions are completed, the screen will appear as shown in the following image:

    Job Ticket Parser: JDF Node

  5. All values that were dragged-and-dropped from the Job Ticket Reference panel are removed from the panel.

  6. Repeat the same procedure for other Category options, as required.

Mapping Job Download Parameter Name/Metadata Keys Values

Use the Job Download Category to enable the input source from which a job’s PDF file can be received. Three values are supported: Retrieve from Local Path, Download from URL, and Retrieve from Network share.

Enable and then map the XPath values to activate these settings.

Sample JDF Job Ticket Files:

The following examples show how the code will display the PDF file for each of the job download options:

Retrieve from Local Path

    •    “File”: “file”
    •    “URL”: “C:\Temp\Testfile.pdf”

Note: The file type keyword “file” and the file type keyword written in the input job ticket file must match.

Download from URL

    •    “File”: “http”
    •    “URL”: “http://10.146.171.98/testapp8/Testfile.pdf”

Note: The file type keyword “http” and the file type keyword written in the input job tick-et file must match.

Retrieve from Network share

    •    “File”: “share”
    •    “share”: “\\11.12.13.14\Temp\Testfile.pdf”

Note: The file type keyword “share” and the file type keyword written in the input job ticket file must match.

  1. In the Category panel, click the Job Download option. The Documentation Source and Job Ticket Path: File Type fields and the Retrieve Print File Option checkboxes display in the main panel:

    Job Ticket Parser: JDF Node

  2. In the Retrieve from File Option column, select the checkboxes of all three options: Retrieve from Local Path, Download from URL, and Retrieve from Network share.

  3. From the Job Ticket Reference panel, drag-and-drop /JDF/ResourcePool/RunList/LayoutElement/FileSpec/@URL to the Documentation Source field.

  4. From the Job Ticket Reference panel, drag-and-drop /JDF/ResourcePool/RunList/LayoutElement/FileSpec/@File to the Job Ticket Path: File Type field.

  5. Once these actions are completed, the screen will appear as shown in the following image:

    Note: If Retrieve from Network share is selected, you will need to enter network credentials. Select the Network Credentials button Job Ticket Parser: JDF Node to access the Network Credentials window; on this window, you can enter username and appropriate password.

    Job Ticket Parser: JDF Node

  6. All values that were dragged-and-dropped from the Job Ticket Reference panel are removed from the panel.

  7. Repeat the same procedure for other Category options, as required.

Value Map Configuration

Use this feature to configure one or more values for job ticket paths. In the example that follows, Printing Type’s XPath value is mapped. Once that is completed, the setting is then edited to specify the value map for /JDF/ResourcePool/LayoutPreparationParams/@Sides.

  1. In the Category panel, click the Layout Settings option.

  2. Click on Printing Type row to open the Value Map panel:

    Job Ticket Parser: JDF Node

  3. By default, a single value map row displays. Since there are two values that need to be mapped, click Add New Row to add a second value map row:

    Job Ticket Parser: JDF Node

  4. In the first row, select Double-Sided from the Metadata Key drop-down menu and enter TwoSidedFlipY for the Job Ticket Path.

  5. If the metadata’s value is Double-Sided, the job ticket will write the value as TwoSidedFlipY.

  6. In the second row, select One-Sided from the Metadata Key drop-down menu and enter OneSidedFront for the Job ticket path.

  7. If the metadata’s value is One-Sided, the job ticket will write the value as @Sides as OneSidedFront.

  8. When finished, click Save. To undo the changes, click Cancel.

Sample of a Job Ticket Parser: JDF Node Workflow

Job Ticket Parser: JDF Node

In the workflow above a job ticket file (e.g., jdf_sample_jobticket_file.jdf) is moved to the Input Folder. This is sent to the Job Ticket Parser: JDF Node where the job ticket JDF is converted to job ticket metadata using the mapped values that have been created using the Job Ticket Parser: JDF Node’s settings. When this is completed, the data is transferred to the Metadata to File Node where it is converted to an XML document. From there, the XML document is transferred to an Output Folder.

Input Folder Node: Configure the Input Folder to collect files and forward them to the Job Ticket Parser: XML Node.

Job Ticket Parser: JDF Node: The purpose and instructions for setting up this node are noted in the discussion that precedes this section.

Metadata to File Node: This node extracts the configured metadata, saves it as an XML file, and then sends the file to the next node in the workflow. Follow these steps to configure the Metadata to File Node:

  1. Open the Metadata to File Node by double-clicking the node’s icon.

  2. Make sure the Enabled checkbox is selected.

  3. In the Output Settings panel, select the Output the original file checkbox, and then select XML (*.xml) from the Metadata file format drop-down.

  4. In the Metadata file extension panel, select the Output File extension plus metadata file extension radio button.

  5. In the Select metadata to extract panel, select the Job checkbox.

  6. Click Save to apply the changes.

    Job Ticket Parser: JDF Node

Output Folder Node: Once all workflow processes have been successfully applied, a job is routed to the folder path configured in the Output Folder Node.

The output metadata that follows is based upon the settings noted in the previous sections of this document:

<meta group="job" name="copy">
    <document>10</document>
</meta>
<meta group="job" name="file.URL">
    <document>c:\Temp\Testfile.pdf </document>
</meta>
<meta group="job" name="name">
    <document>JDF job</document>
</meta>
<meta group="job" name="paper.color">
    <document>Yellow</document>
</meta>
<meta group="job" name="paper.name">
    <page number="1">test</page>
    <page number="2">test</page>
    <page number="3">test</page>
    <page number="4">test</page>
    <page number="5">test</page>
</meta>
<meta group="job" name="printtype">
    <document>Double-Sided</document>
</meta>
<meta group="job" name="ticket.file">
    <document>C:\ProgramData\Konica Minolta\conopsd\var\blox\node_2\tmp.d\170711153423.042_000001jdf_sample_jobticket_file.jdf</document>
</meta>

Limitations

Important!

  1. The ZIP file that can be input to this node should contain PDF and JDF files only. When folder containing PDF and JDF files is zipped and given as input, this type of ZIP file is not supported.