SetPageLayout
function specifies the page layout to be used
when a document is opened in, for instance, Acrobat. The possible
values are provided in the layout
object in the Cpdflib
module:
For instance:
The page mode in a PDF file defines how a viewer should display the
document when first opened and can be set with the SetPageMode
function. Possible values, in the pagemode
object in cpdflib
are:
For instance:
Page information (media box, crop box) can be returned with the function GetPageInfo
, which takes a document, and returns an array of page_info
objects, one for each page in the document.
Each object has two members mediabox
and cropbox
, each of which is a box
object. A box object contains four floating point objects (minx
, maxx
, miny
, maxy
) describing the box in question. For example: