Method Cairo.PDFSurface()->set_size()
- Method
set_size
void
set_size(float
|int
width_in_points
,float
|int
height_in_points
)- Description
Changes the size of a PDF surface for the current (and subsequent) pages.
This function should only be called before any drawing operations have been performed on the current page. The simplest way to do this is to call this function immediately after creating the surface or immediately after completing a page with either Context->show_page() or Context->copy_page().
- Parameter
width_in_points
new surface width, in points (1 point == 1/72.0 inch)
- Parameter
height_in_points
new surface height, in points (1 point == 1/72.0 inch)