PDF24 DocTool: log file for -join in silent mode

Home › Forums › PDF24 Creator › PDF24 DocTool: log file for -join in silent mode

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #63920
    asdasd
    Participant

    Hi, Stefan.

    Is there any possibility to create a log file for any action? In my case I use DocTool and "-join" option to merge several PDFs. If i use CLI, i can see the merging process with some info, but in silent mode i can not sort out if things went wrong, i just can check if output file exist and that's all.

    Thus I want to know if it is possible to write a log to some file as I see it through CLI. Unfortunately I did not find any suitable info in the manual. Thanks a lot, Maksim.

    #65264
    PDF24 Support
    Moderator

    Hello,

    since version 11.31.0 the DocTool has the option -silent for unattended use. In silent mode no dialogs are shown. Instead, each error is written as a line starting with error: to the error output (stderr), and the DocTool ends with an exit code that tells you what went wrong, e.g. 0 = success, 2 = no input files, 6 = an operation failed. A successful run writes nothing.

    So in your script you can wait for the DocTool, check the exit code and redirect its error output into a file. Then you have a log of the failed runs.

    Details in the manual:

    A separate log file option with more details does not exist yet. Thank you for the suggestion, we will add it to our list.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.