diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2015-04-16 15:26:20 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2015-04-16 15:26:20 +0100 |
commit | 6d1bde2bad1afeb610735f7ea53cabd7d3120fbe (patch) | |
tree | fec943692e5aa4e8ae57fefe889052dd2ddba39a | |
parent | 4dce3f3cb2ece5795312a85c5ac2693ff8293169 (diff) | |
download | ghostpdl-6d1bde2bad1afeb610735f7ea53cabd7d3120fbe.tar.gz |
PDF interpreter - additional debugging option
Added a 'stdoutprint' to go along with stderrprint, this allows us to
have the 'pdfformaterror' and other informative messages sent to stdout
instead of stderr.
When capturing stdout and stderr for debugging purposes it can be useful to
have the logging/debug messages go to the same place as the error messages
in order that they are captured properly 'interleaved'.
-rw-r--r-- | gs/Resource/Init/pdf_main.ps | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gs/Resource/Init/pdf_main.ps b/gs/Resource/Init/pdf_main.ps index f4eafd940..cc775f2b7 100644 --- a/gs/Resource/Init/pdf_main.ps +++ b/gs/Resource/Init/pdf_main.ps @@ -1107,11 +1107,16 @@ currentdict /xref-char-dict undef } bind def /stderrfile (%stderr) (w) file def +/stdoutfile (%stdout) (w) file def /stderrprint { % <string> stderrprint - //stderrfile dup 3 -1 roll writestring flushfile } bind def +/stdoutprint { % <string> stderrprint - + //stdoutfile dup 3 -1 roll writestring flushfile +} bind def + /pdfformaterror { % <string> pdfformaterror - stderrprint /Repaired //true store |