It is possible to attach a log which also contains JavaScript debug output (e.g. produced with console.log()) to the resulting PDF.


When using the PDFreactor Preview this can be achieved by pressing the "Create PDF" icon and enable the "Debug Mode" check box in the "General" tab of the dialog that is opened.

 

If you have integrated PDFreactor into your application you can enable the debug mode like this:


Java

config.setEnableDebugMode(true);

C#

config.EnableDebugMode = true;

PHP

$config = array(
    "enableDebugMode" => true,
    // ...
);

JavaScript/Node.js

config = { 
    enableDebugMode: true,
    // ...
};

Python

config = {
    "addLinks": True,
    # ...
}

Ruby

config = {
    addLinks: true,
    # ...
}

Perl

$config = {
    "enableDebugMode" => true,
    # ...
};

CLI

-v --enableDebugMode

REST

{ "enableDebugMode": true }

More information about the debug mode can be found here.