mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-31 19:08:24 +00:00
Fix another case of errors written to stdout (fixes #438)
This commit is contained in:
parent
c60af08a31
commit
90217e6686
1
TODO
1
TODO
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user