Output parameters (PCL XL)

setParameter

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

C++
IPCLXLOutputPtr output = IPCLXLOutput::create(jawsMako);
output->setResolution(300);
C#
IPCLXLOutput output = IPCLXLOutput.create(jawsMako);
output.setResolution(300);

The same parameter can be expressed as two strings:

C++
IPCLXLOutputPtr output = IPCLXLOutput::create(jawsMako);
output->setParameter("Resolution", "300");
C#
IPCLXLOutput output = IPCLXLOutput.create(jawsMako);
output.setParameter("Resolution", "300");

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 SDK sample makoconverter allows you to experiment with these parameters by adding them to the command line, for example:

PowerShell
makoconverter MyInput.pdf MyOutput.pxl resolution=300

The following settings are supported:

Parameter

Possible values

Description

Resolution

1 to 32768

Sets the PCLXL resolution. The default is 600 dpi.