PCL

PCL is not a standard image format, rather it is a page description language for printers. Unfortunately, the exact implementation of PCL varies from printer to printer, so it can be necessary to tweak the output according to the exact intended destination.

Accordingly, we have a pcl_options structure to allow this to happen. To use this, you simply define a pcl_options structure on the stack:


\begin{lstlisting}
pcl_options options = { 0 };
\end{lstlisting}

Next you populate those options. Typically this is done by requesting a preset from our current defined set.


\begin{lstlisting}
/*
fz_pcl_preset: Retrieve a set of fz_pcl_options suitable ...
...set(fz_context *ctx, fz_pcl_options *opts, const char *preset);
\end{lstlisting}

These options can then be tweaked further using fz_pcl_option:


\begin{lstlisting}
/*
fz_pcl_option: Set a given PCL option to a given value in...
...ntext *ctx, fz_pcl_options *opts, const char *option, int val);
\end{lstlisting}



Subsections