My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 40: evince displays: Loop in Pages tree
  Back to list
Status:  WorkingAsIntended
Owner:  pts...@gmail.com
Closed:  Apr 2012


 
Project Member Reported by pts...@gmail.com, Feb 10, 2011
See also  issue 39  (https://code.google.com/p/pdfsizeopt/issues/detail?id=39) with another bug with this book.pdf file.

Input:

* pdfsizeopt r143.
* http://algo.inria.fr/flajolet/Publications/book.pdf

Command:

./pdfsizeopt.py --use-pngout=true --use-jbig2=true --use-multivalent=true --do-unify-fonts=false book.pdf

It runs successfully, generates book.psom.pdf, that file works with Ghostscript without a warning or error, but xpdf and evince on Ubuntu Lucid display the following messages before displaying the PDF:

Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Page count in top-level pages object is incorrect
Sep 3, 2011
#2 cartho...@googlemail.com
Same here running Debian/squeeze - and a real problem, as the 2nd
pages with same content as before disappeared (generated by
pdflatex, viewed with evince and okular). gs works.

Maybe a special condition: AabcBabc > AabcB - the lost duplicated (by
LaTeX-source, no binary 'PDFtricks') pages at the tail of the
document.

Solution: --do-unify-pages=false

Result: 214325/40092/40101 bytes. Only nine bytes more!

Seems to be no problem of pdfsizeopt itself. No errors with evince@Debian/sid.

Apr 15, 2012
Project Member #3 pts...@gmail.com
Oddly enough --use-mutivalent=yes here generates book.psom.pdf, which is not viewable at all in evince. It's worth a closer look investigating what's going on.

In the meantime, do you have a smaller document with similar problems?
Apr 15, 2012
Project Member #4 pts...@gmail.com
Please discard my previous comment about --use-multivalent=yes . As of r191, it works as the following: with --do-unify-pages=yes, old evince displays the output it without any messages; with --do-unify-pages=no, Evince on Ubuntu Lucid print

Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Loop in Pages tree
Error: Page count in top-level pages object is incorrect

to stdout before displaying the PDF correctly.

There is nothing here to fix in pdfsizeopt, this seems to be a bug in xpdf, evince and libpoppler (all using the same codebase). Please report this bug against those projects, or use --do-unify-pages=no (or =false) as a workaround. If you think pdfsizeopt creates incorrect or invalid PDF, please leave a comment containing a reason why (preferably pointing to a paragraph into the PDF reference).
Status: WorkingAsIntended

Powered by Google Project Hosting