From 0dc6ea4e4dd36ff69b54fa49ae397d2b98fe84b2 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Thu, 22 Aug 2013 11:17:07 +0100 Subject: 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 --- source/pdf/pdf-xref.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/pdf/pdf-xref.c') 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. */ -- cgit v1.2.3