2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-05 03:40:53 +00:00

Fix another case of errors written to stdout (fixes #438)

This commit is contained in:
Jay Berkenbilt 2020-10-20 17:48:30 -04:00
parent c60af08a31
commit 90217e6686
5 changed files with 5 additions and 6 deletions

1
TODO
View File

@ -2,7 +2,6 @@ Candidates for upcoming release
===============================
* Quick issues:
* #438: things written to stdout instead of stderr; --no-warn issues
* Add --warning-exit-0 option. Search for --no-warn in the docs.
* Easy build/test

View File

@ -3513,14 +3513,14 @@ static void do_check(QPDF& pdf, Options& o, int& exit_code)
catch (QPDFExc& e)
{
okay = false;
std::cout << "page " << pageno << ": "
std::cerr << "ERROR: page " << pageno << ": "
<< e.what() << std::endl;
}
}
}
catch (std::exception& e)
{
std::cout << e.what() << std::endl;
std::cerr << "ERROR: " << e.what() << std::endl;
okay = false;
}
if (okay)

View File

@ -5,4 +5,4 @@ File is linearized
WARNING: linearization-large-vector-alloc.pdf (linearization hint stream: object 62 0, offset 1282): expected endstream
WARNING: linearization-large-vector-alloc.pdf (linearization hint stream: object 62 0, offset 1183): attempting to recover stream length
WARNING: linearization-large-vector-alloc.pdf (linearization hint stream: object 62 0, offset 1183): recovered stream length: 106
overflow reading bit stream
ERROR: overflow reading bit stream

View File

@ -2,4 +2,4 @@ checking pages-loop.pdf
PDF Version: 1.3
File is not encrypted
File is not linearized
pages-loop.pdf (object 3 0): Loop detected in /Pages structure (getAllPages)
ERROR: pages-loop.pdf (object 3 0): Loop detected in /Pages structure (getAllPages)

View File

@ -6,4 +6,4 @@ WARNING: split-content-stream-errors.pdf (offset 557): error decoding stream dat
WARNING: split-content-stream-errors.pdf (offset 557): stream will be re-processed without filtering to avoid data loss
WARNING: page object 3 0 (item index 0 (from 0)): ignoring non-stream in an array of streams
WARNING: split-content-stream-errors.pdf (offset 557): error decoding stream data for object 6 0: LZWDecoder: bad code received
page 1: content stream (content stream object 6 0): errors while decoding content stream
ERROR: page 1: content stream (content stream object 6 0): errors while decoding content stream