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

Function JM_norm_rotation

src/__init__.py:20990–21000  ·  view source on GitHub ↗

# return normalized /Rotate value:one of 0, 90, 180, 270

(rotate)

Source from the content-addressed store, hash-verified

20988
20989
20990def JM_norm_rotation(rotate):
20991 '''
20992 # return normalized /Rotate value:one of 0, 90, 180, 270
20993 '''
20994 while rotate < 0:
20995 rotate += 360
20996 while rotate >= 360:
20997 rotate -= 360
20998 if rotate % 90 != 0:
20999 return 0
21000 return rotate
21001
21002
21003def JM_object_to_buffer(what, compress, ascii):

Callers 3

set_rotationMethod · 0.85
JM_convert_to_pdfFunction · 0.85
JM_page_rotationFunction · 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…