[NTG-pdftex] [pdftex-Bugs][4347] "Error (202): Command token too long" output to stderr rather than stdout, without necessary info

pdftex-bugs at sarovar.org pdftex-bugs at sarovar.org
Sat Mar 3 15:34:30 CET 2012

Bugs item #4347, was opened at 2012-03-03 06:34
Status: Open
Priority: 3
Submitted By: Ben Crowell (bcrowell)
Assigned to: Nobody (None)
Summary: "Error (202): Command token too long" output to stderr rather than stdout, without necessary info 
Category: PDF inclusion
Group: v1.40.8
Resolution: None

Initial Comment:
Recent versions of pdftex sometimes print the error message "Error (202): Command token too long" to stderr. Since the message is not interleaved with pdtex's other output, and the message comes without any context, it becomes difficult or impossible for the user to know what is causing the error or what it means. This has been discussed on stackexchange:


Based on this discussion, it sounds like this occurs when the poppler library is trying to parse a pdf file as input and doesn't like it. I don't know if it's poppler itself that is printing messages to stderr; if so, then this is a bug in poppler, not pdftex. (A library shouldn't be doing I/O to stderr.)

I realize that this would be a more helpful bug report if I could provide an example of a pdf file that was causing the error, but this is occurring for me on a file that pulls in a large number of pdf images, and I don't have time right now to figure out which one is the problem.

pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib; using zlib
Compiled with poppler version 0.16.7


You can respond by visiting: 

More information about the ntg-pdftex mailing list