Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
7639 views
1
#ifndef MuPDF_common_h
2
#define MuPDF_common_h
3
4
#include <UIKit/UIKit.h>
5
6
#undef ABS
7
#undef MIN
8
#undef MAX
9
10
#include "mupdf/fitz.h"
11
12
extern fz_context *ctx;
13
extern dispatch_queue_t queue;
14
extern float screenScale;
15
16
CGSize fitPageToScreen(CGSize page, CGSize screen);
17
18
int search_page(fz_document *doc, int number, char *needle, fz_cookie *cookie);
19
20
fz_rect search_result_bbox(fz_document *doc, int i);
21
22
CGDataProviderRef CreateWrappedPixmap(fz_pixmap *pix);
23
24
CGImageRef CreateCGImageWithPixmap(fz_pixmap *pix, CGDataProviderRef cgdata);
25
26
#endif
27
28