Download the PHP package yetiforce/yetiforcepdf without Composer
On this page you can find all versions of the php package yetiforce/yetiforcepdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yetiforce/yetiforcepdf
More information about yetiforce/yetiforcepdf
Files in yetiforce/yetiforcepdf
Package yetiforcepdf
Short Description Library that generate pdf files from html.
License MIT
Homepage https://github.com/YetiForceCompany/YetiForcePDF
Informations about the package yetiforcepdf
YetiForcePDF
PDF generation library for PHP
The best library in the world to generate PDF from HTML
Issues & bugs
Report errors related to PDF in https://github.com/YetiForceCompany/YetiForceCRM/issues
Basic usage (for more take a look at examples folder)
Supported css rules
- [x] font-family
- [x] font-size
- [x] font-weight
- [x] font-style
- [x] margin [px, em, cm, mm, pt, in]
- [x] margin-left [px, em, cm, mm, pt, in]
- [x] margin-top [px, em, cm, mm, pt, in]
- [x] margin-right [px, em, cm, mm, pt, in]
- [x] margin-bottom [px, em, cm, mm, pt, in]
- [x] padding [px, em, cm, mm, pt, in]
- [x] padding-left [px, em, cm, mm, pt, in]
- [x] padding-top [px, em, cm, mm, pt, in]
- [x] padding-right [px, em, cm, mm, pt, in]
- [x] padding-bottom [px, em, cm, mm, pt, in]
- [x] border [px, em, cm, mm, pt, in]
- [x] border-left
- [x] border-top
- [x] border-right
- [x] border-bottom
- [x] border-left-width [px, em, cm, mm, pt, in]
- [x] border-top-width [px, em, cm, mm, pt, in]
- [x] border-right-width [px, em, cm, mm, pt, in]
- [x] border-bottom-width [px, em, cm, mm, pt, in]
- [x] border-color [hex, rgb]
- [x] border-left-color [hex, rgb]
- [x] border-top-color [hex, rgb]
- [x] border-right-color [hex, rgb]
- [x] border-bottom-color [hex, rgb]
- [ ] border-style
- [ ] border-left-style
- [ ] border-top-style
- [ ] border-right-style
- [ ] border-bottom-style
- [ ] box-sizing
- [x] display [block, inline, inline-block, none]
- [x] width [%, px, em, cm, mm, pt, in]
- [x] height [%, px, em, cm, mm, pt, in]
- [ ] overflow
- [x] vertical-align [baseline, top, bottom, middle]
- [x] line-height [px, em, cm, mm, pt, in]
- [x] background-color [hex, rgb]
- [x] color [hex, rgb, rgba, named]
- [x] word-wrap [normal]
- [ ] max-width
- [ ] min-width
- [x] white-space [normal]
- [ ] word-wrap
- [ ] float
- [ ] clear
- [x] table displays
- [x] background-image
- [x] rgb / rgba color
Available fonts by default
- DejaVu Sans
Custom fonts
Upload your ttf font files to server and add following code at the beginning of your html.
Each font weight and style could be defined if your font supports it.
You can also add fonts inside php like:
Headers, footers and watermarks
You can define header, footer and watermark to be displayed inside pdf file
Page format, orientation and margins
Page format, orientation and margins could be defined from YetiForcePDF instance or inside html code.
If you have multiple page formats and orientations inside one pdf document you can insert multiple data-page-group
s to your html.
Page break
When you want to add new page use data-page-group
or set style on div element page-break-after:always
.
Page numbering
When you want to place page number (in header or footer for example) you can do it by placing {p}
or {a}
text inside your html - it will be replaced by {p}
page number or {a}
all pages count.
Barcodes
TODO (later but important)
- [ ] floats
- [ ] display: list-item
- [ ] basic transformations (rotateXY, scaleXY, translateXY)
- [ ] position (absolute, relative)
License
Distributed under the MIT license. See LICENSE for details.
👥 Contributors
This project exists thanks to all the people who contribute.
All versions of yetiforcepdf with dependencies
ext-mbstring Version *
ext-dom Version *
ext-libxml Version *
ext-bcmath Version *
ext-zlib Version *
ext-gd Version *
ext-filter Version *
phenx/php-font-lib Version ^0.5
guzzlehttp/guzzle Version ^7
composer/ca-bundle Version ^1
milon/barcode Version ^11
sabberworm/php-css-parser Version ^8