Skip to main content
Skip table of contents

Output parameters (PCL 5)

setParameter()

IPCL5Output supports several parameters that control how the PCL is written. These can be set in code in two ways. For example, to set the version of PCL that will be written, the code is:

CPP
IPCL5OutputPtr output = IPCL5Output::create(jawsMako);
output->setVersion(IPCL5Output::ePCL5e);
C#
PCL5Output output = IPCL5Output.create(jawsMako);
output.setVersion(IPCL5Output.ePCL5e);

The same parameter can be expressed as two strings:

CPP
IPCL5OutputPtr output = IPCL5Output::create(jawsMako);
output->setParameter("PCL5Version", "pcl5e");
C#
IPCL5Output output = IPCL5Output.create(jawsMako);
output.setParameter("PCL5Version", "pcl5e");

This method was added to support scenarios where it is necessary to set an output parameter at runtime (for example, in a printer driver where the user is offered options from a menu).

The sample makoconverter allows you to experiment with these parameters by adding them to the command line (for example):

POWERSHELL
makoconverter MyInput.pdf MyOutput.pcl pcl5version=pcl5e resolution=300

The following settings are supported.

Parameter

Possible values

Description

PCL5Version

pcl5e

pcl5e

Sets the PCL version. The default is ePCL5c.


Resolution

1 to 32768

Sets the PCL resolution. The default is 600 dpi.

ImageCompression

None

RLE

DeltaRow

Sets the desired image compression method. The default is delta row.

MediaSource

0 to 32768

Sets the desired media source. The default is 7.



JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.