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.GFlagsFlags 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.GFlagsPermissions
- 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.GFlagsPrinting flags
New in version 0.16.
Deprecated since version 25.02: Use
Poppler.Page.render_full() andPoppler.RenderAnnotsFlagsinstead.- 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.RenderAnnotsFlags(value)¶
Bases:
GObject.GFlagsFlags to select which annotations to render. If the flag corresponding to a certain annotation type is on, then such annotation type will be rendered, when appropriate (e.g: won’t be renderer if the annotation is not visible). This allows to combine multiple flags, like
POPPLER_RENDER_ANNOTS_LINK | POPPLER_RENDER_ANNOTS_TEXT, or disable some specific annotations likePOPPLER_RENDER_ANNOTS_ALL & (~POPPLER_RENDER_ANNOTS_TEXT)New in version 25.02.
- PRINT_ALL = -32800771¶
render all possible annotations used for printing
- PRINT_MARKUP = -32800771¶
render markup annotations and default annotations used for printing
- NONE = 0¶
do not render annotations
- TEXT = 1¶
render text annotations
- SQUIGGLY = 1024¶
render squiggly annotations,
- SCREEN = 1048576¶
render screen annotations,
- POLYLINE = 128¶
render polyline annotations,
- SOUND = 131072¶
render sound annotations,
- SQUARE = 16¶
render square annotations,
- INK = 16384¶
render ink annotations,
- 3D = 16777216¶
- _3D = 16777216¶
render 3D annotations,
- LINK = 2¶
render link annotations
- STRIKEOUT = 2048¶
render strikeout annotations,
- PRINTERMARK = 2097152¶
render printermark annotations,
- HIGHLIGHT = 256¶
render highlight annotations,
- MOVIE = 262144¶
render movie annotations,
- CIRCLE = 32¶
render circle annotations,
- POPUP = 32768¶
render popup annotations,
- RICHMEDIA = 33554432¶
render richmedia annotations,
- FREETEXT = 4¶
render freetext annotations,
- STAMP = 4096¶
render stamp annotations,
- TRAPNET = 4194304¶
render trapnet annotations,
- UNDERLINE = 512¶
render underline annotations,
- PRINT_DOCUMENT = 524288¶
render the default annotations used for printing
- WIDGET = 524288¶
render widget annotations,
- PRINT_STAMP = 528384¶
render stamp annotations and default annotations used for printing
- POLYGON = 64¶
render polygon annotations,
- FILEATTACHMENT = 65536¶
render fileattachment annotations,
- ALL = 67108863¶
render all annotations
- LINE = 8¶
render line annotations,
- CARET = 8192¶
render caret annotations,
- WATERMARK = 8388608¶
render watermark annotations,
- class Poppler.SignatureValidationFlags(value)¶
Bases:
GObject.GFlagsSignature 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.GFlagsViewer 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