koerel/pdfunite 问题修复 & 功能扩展

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

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

koerel/pdfunite

最新稳定版本:0.1.3

Composer 安装命令:

composer require koerel/pdfunite

包简介

A php wrapper for pdfunite

README 文档

README

StyleCI

Build Status

pdfunite is part of the poppler PDF library. It is a command-line tool use to join PDF files. This library provides a PHP wrapper around pdfunite.

Installation

run composer require koerel/pdfunite

Usage

The join method accepts any number of input files, the last parameter is the output file.

$unite = new Koerel\PdfUnite\PdfUnite();
$unite->join('file1.pdf', 'file2.pdf', 'output.pdf');

If the pdfunite-binary is not in the $PATH you can pass it's path to the constructor.

$unite = new Koerel\PdfUnite\PdfUnite('path/to/pdfunite');
$unite->join('file1.pdf', 'file2.pdf', 'output.pdf');

To get the result as a string you can chain the output() method

$unite = new Koerel\PdfUnite\PdfUnite();
$pdfData = $unite->join('file1.pdf', 'file2.pdf', 'output.pdf')->output();

To download the resulting PDF, you can chain the download() method

$unite = new Koerel\PdfUnite\PdfUnite();
$unite->join('file1.pdf', 'file2.pdf', 'output.pdf')->download();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2017-11-11