<?php
require 'prince.php';
//print_r() ;
//exit();
$prince = new Prince('D:\\prince\\engine\\bin\\prince.exe');
//$prince = new Prince('D:\prince\engine\bin\prince.exe');
header('Content-Type: application/pdf');
header('Content-Disposition: inline; filename="foo.pdf"');
$prince->convert_file_to_passthru('http://www.baidu.com');
?>
如上代码,打开网页提示不能加载pdf
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
看不到具体错误内容?