芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/shphe-en.com/wp-content/plugins/down-as-pdf/addf.php
font param is required!For example: ?font=the-font-name.ttf')); } //require the LIB require hacklog_dap::get_plugin_dir() . 'tcpdf/tcpdf.php'; // create new PDF document $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, TRUE, 'UTF-8',FALSE, FALSE); $cache_dir =hacklog_dap::get_plugin_dir(). 'cache'; $file_path = $cache_dir .'/'. $font; if( !is_file( $file_path )) { wp_die(sprintf(__('Error: font file
%s
not exists!Pllease upload it to the dir:
%s
'),$file_path,$cache_dir) ); } //function addTTFfont($fontfile, $fonttype='', $enc='', $flags=32, $outpath='') //TrueTypeUnicode $fontname = $pdf->addTTFfont( $file_path , '', '', 32); if( $fontname ) { wp_die(sprintf(__('
Good luck,the font
%s
has been added!
'),$fontname) ); }