Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimum list of files for tcpdf to work

Tags:

php

pdf

tcpdf

The package seems bloated with a size of 19 MiB. Are there unecessary components I can remove to reduce the size?

Does anyone have a minimum list of files required for the examples provided with tcpdf to work?

like image 959
Derek Avatar asked Jan 18 '23 11:01

Derek


2 Answers

I have had the same issue, but all i know is you can remove ALL image files in images, remove all fonts except 'helvetica' or whatever you wish to keep, then I just removed folder, tested, another folder, tested, remove file, tested etc. until i had the bear minimum

I hope this helps, i don't have the list on me... actually still using the full installation on my dev server

like image 71
Prof Avatar answered Jan 25 '23 05:01

Prof


Minimal installation of TCPDF:
- tcpdf_include.php (main for call in require)
- tcpdf.php (required - library)
- tcpdf_autoconfig.php (required)
- config/tcpdf_config_alt.php (for config)
- tcpdf_barcodes_1d.php (only when use barcode)
- tcpdf_barcodes_2d.php (only when use barcode)
- include/barcodes/* (only when use barcode)
- include/.php (required)
- include/
.icc (required)
- fonts/helvetica.php (main font)
- fonts/pdfahelvetica.php (main font)
- fonts/pdfahelvetica.z (main font)
Other fonts, must be add in fonts folder.

like image 29
Tomas Yepez Avatar answered Jan 25 '23 04:01

Tomas Yepez