poppler package

poppler.Alignment

alias of alignment_enum

poppler.CaseSensitivity

alias of case_sensitivity_enum

poppler.DestinationType

alias of type_enum

poppler.Direction

alias of direction_enum

poppler.FontType

alias of type_enum

poppler.ImageFormat

alias of format_enum

poppler.LineMode

alias of line_mode_enum

poppler.PageBox

alias of page_box_enum

poppler.PageLayout

alias of page_layout_enum

poppler.PageMode

alias of page_mode_enum

poppler.PageOrientation

alias of orientation_enum

class poppler.PageRenderer

Bases: object

PageRenderer allows to render a Page object to an Image.

It is a wrapper for poppler.cpp.page_renderer.page_renderer.

static can_render()

Tell whether poppler was compiled with the Splash render backend.

This should always return True. If it returns False, render_page() will systematically return an invalid Image.

Returns:

whether a render backend was compiled with poppler.

Return type:

bool

property image_format
property line_mode
property paper_color
property render_hints
render_page(page, xres=72.0, yres=72.0, x=-1, y=-1, w=-1, h=-1, rotate=<rotation_enum.rotate_0: 0>)
set_render_hint(hint, on=True)
poppler.Permission

alias of permission_enum

class poppler.Rectangle(x=0, y=0, w=0, h=0, poppler_object=None)

Bases: object

as_tuple()
property bottom
classmethod from_object(poppler_object)
property height
is_empty()
property left
property right
property top
property width
property x
property y
poppler.RenderHint

alias of render_hint

poppler.Rotation

alias of rotation_enum

poppler.SearchDirection

alias of search_direction_enum

poppler.TextLayout

alias of text_layout_enum

poppler.TransitionType

alias of type_enum

poppler.enable_logging(arg0: bool) None
poppler.load(arg, owner_password=None, user_password=None)
poppler.load(arg: str, owner_password=None, user_password=None)
poppler.load(arg: Path, owner_password=None, user_password=None)
poppler.load(arg: bytes, owner_password=None, user_password=None)
poppler.load_from_data(file_data: bytes, owner_password=None, user_password=None)
poppler.load_from_file(file_name, owner_password=None, user_password=None)
poppler.set_data_dir(new_data_dir: str) bool
poppler.version()

Get poppler version, as a tuple

Returns:

(major, minor, micro)

Return type:

Tuple[int, int, int]

poppler.version_string() str

Submodules