next up previous contents index
Next: Shift Page Contents Up: Pages Previous: Page Sizes   Contents   Index

Scale Pages

The ScalePages function scales the page dimensions and its content by the x and y factors given.


\begin{framed}
\noindent\textit{Double the size of all the pages in a PDF}
\par
...
...f, Cpdflib.All(pdf), 2.0, 2.0)!
\end{minipage}\\ [5mm]
\end{tabular}\end{framed}

The ScaleToFitPaper function scales the page dimensions and its content to fit the given page dimensions or paper size. If the aspect ratios of the two page sizes are unequal, the page is scaled to the largest size which will fit within the new page dimensions, and centered therein.


\begin{framed}
\noindent\textit{Scale pages to fit US Letter paper}
\par
\vspace...
...ib.All(pdf), Cpdflib.usletter)!
\end{minipage}\\ [5mm]
\end{tabular}\end{framed}



root 2008-12-01