Postscript

Postscript output is currently done as image output rather than high-level objects.

Pixmaps suitable for PS image output are greyscale, RGB or CMYK with no alpha.


\begin{lstlisting}
void fz_write_pixmap_as_ps(fz_context *ctx, fz_output *out, c...
...writer *fz_new_ps_band_writer(fz_context *ctx, fz_output *out);
\end{lstlisting}

Postscript requires file level headers and trailers, over and above that produced by the band writer itself. These can be generated using the following functions:


\begin{lstlisting}
void fz_write_ps_file_header(fz_context *ctx, fz_output *out)...
...te_ps_file_trailer(fz_context *ctx, fz_output *out, int pages);
\end{lstlisting}

These are not generated by the band writer itself to allow a single output stream to be generated containing many pages, but a single file header and trailer.