diff options
author | Tor Andersson <tor@ghostscript.com> | 2005-01-11 07:19:08 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2005-01-11 07:19:08 +0100 |
commit | 4a6def1aebcb61599f9d975e92079aad5bb423c6 (patch) | |
tree | 65d7ae5520822cc10b79ef5d421672f5b7d6f435 /apps/showcmap.c | |
parent | 15db9438f7a852643bb2b5e81e67de4eb805b173 (diff) | |
download | mupdf-4a6def1aebcb61599f9d975e92079aad5bb423c6.tar.xz |
rename apps directory and reorganize macpdf.app
Diffstat (limited to 'apps/showcmap.c')
-rw-r--r-- | apps/showcmap.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/showcmap.c b/apps/showcmap.c new file mode 100644 index 00000000..3e6e5e8e --- /dev/null +++ b/apps/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], FZ_READ); + if (err) + fz_abort(err); + + err = pdf_parsecmap(&cmap, file); + if (err) + fz_abort(err); + + fz_debugcmap(cmap); + + return 0; +} + |