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