BBox Device

The BBox device is a simple device that calculates the bbox of all the marking operations11.1 on a page.


\begin{lstlisting}
/*
fz_new_bbox_device: Create a device to compute the boundi...
...fz_device *fz_new_bbox_device(fz_context *ctx, fz_rect *rectp);
\end{lstlisting}

The fz_rect passed to the fz_new_bbox_device must obviously stay in scope for the duration of the life of the device as it will be updated when the device is closed with the bounding box for the contents.