diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-09-27 02:27:42 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-09-27 02:27:42 +0200 |
commit | 970ce563601547adcaa131229bf296f5c3e2db3c (patch) | |
tree | a45902ad552b0a73c38382a487524c12ffebab4d /test/showcmap.c | |
parent | 6ddde92a3a45e970b05770633dc6a337d5d013c5 (diff) | |
download | mupdf-970ce563601547adcaa131229bf296f5c3e2db3c.tar.xz |
added pdf test apps
Diffstat (limited to 'test/showcmap.c')
-rw-r--r-- | test/showcmap.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/showcmap.c b/test/showcmap.c new file mode 100644 index 00000000..80575a4c --- /dev/null +++ b/test/showcmap.c @@ -0,0 +1,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; +} + |