protected static function PdfTemplate::getFontNameByFileName in Views PDF 7
Same name and namespace in other branches
- 6 views_pdf_template.php \PdfTemplate::getFontNameByFileName()
- 7.3 views_pdf_template.php \PdfTemplate::getFontNameByFileName()
- 7.2 views_pdf_template.php \PdfTemplate::getFontNameByFileName()
This method returns the name of a given font.
1 call to PdfTemplate::getFontNameByFileName()
- PdfTemplate::getAvailableFonts in ./
views_pdf_template.php - This method returns a list of available fonts.
File
- ./
views_pdf_template.php, line 1178 - PDF Class to generate PDFs with native PHP. This class based on FPDF and FPDI.
Class
- PdfTemplate
- The main class to generate the PDF.
Code
protected static function getFontNameByFileName($path) {
include $path;
if (isset($name)) {
return $name;
}
else {
return NULL;
}
}