```{index} single: Cairo::PdfSurface ``` # Cairo::PdfSurface ```{pperl-module-badges} Cairo::PdfSurface ``` ## Functions ### Other Functions #### `restrict_to_version` Restricts the surface to features present in the given PDF version, named as `'1-4'`, `'1-5'`, `'1-6'` or `'1-7'`. #### [`set_metadata`](PdfSurface/set_metadata) Sets one document metadata field of the PDF. #### `set_page_label` Sets the label a PDF viewer shows for the current page, instead of its sheet number. #### `set_thumbnail_size` Asks for a thumbnail image of the current page, at most `$width` by `$height` pixels, to be embedded in the PDF. #### [`add_outline`](PdfSurface/add_outline) Adds an entry to the PDF's document outline (its bookmark tree) and returns the entry's id, for use as the parent of further entries. ```{toctree} :hidden: :maxdepth: 1 PdfSurface/set_metadata PdfSurface/add_outline ```