Php 使用Princexml创建PDF文件

Php 使用Princexml创建PDF文件,php,pdf,princexml,Php,Pdf,Princexml,我想将php页面中的表转换为pdf。。我通过表单元素传递它,然后在另一个页面上检索。 我尝试过使用很多pdf转换器,比如fpdf、dompdf和其他,但遗憾的是没有一个有效。 总是有一些错误。我还通过mpdf发现它工作正常,但不得不要求客户手动保存pdf 我尝试使用phpwrapper文件prince.php使用princexml。但是我越来越 不推荐的错误。![][1] 我使用的代码如下 <body> <?php include "prince.php"; $prince

我想将php页面中的表转换为pdf。。我通过表单元素传递它,然后在另一个页面上检索。 我尝试过使用很多pdf转换器,比如fpdf、dompdf和其他,但遗憾的是没有一个有效。 总是有一些错误。我还通过mpdf发现它工作正常,但不得不要求客户手动保存pdf

我尝试使用phpwrapper文件prince.php使用princexml。但是我越来越 不推荐的错误。![][1]

我使用的代码如下

<body>
<?php 
include "prince.php";
$prince = new Prince('../../../Program Files (x86)/Prince/Engine/bin/prince.exe');
$prince->convert_file_to_file("license.txt","license.pdf",'inf');
$msg=array("hey","hello");
echo $prince->convert_string_to_file("Rahul","rahul.pdf",$msg[]);
?>
</body>`
我想要echo$prince->convert_string_to_fileRahul,rahul.pdf,$msg[];工作。
请帮忙。。。坚持了很长时间

不推荐使用哪个命令?我在$prince->convert_string_to_fileRahul,rahul.pdf,$msg[]中发送的第三个参数;