I would like to print a document using PDFreactor using PHP.
Unfortunately, document generation is not performed when cookies are specified in the configuration. Leaving the cookie line, it prints our login page - with the correct one, since the login screen is displayed on the page if no session cookie was found.
$config = array(
"document"=> "http://localhost",
"logLevel"=> LogLevel::DEBUG,
"javaScriptMode" => JavaScriptMode::ENABLED_TIME_LAPSE,
"enableDebugMode" => true,
"cookies" => array("sid" => "abcdefghijklmno")
);
Can someone verify that the cookie transfer failed with PHP, or give advice on the correct syntax?
source
share