# qpdf warning: Cross-reference stream data has the wrong size

I compile the following with pdflatex (pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian))

\pdfminorversion=5% With these lines...
\pdfobjcompresslevel=3% ... commented out...
\pdfcompresslevel=9% ... there is no warning from qpdf.

\documentclass{minimal}

\begin{document}

bla

\end{document}


and run the qpdf on the resulting pdf qpdf --linearize paper.pdf paper.linearized.pdf, then I get the following warning:

WARNING: uppsats.pdf (xref stream, file position 9448): Cross-reference stream data has the wrong size; expected = 48; actual = 52

qpdf: operation succeeded with warnings; resulting file may have some problems

Is there any way to avoid or fix this problem other than commenting out the first three lines?

-
Is there actually a problem? The warning says that the operation succeeded. Do you see problems in the resulting file? If so, what kind? –  Seamus May 28 '11 at 12:52
I cannot spot any problems in the file when viewing it. I'm wondering what the warning means. Is there problems with cross-references? –  N.N. May 28 '11 at 13:23
Can you clarify what (if any) connection this question has to TeX? It sounds off-topic. –  Lev Bishop May 28 '11 at 14:20
Is paper.pdf produced by TeX? If so, which compilation method do you use? (dvi->dvips->ps2pdf? pdftex? xetex? luatex? dvi->dvipdfm? etc). Does this warning happen only for TeX-produced PDFs? Does it happen with all TeX-produced PDFs or only some (in which case, include a minimal example so others can reproduce your issue)? Without any details it's impossible even to tell even whether this question is on-topic, let alone give any meaningful answer. –  Lev Bishop May 31 '11 at 18:22
@Seamus: you assume wrongly :) The xref stream is kind of an index to the structures of the PDF. It contains information that permits random access to indirect objects within the file so that the entire file need not be read to locate any particular object. It is only present in PDF1.5 and later versions (before that there were xref tables), hence the \pdfminorversion connection. –  Lev Bishop Jun 1 '11 at 12:55