summaryrefslogtreecommitdiff
path: root/apps/pdfshow.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-05-29 12:57:41 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2013-05-29 13:03:21 +0100
commit2e7007ca39bcea9b7688f6cc5cfd6bb43eb8630c (patch)
tree6f7923bf7616e51859f4c0f89a8b08c029cd778c /apps/pdfshow.c
parentc630e8e213f5b697b3b78989ba866fed9dd0d45f (diff)
downloadmupdf-2e7007ca39bcea9b7688f6cc5cfd6bb43eb8630c.tar.xz
Access the xref table via an interface
Avoid all direct access to the xref table so that the impementation can be altered to add new features
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r--apps/pdfshow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c
index 7ccfd50d..02cf6dbb 100644
--- a/apps/pdfshow.c
+++ b/apps/pdfshow.c
@@ -161,7 +161,8 @@ static void showgrep(char *filename)
len = pdf_count_objects(doc);
for (i = 0; i < len; i++)
{
- if (doc->table[i].type == 'n' || doc->table[i].type == 'o')
+ pdf_xref_entry *entry = pdf_get_xref_entry(doc, i);
+ if (entry->type == 'n' || entry->type == 'o')
{
fz_try(ctx)
{