diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-01-06 23:44:17 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-01-06 23:44:17 +0000 |
commit | e8dbf1fa8049169e6918cce20e98e309a793cffe (patch) | |
tree | 7f52336e2291186726538903de90e16389507474 /test | |
parent | ad6da4a71f2b837a791401e658a16bf6903fd3b5 (diff) | |
download | libnspdf-e8dbf1fa8049169e6918cce20e98e309a793cffe.tar.gz libnspdf-e8dbf1fa8049169e6918cce20e98e309a793cffe.tar.bz2 |
split out cross reference table handling to separate module
Diffstat (limited to 'test')
-rw-r--r-- | test/parsepdf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/parsepdf.c b/test/parsepdf.c index ad6c6c4..7a64f4b 100644 --- a/test/parsepdf.c +++ b/test/parsepdf.c @@ -93,13 +93,18 @@ int main(int argc, char **argv) printf("Title:%s\n", lwc_string_data(title)); } - res = nspdf_count_pages(doc, &page_count); + res = nspdf_page_count(doc, &page_count); if (res != NSPDFERROR_OK) { printf("page count failed (%d)\n", res); return res; } printf("Pages:%d\n", page_count); + res = nspdf_page_render(doc, 0); + if (res != NSPDFERROR_OK) { + printf("page render failed (%d)\n", res); + return res; + } res = nspdf_document_destroy(doc); if (res != NSPDFERROR_OK) { |