本文整理汇总了PHP中PDF_AutoPrint::SetDisplayMode方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF_AutoPrint::SetDisplayMode方法的具体用法?PHP PDF_AutoPrint::SetDisplayMode怎么用?PHP PDF_AutoPrint::SetDisplayMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF_AutoPrint
的用法示例。
在下文中一共展示了PDF_AutoPrint::SetDisplayMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
if ($dialog) {
$script .= "pp.interactive = pp.constants.interactionLevel.full;";
} else {
$script .= "pp.interactive = pp.constants.interactionLevel.automatic;";
}
$script .= "pp.printerName = '\\\\\\\\" . $server . "\\\\" . $printer . "';";
$script .= "print(pp);";
$this->IncludeJS($script);
}
}
define('FPDF_FONTPATH', '../../pdf/font/');
# creamos el nuevo objeto partiendo de la clase ampliada
$MiPDF = new PDF_AutoPrint();
$MiPDF->SetMargins(20, 20, 20);
# ajustamos al 100% la visualización
$MiPDF->SetDisplayMode('fullpage');
// Consulta en curso.
if (substr($curso, 0, 1) == '1') {
$mas = ", colegio";
}
$n_curso = substr($curso, 0, 1);
$result0 = mysqli_query($db_con, "select distinct id_matriculas from matriculas_bach_temp, matriculas_bach where id=id_matriculas order by curso" . $mas . ", letra_grupo, apellidos, nombre");
while ($id_ar = mysqli_fetch_array($result0)) {
$id = $id_ar[0];
$result = mysqli_query($db_con, "select * from matriculas_bach where id = '{$id}'");
if ($datos_ya = mysqli_fetch_object($result)) {
$naci = explode("-", $datos_ya->nacimiento);
$nacimiento = "{$naci['2']}-{$naci['1']}-{$naci['0']}";
$apellidos = $datos_ya->apellidos;
$id = $datos_ya->id;
$nombre = $datos_ya->nombre;