PJL wrap PDF component - InterFormNG2

PJL wrap PDF component

It is possible to add PJL sequences into a PDF file. This can e.g. be used, if you want to print a PDF directly in the PDF format, and still want to have full printer control e.g. for tray selection, output bin, stapling or other MFP (Multi Function Printer) related options. The PJL sequences can be added directly to the printers via the printer settings, on the Extra PJL commands component, and the new workflow component, PJL wrap PDF can be used for putting PJL commands into a PDF file before you send the PDF to the printer e.g. via the To printer component.

 

The PJL wrap PDF workflow advanced, create document component can be inserted after a component, that has PDF as the output payload e.g. Create PDF document. The output payload of the PJL wrap PDF component is PDFPJL, which indicates that the PDF file has been wrapped in PJL commands.

 

The PJL wrap PDF component has no parameters:

​


Example of use

Here is an example of a workflow, where this component is used:


​

Prerequisites for this workflow:

  1. The printer need to support PDF as the printer language.
  2. The PDF is to be created with the Create PDF document workflow component. If you are loading a PDF in another way e.g. from the file system or from the resources, then you need to set the workflow variable, renderer.page.last to a number, which should be the number of pages in the PDF file, but any number will do as this number is only used for the display on the printer.
It has been built up by these components:

Extra PJL commands

Here we use a PJL command to select a specific tray on the printer - if the PDF file is printed.


    

Create PDF document

Here we merge the input file with a template and generate a PDF file, that is inserted into the payload of the workflow:


  

PJL wrap PDF

Wrap the PDF (found in the payload) into the PJL sequence, that was previously set.



Set printer

Selects a registered printer onto which we want to send the PJL sequence.


 

To printer

Send the PDF print data stream (wrapped into the PJL) directly to the printer: