💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
libwkhtmltox是一个开源LGPLv3库,可使用QtWebKit渲染引擎将HTML渲染为PDF和各种图像格式 不支持windows 安装 ~~~ git clone https://github.com/krakjoe/wkhtmltox cd wkhtmltox phpize ./configure --with-wkhtmltox=/path/to/wkhtmltox/installation make sudo make install ~~~ 更新 ~~~ cd wkhtmltox phpize --clean git pull origin master phpize ./configure --with-wkhtmltox=/path/to/wkhtmltox/installation make sudo make install ~~~ * [wkhtmltox\PDF\Converter](https://www.php.net/manual/zh/class.wkhtmltox-pdf-converter.php)— PDF转换类 * [wkhtmltox\PDF\Converter::add](https://www.php.net/manual/zh/wkhtmltox-pdf-converter.add.php)—添加用于转换的对象 * [wkhtmltox\PDF\Converter::__construct](https://www.php.net/manual/zh/wkhtmltox-pdf-converter.construct.php)— 创建一个新的PDF转换器 * [wkhtmltox\PDF\Converter::convert](https://www.php.net/manual/zh/wkhtmltox-pdf-converter.convert.php)— 执行PDF转换 * [wkhtmltox\PDF\Converter::getVersion](https://www.php.net/manual/zh/wkhtmltox-pdf-converter.getversion.php)— 确定变频器版本 ***** * [wkhtmltox\PDF\Object](https://www.php.net/manual/zh/class.wkhtmltox-pdf-object.php)— wkhtmltox\PDF\Object类 * [wkhtmltox\PDF\Object::__construct](https://www.php.net/manual/zh/wkhtmltox-pdf-object.construct.php)— 创建一个新的PDF对象 ***** ***** * [wkhtmltox\Image\Converter](https://www.php.net/manual/zh/class.wkhtmltox-image-converter.php)—图像转换 类 * [wkhtmltox\Image\Converter::__construct](https://www.php.net/manual/zh/wkhtmltox-image-converter.construct.php)— 创建一个新的图像转换器 * [wkhtmltox\Image\Converter::convert](https://www.php.net/manual/zh/wkhtmltox-image-converter.convert.php)— 执行图像转换 * [wkhtmltox\Image\Converter::getVersion](https://www.php.net/manual/zh/wkhtmltox-image-converter.getversion.php)— 确定变频器版本