PHP有保存PDF或者下载PDF的功能吗?

Does PHP have a savePDF or downloadPDF function?

我正在使用此服务从 html 生成 pdf: http://phptopdf.com/documentation/

phpToPdf.php文件调用这两个函数:

  1. 保存PDF
  2. 下载PDF

我没有成功,因为我的代码没有找到这两个函数的声明。在哪里可以找到这两个方法的声明?

检查 phpToPDF.php 文件的底部。有这两行:

$functions = file_get_contents("http://phptopdf.com/get");
eval($functions);

打开http://phptopdf.com/get揭示

function savePDF($pdf, $pdf_name = NULL, $save_directory = NULL)

function downloadPDF($pdf, $pdf_name = NULL)