定制 ahmedbhs/wkhtmltopdf-amd64 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ahmedbhs/wkhtmltopdf-amd64

Composer 安装命令:

composer require ahmedbhs/wkhtmltopdf-amd64

包简介

wkhtmltopdf and wkhtmltoimage linux binaries - Convert HTML to PDF or IMAGE using Webkit (QtWebKit)

README 文档

README

This repository contains the latest stable compiled binaries of wkhtmltopdf from the wkhtmltopdf project.

The binaries are built for Ubuntu 18.04 buster and stretch amd64 architectures are included.

Or sometimes you just want a quick solution for your dev environment ;)

Installation

This package is published on Packagist and should be installed with Composer.

The version of the binary is equal to the git tag. Composer will install the latest version by default.

$ composer require-dev michael-schaefer-eu/wkhtmltox

Note: you should not use this package (or any other of that kind) in production environments!

Composer will install the package in your project path into the vendor/michael-schaefer-eu/wkhtmltox/ directory.

The binaries are located in the vendor/michael-schaefer-eu/wkhtmltox/bin/ directory.

Composer will symlink them to the vendor/bin/ directory.

Check the Version:

$ wkhtmltopdf -V
wkhtmltopdf 0.12.6 (with patched qt)

Usage

With the KNP-Snappy package, you can now use the binaries to create PDFs from HTML.

You can use the path constants from this project to easily locate the binary paths (with PSR 4 Autoloader):

<?php
use Knp\Snappy\Pdf;
use Wkhtmltox\Wkhtmltopdf;

$snappyPdf = new Pdf(Wkhtmltopdf::BUSTERAMD64);

OR If you symlinked the binaries to /usr/local/bin:

<?php
use Knp\Snappy\Pdf;

$snappyPdf = new Pdf('/usr/local/bin/wkhtmltopdf');

统计信息

  • 总下载量: 187
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-only
  • 更新时间: 2022-02-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固