本文整理汇总了PHP中mPDF::SetFont方法的典型用法代码示例。如果您正苦于以下问题:PHP mPDF::SetFont方法的具体用法?PHP mPDF::SetFont怎么用?PHP mPDF::SetFont使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mPDF
的用法示例。
在下文中一共展示了mPDF::SetFont方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mPDF
$lang = str_pad($lang, 4, ' ');
}
//////////////////////////////////
//////////////////////////////////
//////////////////////////////////
set_time_limit(1200);
ini_set("memory_limit", "512M");
//==============================================================
$overrideTTFFontRestriction = true;
//==============================================================
include "../mpdf.php";
$mpdf = new mPDF('');
$mpdf->simpleTables = true;
//==============================================================
// This generates a .mtx.php file if not already generated
$mpdf->SetFont($family, $style);
//==============================================================
//==============================================================
//==============================================================
//==============================================================
$ff = array();
$ffs = '';
if ($lang && $script) {
$GSUBFeatures = $mpdf->CurrentFont['GSUBFeatures'][$script][$lang];
if (is_array($GSUBFeatures)) {
foreach ($GSUBFeatures as $tag => $v) {
$ff[] = '"' . $tag . '" 0';
}
}
$GPOSFeatures = $mpdf->CurrentFont['GPOSFeatures'][$script][$lang];
if (is_array($GPOSFeatures)) {
示例2: mPDF
<?php
require 'client.inc.php';
require_once INCLUDE_DIR . 'mpdf/mpdf.php';
$pdf = new mPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 16);
$file = file_get_contents("http://mailtest.spitzeco.dk/osticket/file.php?key=p0u5jcnzlzq134cjew27utvxohxe1n94&expires=1457654400&signature=15aa64ad32f4ac088eba051a169598dea5a73b3e");
$pdf->WriteHTML($file, 4);
$content = $pdf->Output('doc.pdf', 'F');
示例3: SetFont
function SetFont($family, $style = '', $size = 0, $write = true, $forcewrite = false)
{
$return = parent::SetFont($family, $style, $size, $write, $forcewrite);
$this->fixFonts();
return $return;
}
示例4: setlocale
$replace = "''";
$kom = str_replace($order, $replace, $kom);
$order1 = "\"";
$replace1 = '`';
$kom = str_replace($order1, $replace1, $kom);
}
$insertahoq = $raceDataClassObject->GetEndObiegInsertArchiveHo($row, $uact, $kom, $iid);
echo $insertahoq;
}
//PDF
echo '<br>';
require '../dashboard/classes/MPDF56/mpdf.php';
setlocale(LC_ALL, 'pl_PL', 'pl', 'Polish_Poland.28592');
$pdf = new mPDF();
$pdf->AddPage();
$pdf->SetFont('DejaVuSans');
$avtable_data = $raceDataClassObject->GetKancelariaAvtable($avtable, $iid);
$variables = $r1DataClassObject->GetVariables($map);
$html = '<div align="center"><strong>Karta opisu procesu</strong></div><br>';
$html .= '<table style="width: 100%; margin: 0% 10% 0% 10%;">';
foreach ($variables as $key => $row) {
$value = "v_" . $row["id"];
$span_data = htmlspecialchars("{$avtable_data[$value]}");
if ($span_data == '' or $span_data == null) {
$span = "Brak";
} else {
$span = $span_data;
}
$var_name = $r1DataClassObject->GetVariableName($row["id"]);
$var_name = $var_name["show_name"];
$html .= '<tr><td style="width: 50%; height: 50%">' . $var_name . ':</td><td style="width: 50%; height: 50%"><span>' . $span . '</td></tr>';
示例5: pdf_create
function pdf_create($html, $filename, $stream = TRUE)
{
require_once APPPATH . 'helpers/mpdf/mpdf.php';
$CI =& get_instance();
$mpdf = new mPDF();
//$mpdf->SetAutoFont();
$mpdf->SetFont('Arial');
$mpdf->WriteHTML($html);
if ($stream) {
$mpdf->Output($filename, 'I');
} else {
$mpdf->Output('./uploads/temp/' . $filename . '.pdf', 'F');
}
}