(x)
| 22146 | |
| 22147 | |
| 22148 | def PDF_NAME(x): |
| 22149 | assert isinstance(x, str) |
| 22150 | ret = getattr(mupdf, f'PDF_ENUM_NAME_{x}') |
| 22151 | # Note that we return a (swig proxy for) pdf_obj*, not a mupdf.PdfObj. In |
| 22152 | # the C++ API, the constructor PdfObj::PdfObj(pdf_obj*) is marked as |
| 22153 | # explicit, but this seems to be ignored by SWIG. If SWIG started to |
| 22154 | # generate code that respected `explicit`, we would need to do `return |
| 22155 | # mupdf.PdfObj(ret)`. |
| 22156 | # |
| 22157 | # [Compare with extra.i, where we define our own PDF_NAME2() macro that |
| 22158 | # returns a mupdf::PdfObj.] |
| 22159 | return ret |
| 22160 | |
| 22161 | |
| 22162 | def UpdateFontInfo(doc: Document, info: typing.Sequence): |
no outgoing calls
no test coverage detected
searching dependent graphs…