本文整理汇总了PHP中Cezpdf::stopObject方法的典型用法代码示例。如果您正苦于以下问题:PHP Cezpdf::stopObject方法的具体用法?PHP Cezpdf::stopObject怎么用?PHP Cezpdf::stopObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cezpdf
的用法示例。
在下文中一共展示了Cezpdf::stopObject方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fwrite
$pdf->ezStartPageNumbers(802, 30, 10, 'left', 'Page {PAGENUM} of {TOTALPAGENUM}');
for ($i = 0; $i < count($ganttfile); $i++) {
$gf = $ganttfile[$i];
$pdf->ezColumnsStart(array('num' => 1, 'gap' => 0));
$pdf->ezImage($gf, 0, 765, 'width', 'left');
// No pad, width = 800px, resize = 'none' (will go to next page if image height > remaining page space)
if ($showNoMilestones == '1') {
$pdf->ezImage($gpdfkeyNM, 0, 765, 'width', 'left');
} else {
$pdf->ezImage($gpdfkey, 0, 765, 'width', 'left');
}
$pdf->ezColumnsStop();
}
// End of project display
// Create document body and pdf temp file
$pdf->stopObject($page_header);
$gpdffile = $temp_dir . '/GanttChart_' . md5(time()) . '.pdf';
if ($fp = fopen($gpdffile, 'wb')) {
fwrite($fp, $pdf->ezOutput());
fclose($fp);
} else {
//TODO: create error handler for permission problems
echo "Could not open file to save PDF. ";
if (!is_writable($temp_dir)) {
echo "The files/temp directory is not writable. Check your file system permissions.";
}
}
$_POST['printpdf'] = '0';
$printpdf = '0';
$_POST['printpdfhr'] = 0;
$printpdfhr = 0;