Using Command Line Execution

One of the common usage scenarios is using this component together with the Desktop Print CoNNect application that works on the user desktop like a printer which, instead of printing, transfers documents in Printer Control Language format (PCL) to AutoCapture component. In this scenario the Command Line Execution component runs the executable file of the PCL to TIFF converter.

You can click this link OakDoc PCL to TIFF Converter to see an example of a PCL to TIFF converter.

  1. Create a workflow with AutoCapture as the capture component, Command Line Execution as the process component, and Send to Folder as the route component.
  2. In AutoCapture, configure a form that will allow users to set X resolution and Y resolution of the resultant TIFF files.
  3. On the General tab of the Command Line Execution component settings, select a path to the pcltotiff.exe file that converts PCL files to TIFF files.
  4. Specify the following Command line parameters:
    • -i "~CLE::FullPath~" -o "D:\TIFF\result" -m -x ~ACC::%Xresolution%~ -y ~ACC::%Yresolution%~
  5. On the Document tab, select the Attach files check box, and enter D:\TIFF\result.tif in the Files to Attach text box.
  6. Configure the Send to Folder component to route documents to a local folder.
  7. Start the workflow.

When the users print documents from their desktop applications (Microsoft Word, Microsoft PowerPoint, Microsoft Excel, and so forth), they select Desktop Print Connect in the printers list. Then they see the AutoCapture form, and specify X resolution and Y resolution of the resultant TIFF files, and submit the AutoCapture form.

As a result, the documents in PCL format are captured by the AutoCapture component and sent for further processing. The Command Line Execution process component runs the PCL to TIFF converter from the command line, and the resultant multipage TIFF files with specified resolution are saved in the D:\TIFF folder, renamed a result.tif. Then the resultant TIFF files are attached to the workflow and sent to the specified folder.