next up previous contents index
Next: Compression Up: Pages Previous: Flip Pages   Contents   Index

Page Size and Page Cropping

All PDF files contain a media box for each page, giving the dimensions of the paper. To change these dimensions (without altering the page contents in any way), use the SetMediabox function.


\begin{framed}
\noindent\textit{Set media box (page size)}
\par
\vspace{2mm}
\no...
...es increasing to the right, y coordinates increasing upwards.}
\par
\end{framed}

PDF file can also optionally contain a crop box for each page, defining to what extent the page is cropped before being displayed or printed. A crop box can be set, changed and removed, without affecting the underlying media box. To set or change the crop box use Crop. To remove any existing crop box, use RemoveCrop.
\begin{framed}
\noindent\textit{Set crop box}
\par
\vspace{2mm}
\noindent\begin{...
...dinates increasing to the right, y coordinates increasing upwards.}
\end{framed}


\begin{framed}
\noindent\textit{Remove any crop box in place}
\par
\vspace{2mm}
...
...oveCrop(pdf, Cpdflib.All(pdf))!
\end{minipage}\\ [5mm]
\end{tabular}\end{framed}



root 2008-12-01