diff options
Diffstat (limited to 'apps/samtiff.c')
-rw-r--r-- | apps/samtiff.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/samtiff.c b/apps/samtiff.c new file mode 100644 index 00000000..80d3f051 --- /dev/null +++ b/apps/samtiff.c @@ -0,0 +1,23 @@ +#include "fitz.h" +#include "samus.h" + +extern fz_error *sa_readtiff(fz_file *); + +int main(int argc, char **argv) +{ + fz_error *error; + fz_file *file; + + error = fz_openfile(&file, argv[1], FZ_READ); + if (error) + fz_abort(error); + + error = sa_readtiff(file); + if (error) + fz_abort(error); + + fz_closefile(file); + + return 0; +} + |