Function PDFSurface.setSize

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.showPage() or Context.copyPage().

Prototype

void setSize(
  double width,
  double height
);

Parameters

NameDescription
width width of the surface, in points (1 point == 1/72.0 inch)
height height of the surface, in points (1 point == 1/72.0 inch)

Authors

Johannes Pfau cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1