poppler.document module

class poppler.document.Document(poppler_document, data=None)

Bases: object

PageLayout

alias of poppler.cpp.document.page_layout_enum

PageMode

alias of poppler.cpp.document.page_mode_enum

property author
create_destination_map()
create_font_iterator(page=0)
create_page(index)
create_toc()
property creation_date
property creator
embedded_files()
fonts()
has_embedded_files()
has_permission(which)
info_date(key)
info_key(key)
info_keys()
infos()

Get the document info dictionary as a dict object.

is_encrypted()
is_linearized()
is_locked()
property keywords
property metadata
property modification_date
property page_layout
property page_mode
property pages
property pdf_id
property pdf_version
property producer
remove_info()
save(file_name)
save_a_copy(file_name)
set_info_date(key, val)
set_info_key(key, val)
property subject
property title
unlock(owner_password, user_password)
exception poppler.document.LockedDocumentError

Bases: RuntimeError

class poppler.document.PDFId(permanent_id, update_id)

Bases: tuple

permanent_id

Alias for field number 0

update_id

Alias for field number 1

poppler.document.ensure_unlocked(fct)
poppler.document.load(arg, owner_password=None, user_password=None)
poppler.document.load_from_data(file_data: bytes, owner_password=None, user_password=None)
poppler.document.load_from_file(file_name, owner_password=None, user_password=None)