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:


// PHP

$config = array(

    "enableDebugMode"=> true,

    ...

);


// Java library

config.setEnableDebugMode(true);


// REST API

{ "enableDebugMode": true }


// JavaScript & Node.js 

config = { 

    enableDebugMode: true,

    ...

};


// .NET

config.EnableDebugMode = true;


// Perl

$config = {

    'enableDebugMode' => ('true'),

    ...

}


//Python

config = {

    'addLinks': True,

    ...

}


//Ruby

config = {

    'addLinks': true,

    ...

}


More information about the debug mode can be found here.