diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-12-26 20:46:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-12-26 20:46:25 +0100 |
commit | c76a3d84a81c59f880ecac26bf4935e1bb76afc1 (patch) | |
tree | 96efece94bbac82b9065ad12437012b7789e5749 /test | |
parent | fb12e1716d653cce57b7b6acfa16c44c748969b4 (diff) | |
download | mupdf-c76a3d84a81c59f880ecac26bf4935e1bb76afc1.tar.xz |
fixes to compile under mingw/msys
Diffstat (limited to 'test')
-rw-r--r-- | test/pdfrip.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/pdfrip.c b/test/pdfrip.c index 6e3f6bef..0da00d2b 100644 --- a/test/pdfrip.c +++ b/test/pdfrip.c @@ -82,7 +82,7 @@ int main(int argc, char **argv) char *filename; pdf_xref *xref; pdf_pagetree *pages; - pdf_outlinetree *outlines; + pdf_outline *outlines; int c; char *password = ""; @@ -106,11 +106,15 @@ int main(int argc, char **argv) filename = argv[optind++]; - error = pdf_openpdf(&xref, filename); + error = pdf_newxref(&xref); if (error) fz_abort(error); - error = pdf_decryptpdf(xref); + error = pdf_loadxref(xref, filename); + if (error) + fz_abort(error); + + error = pdf_decryptxref(xref); if (error) fz_abort(error); @@ -136,7 +140,7 @@ int main(int argc, char **argv) if (outlines) { printf("outlines\n"); - pdf_debugoutlinetree(outlines); + pdf_debugoutline(outlines, 0); printf("\n"); } } @@ -150,7 +154,7 @@ int main(int argc, char **argv) showpage(xref, pdf_getpageobject(pages, page - 1)); } - pdf_closepdf(xref); + pdf_closexref(xref); return 0; } |