Extra PCL commands - InterFormNG2 Manual

Extra PCL commands

The Extra PCL commands workflow component is an advanced set meta data workflow component. It only has effect, if you later merge into a PCL print data stream later in the same workflow.

 

With this you can add your own PCL commands in the PCL output from InterFormNG2 e.g. for tray selection by number.

 

The recommended way to select the tray is however with the workflow components: Set printing properties or set paper type or the print settings element in the template, if at all possible. You can also set these PCL commands as the value of the predefined variable, interform.destination.printer.pcl.pcl or a fixed value on the printers advanced PCL settings.

 

With this meta data you can add extra PCL commands in the begining of the PCL print out from InterFormNG. You can e.g. use this to select a specific paper drawer on the printer (e.g. to select between plain paper and preprinted paper.).

 

The extra PCL commands component has a single parameter:

 

 

NG2WorkflowExtraPCLCommands0001

(The command above selects the PCL tray/drawer number 5)

 

PCL Commands

The extra PCL commands, that you want to add to the print data stream. Remember, that this is not limited to a constant text, but it can be an XPath expression, which can also use workflow variables.

 

The best way to select the drawer is to set the paper type of each drawer on the printer and then insert a PCL command to select the same paper type. The easiest way to do that, is to select it on the paper type.

 

Here is a list of the available paper types:

 

Paper type

Command

Plain

EC&n6WdPlain

Bond

EC&n5WdBond

Color

EC&n6WdColor

Labels

EC&n7WdLabels

Recycled

EC&n9WdRecycled

Letterhead

EC&n11WdLetterhead

Cardstock

EC&n10WdCard Stock

Prepunched

EC&n11WdPrepunched

Preprinted

EC&n11WdPreprinted

Transperancy

EC&n13WdTransparency

 

Please notice, that the PCL commands must be written exactly as above. They are case sensitive and the space between ‘d’ and ‘S’ in ‘EC10WdCard Stock’ must be included.

 

Notice, that even though the printer menu might show each of these printer types in your local language you should still use the english command shown above.

 

If the printer does not support selection of the drawer via the paper type, you can use an alternative command: EC&l#H, where the # is a PCL drawer number. So if you e.g. want to select PCL drawer 5 the command is: EC&l5H.

 

Please notice, that the PCL drawer number can range from 1 to 255 and is NOT the same number as the physical drawer on the printer and that the number depends on the exact printer model used. For some printers you even need to select drawer numbers in the range 250-255, but for most you should try values in the range 1-9.

 

If you want to insert multiple PCL commands, you just concatenate them into the same meta data.

 

Please notice, that you can use the characters ‘EC’ to denote the escape character (hex 1B), which is needed in a PCL command. (It is also possible to set the hex characters instead if needed).

 

More help in regards to PCL drawer numbers can be found in the InterForm400 cookbook, which you can download via this link: http://download.interform400.com/shares/public/CookBook.zip

    Notice: Help Center Transition Update

    As of January 13, 2025, we are excited to announce that our new Help Center is in the final stages of development. While the Knowledge Base is already accessible, our current JIRA system will continue to manage support tickets during this transition period. For assistance with InterForm Output Management Software, please refer to the Support for InterForm Output Management Software.

    We appreciate your patience and understanding as we work to enhance your support experience. If you have any questions or encounter any issues, please do not hesitate to reach out via the existing support channels.

    Best regards,
    The InterForm Support Team


      • Related Articles

      • PCL

        When you see a reference to PCL in InterFormNG2, then it actually means PCL5c. PCL is one of the file types/payloads, that can be handled by the InterFormNG2 workflow. PCL5 is the printer language used, if you configure a printer in InterFormNG2 to ...
      • Extra PJL commands

        With this advanced set meta data workflow component, you can add your own PJL commands in the PCL/PDF output from InterFormNG2 e.g. for enabling/disabling color printing, stapling, punching to select a specific output bin or include user ID and ...
      • The AS400 commands

        The AS400 commands : It is possible to run a CL command from your CL-programs on the IBM i (AS400) platform. If you want to do that, then you should check out this section for the prerequisites. InterFormNG2 is shipped with two predefined commands, ...
      • Create PCL

        The Create PCL shortcut create document is used mostly internally. If you want to print, then you should normally consider to select the mimetype on your printer and use the Print component. The input payload for this component is intermediate. For ...
      • Set Printing properties component

        The set printing properties workflow component is relevant, if you are going to print out on a PCL compatible printer. So if want to use the features below, then you need to ensure, that this is set prior to the merge into PCL. You can also consider ...