Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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
1  
Can you clarify what (if any) connection this question has to TeX? It sounds off-topic. –  Lev Bishop May 28 '11 at 14:20
2  
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
2  
@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

1 Answer 1

up vote 2 down vote accepted

I'm going to guess that this was a bug in pdftex 1.40.10 (TL2009) that was fixed for 1.40.11 (TL2010) with svn revision 581. Here's the svn diff. Try updating to TL2010.

share|improve this answer
    
I updated to TeX Live 2011 and I no longer get the warning. –  N.N. Oct 18 '11 at 6:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.