forked from ssnippets/ocrpdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conv.h
15 lines (15 loc) · 782 Bytes
/
conv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <mupdf/fitz.h>
//#include <leptonica/allheaders.h>
//#include <tesseract/capi.h>
char* iterate(char* filename, int zoom, int rotation, int chipout, fz_rect chip_bounds);
char* readFromImage(fz_pixmap *);
void concat_str(char*, char*);
void die(const char *errstr);
void _my_init(char* filename);
void _my_release(void);
int get_pagecount(char* filename);
int render(char *filename, int pagenumber, int zoom, int rotation, int write_file, int do_chipout, fz_rect chip_bounds);
char* readFromImage(fz_pixmap *pix);
void concat_str(char* dest, char* src);
char* iterate(char* filename, int zoom, int rotation, int chipout, fz_rect chip_bounds);
void match_pdf_text(char* filename, char* regex, int zoom, int** rtv, int* size, int chipout, fz_rect chip_bounds);