Package: cairo

Function cairo:pdf-surface-restrict-to-version

Lambda List

cairo:pdf-surface-restrict-to-version (surface version)

Arguments

surface -- a PDF cairo:surface-t instance
version -- a cairo:pdf-version-t value

Details

Restricts the generated PDF file to the given version. See the cairo:pdf-versions function for a list of available version values that can be used here. This function should only be called before any drawing operations have been performed on the given surface. The simplest way to do this is to call this function immediately after creating the surface.
 

See also

2025-1-13