ppd_get_page_length(3)

ppd_get_page_length3

Set of functions for retrieving the page dimension from a ppd file.

Usage

#include <ppd.h>

float ppd_get_page_length(PpdFile *ppd, const char *name);

PpdSize *ppd_get_page_size(PpdFile *ppd, const char *name);

float ppd_get_page_width(PpdFile *ppd, const char *name);

Overview

These function provide the programmer with a means of querying the dimensions of a given page layout within a PPD file. All three function accept two parameters as input. The first is a pointer to a valid PpdFile structure (see ppd_file_new(3)), and the second if the name of the page layout to be queried.

Return value

ppd_get_page_length()

Returns the page length for a given layout

ppd_get_page_size()

Returns a pointer to the page size record for the given size

ppd_get_page_width()

Returns the page width for a given layout

Releases

Unchanged in 11 releases since Debian 3.0 (Woody).

  1. 3.0–12

Author

This man page was written by Gerald Carter <[email protected]>. It was updated by Mark Fasheh <[email protected]> to reflect changes in libppd 0.5. Some of the code was originally part of the Common UNIX Printing System (CUPS).

From libppd-dev 2:0.10-9 in Debian 12 (Bookworm). Parsed by carta from the page's man source.