robbertkl/simplepdf 问题修复 & 功能扩展

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

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

robbertkl/simplepdf

Composer 安装命令:

composer require robbertkl/simplepdf

包简介

Simple extension of ZendPdf, allowing top-to-bottom geometry using arbitrary units (e.g. inches or centimeters)

关键字:

README 文档

README

Latest Stable Version

Internal PDF geometry (and therefore ZendPdf as well) uses "points" (1/72 of an inch), with [0, 0] being the bottom left corner of a page. This library, which extends ZendPdf, changes this by using arbitrary units (e.g. inches or centimeters) and going from top-to-bottom, which makes much more sense from a user's persepective. Also, very basic functionality has been added, like text alignment, margins and word wrap.

SimplePdf is PSR-0, PSR-1 and PSR-2 compliant.

Semantic Versioning is used for releases / tags.

Requirements

  • PHP 5.3 or newer
  • ZendPdf component, which it extends

Installation

The easiest way to install is using Composer / Packagist by adding this to you composer.json file:

"require": {
    "robbertkl/simplepdf": "dev-master"
}

Alternatively, you could manually include/autoload the appriate files from the classes/ dir.

Documentation

See the examples/ dir for usage examples. Also, check out the API documentation, generated using ApiGen.

Known Limitations

  • The extension is not complete at all; only specific methods (to accommodate my needs) have been overridden to handle custom units + top-to-bottom geometry
  • The word-wrap code is still pretty basic; for example, it doesn't do word-breaking or handle certain border cases
  • Unfortunately, ZendPdf was kicked out of ZF2, and doesn't seem to be maintained (although it still works fine)

Authors

License

SimplePdf is published under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-12-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固