定制 dangex/wkhtmltopdf-windows 二次开发

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

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

dangex/wkhtmltopdf-windows

Composer 安装命令:

composer require dangex/wkhtmltopdf-windows

包简介

Convert html to pdf using webkit (qtwebkit). Static linked windows binary 64 bit systems.

README 文档

README

This Repo contains the Windows (MinGW-w64) 64-bit Binaries for Windows XP/2003 or later; bundles gcc DLLs. This version is forked from the github.com/wemersonjanuario/wkhtmltopdf-windows that version relies on VC++ Runtime 2013 and dependencies being installed on the workstation (this package does not and is more independant), so this solution allows me work on my laravel app across multiple windows computers and still use wkhtmltopdf to generate PDF files without needing to install the full wkhtmltopdf package.

wkhtmltopdf project. More about the functionality of wkhtmltopdf and wkthmltoimage can be found there.

Binaries for Microsoft Windows using VC++ Runtime 2013, also installable with composer, can be found here: github.com/wemersonjanuario/wkhtmltopdf-windows

Binaries for Linux i386, also installable with composer, can be found here: github.com/h4cc/wkhtmltopdf-i386

Binaries for Linux amd64, also installable with composer, can be found here: github.com/h4cc/wkhtmltopdf-amd64

Use one of these Laravel 5.* PHP packages

https://github.com/barryvdh/laravel-snappy OR github.com/wemersonjanuario/laravelpdf

Installation

In case this binary package does not work on your work station, try installing the matching operating system packages from here: http://wkhtmltopdf.org/downloads.html.

Packagist

This package can be found on Packagist and installed with Composer.

Require the package for Windows with:

composer require "fishmad/wkhtmltopdf-windows: dev-master"

The binaries will then be located at:

vendor/fishmad/wkhtmltopdf-windows/bin/64bit

Also a symlink will be created in your configured bin/ folder, for example:

vendor/bin/32bit/wkhtmltopdf.exe.bat and vendor/bin/64bit/wkhtmltopdf.exe.bat

If you choose to use barryvdh/laravel-snappy binary interface wrapper like I have then simply add this line into config/snappy.php

'binary' => base_path('vendor\fishmad\wkhtmltopdf-windows\bin\64bit\wkhtmltopdf.exe'),

or for a tidier code use a simlinks from above like so:

'binary' => base_path('vendor\bin\wkhtmltopdf.exe.bat'),

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2018-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固