Device - PyMuPDF 1.26.1 documentation (original) (raw)

Back to top

Toggle table of contents sidebar

The different format handlers (pdf, xps, etc.) interpret pages to a “device”. Devices are the basis for everything that can be done with a page: rendering, text extraction and searching. The device type is determined by the selected construction method.

Class API

class Device#

__init__(self, object, clip)#

Constructor for either a pixel map or a display list device.

Parameters:

__init__(self, textpage, flags=0)#

Constructor for a text page device.

Parameters: