poppler package

poppler.Alignment

alias of poppler.cpp.page_transition.alignment_enum

poppler.CaseSensitivity

alias of poppler.cpp.global_.case_sensitivity_enum

poppler.DestinationType

alias of poppler.cpp.destination.type_enum

poppler.Direction

alias of poppler.cpp.page_transition.direction_enum

poppler.FontType

alias of poppler.cpp.font.type_enum

poppler.ImageFormat

alias of poppler.cpp.image.format_enum

poppler.LineMode

alias of poppler.cpp.page_renderer.line_mode_enum

poppler.PageBox

alias of poppler.cpp.global_.page_box_enum

poppler.PageLayout

alias of poppler.cpp.document.page_layout_enum

poppler.PageMode

alias of poppler.cpp.document.page_mode_enum

poppler.PageOrientation

alias of poppler.cpp.page.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 poppler.cpp.global_.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 poppler.cpp.page_renderer.render_hint

poppler.Rotation

alias of poppler.cpp.global_.rotation_enum

poppler.SearchDirection

alias of poppler.cpp.page.search_direction_enum

poppler.TextLayout

alias of poppler.cpp.page.text_layout_enum

poppler.TransitionType

alias of poppler.cpp.page_transition.type_enum

poppler.load(arg, 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