Install Linux Mint Web Server
Install Linux Mint Web Server
http://your_server_ip/info.php
Open a web browser and navigate to .You
http://your_server_ip/phpmyadminin your
Access phpMyAdmin by going to
ip a
ip addr show
ssh username@server_ip_address
Install tcpdf
1 . ownload tcpdf from github
D
2. Unzip and upload to /var/www/html/[folder of the project]
3. Use sudo to install font
4. Download font upload to tcpdf/fonts
ls /var/www/pdf/tcpdf/fonts/THSarabunNew.ttf
d /var/www/pdf/tcpdf
c
php tcpdf_addfont.php fonts/THSarabunNew.ttf
This command should explicitly tell TCPDF to convert and install the font.
ls /var/www/pdf/tcpdf/fonts/
tep 5: Update Your PHP Script
S
If the font files are generated, update your PHP code to use the newly added
font: