Download the PHP package fengxue145/pdf without Composer

On this page you can find all versions of the php package fengxue145/pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pdf

这是一个PHP库,基于 mPDF 。在其基础上稍微增加一些功能。

安装

用法

参见 mPDF

库修改

使用 PHP::Reflection 替换了 mPDF 库的 \Mpdf\Tag 类,重写了 getTagClassName 方法,并新增 setTagClassName 方法,允许加入自定义标签处理类。

案例:

新增标签

<template>

作用:允许使用PDF模板。继承于 <pagebreak> 标签,在其基础上增加两个 srcpageno 两个属性。

属性:

案例:

<include>

作用:引入其他html文件。

属性:

案例:

新增方法

RegisterTag($tag, $className)

作用:注册/覆盖标签的处理类。

参数:

案例:

SetMeta($meta)

作用:设置PDF文档元信息。

参数:

SetStyleFile($file)

作用:添加默认样式。

参数:

SetStyle($style)

作用:添加默认样式。

参数:

SetFonts($fonts)

作用:添加字体定义

参数:

案例:

WriteMap($map)

作用:将HTML抽象化成数组,并将其写入PDF。

详细用法参考:example/mapping/index.php

Mapping2HTML(array $mapping, $pos = array())

作用:将 mapping 结构数组转成 HTML


All versions of pdf with dependencies

PHP Build Version
Package Version
Requires setasign/fpdi Version ^2.3
setasign/tfpdf Version 1.32.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fengxue145/pdf contains the following files

Loading the files please wait ...