Created attachment 109153 [details] A PDF file with two pages The PDF files produced by pdfseparate appear to have a broken xref table. It is trivially repeatable - an input file and two page files attached, process with "pdfseparate file.pdf page-%d.pdf" For example, this is what mupdf says when trying to view such a file: $ mupdf page-1.pdf warning: broken xref section, proceeding anyway. warning: ... repeated 2 times ... This happens with all files I have tried.
Created attachment 109154 [details] An input PDF file with two pages
Created attachment 109155 [details] The first page, extracted by pdfseparate
Created attachment 109156 [details] The second page, extracted by pdfseparate
This is on 0.26.5 as installed by the OpenBSD port.
I think You should ask the mupdf developper why mupdf means that the xref section is broken. I looked into the PDFs with a text editor and can't find any problems in the separated pages, poppler can use these PDFs without any problems and even acrobat reader and/or professional doesn't find any problems.
Here is a description of what exactly is wrong with the file: http://bugs.ghostscript.com/show_bug.cgi?id=695672
Created attachment 109218 [details] [review] write correct size in trailer dict Okay, the mupdf developper are right. Haven't encountered that until now because nobody cares beside mupdf. @Albert: this patch writes the correct size entry in the trailer dict according spec 32000-1
Pushed :)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.