承接 phillipsdata/tcpdf_wrapper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

phillipsdata/tcpdf_wrapper

Composer 安装命令:

composer require phillipsdata/tcpdf_wrapper

包简介

TCPDF Table Library

README 文档

README

A wrapper for the TCPDF class that makes it easier to use it for building PDF tables.

Requirements

TCPDF must already be loaded or autoloaded.

Install

composer require phillipsdata/tcpdf_wrapper

Basic Usage

Draw a table

use PhillipsData\TcpdfWrapper\TcpdfWrapper;

// Instantiate an instance of the TcpdfWrapper
$oprientation = 'P';
$unit = 'mm';
$format = 'A4';
$unicade = true;
$encoding = 'UTF-8';
$diskcache = false;

$wrapper = new TcpdfWrapper($orientation, $unit, $format, $unicode, $encoding, $diskcache);

// Create a numerically-indexed array of row and column data
// where the key is the column name and the value is the value to display
$data = array(
    array(
        'name' => 'John Doe',
        'fav_color' => 'Blue'
    ),
    array(
        'name' => 'Jane Doe',
        'fav_color' => 'Red'
    )
);

// Define options for the table and the data columns
$options = array(
    'x_pos' => 44,
    'y_pos' => 246,
    'border' => 'RL',
    'height' => 16,
    'line_style' => array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter'),
    'font_size' => 12,
    'col' => array(
        'name' => array(
            'width' => 200,
            'align' => 'L'
        ),
        'fav_color' => array(
            'width' => 100,
            'align' => 'C'
        )
    )
);

$wrapper->drawTable($data, $options); // Draws the given data into the PDF

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固