摘要:
for example:http://www.phpchina.com/resource/manual/zendframework/zend.pdf.save.htmlthis url show how to update or save you pdf documentyou have to ways:1、save the pagesTest.pdfdocument to you running file realpath,this would not be notify you.$saveUri = dirname(__FILE__) . DIRECTORY_SEPARATOR . 阅读全文
posted @ 2010-11-17 22:57
春哥也编程
阅读(248)
评论(0)
推荐(0)
摘要:
Zend Framework PDF 最重要的部分也是最常用的类就是 Zend_Pdf_Page 类了. 这个类的用法比较灵活. 具体的来看看这个小家伙. 首先介绍一下这个类定义一个很有常用的参数, 也就是页面规格. 常规的, 它提供了2种类型的尺寸, 一种是我们打印机常用的A4纸张尺寸. 宽:595 高:842, 是个常变量, 叫: Zend_Pdf_Page::SIZE_A4 这个是默认的也就是竖向的, 有时候我们会在WORD等软件里把页面打印时设置为横向的. 这个只是把宽和高互换了一下. 看你自己喜欢那种风格的排版了. 横向的尺寸变量名叫: Zend_Pdf_Page::SIZE_A4_ 阅读全文
posted @ 2010-11-17 22:22
春哥也编程
阅读(851)
评论(0)
推荐(0)

浙公网安备 33010602011771号