summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-xref.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-08-22 11:17:07 +0100
committerRobin Watts <robin.watts@artifex.com>2013-08-22 11:20:30 +0100
commit0dc6ea4e4dd36ff69b54fa49ae397d2b98fe84b2 (patch)
tree5505b571b93c6a19a14a2595199c42ed9886e60d /source/pdf/pdf-xref.c
parent768a56a43c8104a0292f4a35e85cde12fbb40a5c (diff)
downloadmupdf-0dc6ea4e4dd36ff69b54fa49ae397d2b98fe84b2.tar.xz
Add support for writing of xref streams
Use of the feature is currently enabled only in the case that a file that already contains xref streams is being updated incrementally. To do so in that case is necessary because an old-style xref is then not permitted. This fixes bug #694527
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r--source/pdf/pdf-xref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index eaf250cf..a8aace68 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -533,6 +533,8 @@ pdf_read_new_xref_section(pdf_document *doc, fz_stream *stm, int i0, int i1, int
entry->gen = w2 ? c : 0;
}
}
+
+ doc->has_xref_streams = 1;
}
/* Entered with file locked, remains locked throughout. */