summaryrefslogtreecommitdiff
path: root/test/showcmap.c
blob: 80575a4c2ff637f3b03793c9a87ac3cea14e6a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <fitz.h>
#include <mupdf.h>

int main(int argc, char **argv)
{
	fz_error *err;
	fz_cmap *cmap;
	fz_file *file;

	err = fz_openfile(&file, argv[1], O_RDONLY);
	if (err)
		fz_abort(err);

	err = pdf_parsecmap(&cmap, file);
	if (err)
		fz_abort(err);

	fz_debugcmap(cmap);

	return 0;
}