fishmad/wkhtmltopdf-windows 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

fishmad/wkhtmltopdf-windows

最新稳定版本:0.12.2.4

Composer 安装命令:

composer require fishmad/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'),

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL
  • 更新时间: 2015-09-02