From 05f0966f64f56ad3348ce8569324ee6c3e692aa8 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 13 Mar 2010 21:14:18 +0100 Subject: Imported Debian patch 0.996-4 --- debian/patches/fix_pdf_xref.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 debian/patches/fix_pdf_xref.patch (limited to 'debian/patches/fix_pdf_xref.patch') diff --git a/debian/patches/fix_pdf_xref.patch b/debian/patches/fix_pdf_xref.patch new file mode 100644 index 0000000..302caae --- /dev/null +++ b/debian/patches/fix_pdf_xref.patch @@ -0,0 +1,20 @@ +Description: Fix xref table generation + Mark non-existent objects as free in the xref table. +Author: Julien BLACHE +Forwarded: yes + +Index: xsane-0.996/src/xsane-multipage-project.c +=================================================================== +--- xsane-0.996.orig/src/xsane-multipage-project.c 2010-03-13 20:42:27.672742804 +0100 ++++ xsane-0.996/src/xsane-multipage-project.c 2010-03-13 20:43:01.671742346 +0100 +@@ -973,6 +973,10 @@ + else if (output_format == XSANE_PDF) + { + xsane_save_pdf_create_document_header(outfile, &xref, pages, preferences.save_pdf_flatedecoded); ++ ++ /* Objects 4 and 5 are unused and do not exist */ ++ xref.obj[4] = 0; ++ xref.obj[5] = 0; + } + } + #ifdef HAVE_LIBTIFF -- cgit v1.2.3