def __init__(self): self.dll=cdll.libmupdf22 self.dll.fz_bound_page.argtypes=[c_void_p, c_void_p] self.dll.fz_bound_page.restype=Rect self.dll.fz_new_pixmap_with_bbox.argtypes=[c_int, c_int, BBox] self.dll.fz_new_pixmap_with_bbox.restype=c_void_p self.dll.fz_run_page.argtypes=[c_void_p, c_void_p, c_void_p, Matrix, c_void_p] self.dll.fz_run_page.restype=None self.dll.fz_count_pages.argtypes=[c_void_p] self.dll.fz_count_pages.restype=c_int self.dll.fz_open_document_with_stream.argtypes=[c_void_p, c_char_p, c_void_p] self.dll.fz_open_document_with_stream.restype=c_void_p self.dll.fz_close_document.argtypes=[c_void_p] self.dll.fz_close_document.restype=None self.dll.fz_free_page.argtypes=[c_void_p, c_void_p] self.dll.fz_free_page.restype=None self.dll.fz_find_device_colorspace.argtypes=[c_void_p, c_char_p] self.dll.fz_find_device_colorspace.restype=c_void_p MuPdfBase.__init__(self)
def __init__(self): self.dll=cdll.libmupdf self.dll.pdf_bound_page.argtypes=[c_void_p, c_void_p, POINTER(Rect)] self.dll.pdf_bound_page.restype=POINTER(Rect) self.dll.fz_new_pixmap_with_bbox.argtypes=[c_void_p, c_void_p, POINTER(BBox)] self.dll.fz_new_pixmap_with_bbox.restype=c_void_p self.dll.pdf_run_page.argtypes=[c_void_p, c_void_p, c_void_p, POINTER(Matrix), c_void_p] self.dll.pdf_run_page.restype=None self.dll.fz_write_pam.argtypes=[c_void_p, c_void_p, c_char_p, c_int] self.dll.fz_write_pam.restype=None self.dll.fz_write_pbm.argtypes=[c_void_p, c_void_p, c_char_p] self.dll.fz_write_pbm.restype=None self.dll.pdf_count_pages.argtypes=[c_void_p] self.dll.pdf_count_pages.restype=c_int self.dll.pdf_open_document_with_stream.argtypes=[c_void_p, c_void_p] self.dll.pdf_open_document_with_stream.restype=c_void_p self.dll.pdf_close_document.argtypes=[c_void_p] self.dll.pdf_close_document.restype=None self.dll.pdf_free_page.argtypes=[c_void_p, c_void_p] self.dll.pdf_free_page.restype=None self.dll.fz_lookup_device_colorspace.argtypes=[c_void_p, c_char_p] self.dll.fz_lookup_device_colorspace.restype=c_void_p MuPdfBase.__init__(self)