2

export_responses() を使用して応答を PDF 形式でエクスポートしようとしています。この関数は、応答を CSV または DOC 形式でエクスポートすると完全に機能しますが、PDF では常にエラーが発生します。

require_once 'src/org/jsonrpcphp/jsonRPCClient.php';
// with composer support just add the autoloader
// include_once 'vendor/autoload.php';

define( 'LS_BASEURL', 'http://localhost/limesurvey/');  // adjust this one to your actual LimeSurvey URL
define( 'LS_USER', 'admin' );
define( 'LS_PASSWORD', 'admin' );

// the survey to process
$survey_id=464658;

// instanciate a new client
$myJSONRPCClient = new org\jsonrpcphp\JsonRPCClient( LS_BASEURL.'/admin/remotecontrol' );

// receive session key
$sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );

$responses = $myJSONRPCClient->export_responses( $sessionKey, $survey_id, 'pdf', 'en','','','',11,11);

常にこのエラーが発生します

エラー

4

0 に答える 0