PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I embed a font in FPDF?


To embed a font, you simply need to include the AddFont statement at the top of the document, including the name of the PHP file in the font directory that contains the details for that font.

For instance:

$pdf->AddFont('MyNewFont','','myfontfile.php');

...and that's all that there is to it!

ASK A QUESTION

More FPDF PHP Questions

How do I add a line break to my PDF in FPDF?

How do I output text to a PDF with FPDF?

How do I set and change the font in FPDF?

How can I find out more about FPDF?

What is FPDF?



Custom Search