Flags

Details

class Poppler.AnnotFlag(value)

Bases: GObject.GFlags

UNKNOWN = 0
INVISIBLE = 1
LOCKED = 128
NO_ROTATE = 16
HIDDEN = 2
TOGGLE_NO_VIEW = 256
NO_VIEW = 32
PRINT = 4
LOCKED_CONTENTS = 512
READ_ONLY = 64
NO_ZOOM = 8
class Poppler.FindFlags(value)

Bases: GObject.GFlags

Flags using while searching text in a page

New in version 0.22.

DEFAULT = 0

use default search settings

CASE_SENSITIVE = 1

do case sensitive search

MULTILINE = 16

allows to match on text spanning from end of a line to the next line. (Currently it won’t match on text spanning more than two lines.) Automatically ignores hyphen at end of line, and allows whitespace in search term to match on newline str.

New in version 21.05.0.

BACKWARDS = 2

search backwards

WHOLE_WORDS_ONLY = 4

search only whole words

IGNORE_DIACRITICS = 8

do diacritics insensitive search, i.e. ignore accents, umlauts, diaeresis,etc. while matching. This option will be ignored if the search term is not pure ascii.

New in version 0.73.

class Poppler.Permissions(value)

Bases: GObject.GFlags

Permissions

OK_TO_PRINT = 1

document can be printer

OK_TO_PRINT_HIGH_RESOLUTION = 128

document can be printer at high resolution.

New in version 0.18.

OK_TO_FILL_FORM = 16

interactive form fields can be filled in

OK_TO_MODIFY = 2

document contents can be modified

FULL = 255

document permits all operations

OK_TO_EXTRACT_CONTENTS = 32

extract text and graphics (in support of accessibility to users with disabilities or for other purposes).

New in version 0.18.

OK_TO_COPY = 4

document can be copied

OK_TO_ASSEMBLE = 64

assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images).

New in version 0.18.

OK_TO_ADD_NOTES = 8

annotations can added to the document

class Poppler.PrintFlags(value)

Bases: GObject.GFlags

Printing flags

New in version 0.16.

DOCUMENT = 0

print main document contents

ALL = 1

print main document contents and all markup annotations

MARKUP_ANNOTS = 1

print document and markup annotations

STAMP_ANNOTS_ONLY = 2

print document and only stamp annotations

class Poppler.SignatureValidationFlags(value)

Bases: GObject.GFlags

Signature validation flags

New in version 21.12.0.

VALIDATE_CERTIFICATE = 1

Whether to validate also the certificate of the signature

WITHOUT_OCSP_REVOCATION_CHECK = 2

Whether to not do OCSP (Online Certificate Status Protocol) revocation check

USE_AIA_CERTIFICATE_FETCH = 4

Whether to use AIA (Authority Information Access) extension for certificate fetching

class Poppler.StructureGetTextFlags(value)

Bases: GObject.GFlags

NONE = 0

No flags.

RECURSIVE = 1

For non-leaf, non-content elements, recursively obtain the text from all the elements enclosed in the subtree.

class Poppler.ViewerPreferences(value)

Bases: GObject.GFlags

Viewer preferences

UNSET = 0

no preferences set

HIDE_TOOLBAR = 1

hider toolbars when document is active

CENTER_WINDOW = 16

position the document’s window in the center of the screen

HIDE_MENUBAR = 2

hide menu bar when document is active

DISPLAY_DOC_TITLE = 32

display document title in window’s title bar

HIDE_WINDOWUI = 4

hide UI elements in document’s window

DIRECTION_RTL = 64

the predominant reading order for text is right to left

FIT_WINDOW = 8

resize document’s window to fit the size of the first displayed page