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

Function JM_UnicodeFromStr

src/__init__.py:18552–18558  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

18550
18551
18552def JM_UnicodeFromStr(s):
18553 if s is None:
18554 return ''
18555 if isinstance(s, bytes):
18556 s = s.decode('utf8')
18557 assert isinstance(s, str), f'{type(s)=} {s=}'
18558 return s
18559
18560
18561def JM_add_annot_id(annot, stem):

Callers 12

_get_redact_valuesMethod · 0.85
blendmodeMethod · 0.85
file_infoMethod · 0.85
infoMethod · 0.85
_embfile_infoMethod · 0.85
FormFontsMethod · 0.85
extract_fontMethod · 0.85
xref_get_keyMethod · 0.85
JM_get_widget_propertiesFunction · 0.85
JM_get_scriptFunction · 0.85
JM_insert_fontFunction · 0.85
JM_listbox_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…