将网页生成PDF是种好思路方法```但得控制表格````种种原因,触使我自己写个思路方法来生成PDF
报表.
须下载fpdf 和fpdf 中文化类.
这过程中,得处理中文乱码,....
效果如下:
$this->_out('/W ['.$W.']>>');
$this->_out('endobj');
//Font descriptor
$this->_obj;
$this->_out('<</Type /FontDescriptor');
$this->_out('/FontName /'.$font['name']);
$this->_out('/Flags 6');
$this->_out('/FontBBox [0 -200 1000 900]');
$this->_out('/ItalicAngle 0');
$this->_out('/Ascent 800');
$this->_out('/Descent -200');
$this->_out('/CapHeight 800');
$this->_out('/StemV 50');
$this->_out('>>');
$this->_out('endobj');
}
}
?>
最新评论