Sumatrapdf: Get message

Created on 28 Nov 2019  路  3Comments  路  Source: sumatrapdfreader/sumatrapdf

Hi,
how do I get an error message when I run a command using php?

All 3 comments

? are sure your question is related to SumatraPDF application which does not use PHP as such !

I'm guessing he's trying to call Sumatra with certain command-line params or using DDE commands from his PHP code. In either case @kjk this seems more like a question suited to a PHP programming forum/help site?

Sumatra is a windows program. There is no way to return error messages. You can check exit code to see if it's 0 (no problem) or 1 (error). You can also try to capture stdin and stdout to see whatever mupdf and we print there but this is a PHP question and I haven't actually verified this is possible.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yozhic picture yozhic  路  5Comments

Hassenky picture Hassenky  路  8Comments

klonuo picture klonuo  路  8Comments

lollita picture lollita  路  5Comments

Aliaksandr3by picture Aliaksandr3by  路  4Comments