MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / get_sigflags

Method get_sigflags

src/__init__.py:5181–5195  ·  view source on GitHub ↗

Get the /SigFlags value.

(self)

Source from the content-addressed store, hash-verified

5179 return val
5180
5181 def get_sigflags(self):
5182 """Get the /SigFlags value."""
5183 pdf = _as_pdf_document(self, required=0)
5184 if not pdf.m_internal:
5185 return -1 # not a PDF
5186 sigflags = mupdf.pdf_dict_getl(
5187 mupdf.pdf_trailer(pdf),
5188 PDF_NAME('Root'),
5189 PDF_NAME('AcroForm'),
5190 PDF_NAME('SigFlags'),
5191 )
5192 sigflag = -1
5193 if sigflags.m_internal:
5194 sigflag = mupdf.pdf_to_int(sigflags)
5195 return sigflag
5196
5197 def get_toc(
5198 doc: 'Document',

Callers 2

showFunction · 0.80
showFunction · 0.80

Calls 3

_as_pdf_documentFunction · 0.85
PDF_NAMEFunction · 0.85
pdf_trailerMethod · 0.80

Tested by

no test coverage detected