evosys21/pdflib
is a collection of PHP classes facilitating developers to create Advanced Multicells and Tables in FPDF, TCPDF, or
tFPDF.
This addon class allows the creation of an Advanced Multicell for FPDF/TCPDF/tFPDF, which uses as input a TAG-based formatted string instead of a simple string. The use of tags allows changing the font, style (bold, italic, underline), size, and color of characters and many other features.
The function is similar to the Multicell function in the TCPDF base class with extended parameters.
\t
) can be used.Multicell Example #1 - Overview | multicell Example #1 - Overview | ||
---|---|---|---|
Code | example-multicell-1-overview.php | example-multicell-6-shrinking.php | |
Preview | |||
example-multicell-1-overview.pdf | example-multicell-1-overview.pdf |
Check the examples folder for more examples with preview and the associated code.
Click here for the end-user documentation for Advanced Multicell.
This addon class allows creation of an Advanced Table for FPDF/TCPDF/tFPDF in the pdf document in a very simple way.
A full end-user documentation for Advanced Table is available here.
Table Example #1 - Overview | Table Example #1 - Overview | ||
---|---|---|---|
Code | example-table-1-overview.php | example-table-2-overview.php | |
Preview | |||
example-table-1-overview.pdf | example-table-1-overview.pdf |
Click here for the end-user documentation for Advanced Table.
FPDF/TCPDF/tFPDF
The custom EvoSys21\PdfLib\Fpdf\Pdf
object is used instead of FPDF
because FPDF
’s private/protected properties,
like widths, margins, and fonts, need to be accessed to implement add-ons.
Since FPDF
doesn’t provide setters/getters for these properties, the class was extended to access them.
The same is valid for all 3 pdf classes: FPDF/TCPDF/tFPDF
.
For more details see:
If something is not working as expected, please check or open an issue.
If you would like to discuss your use case or ask a general question, please use the discussions board: discussions.
We welcome contributors to the project.
main
unless you want to contribute to the development
version of the client (main
represents the next major version).Thanks in advance for your contribution! :heart:
MIT License. For more information, please see the LICENSE file.