创建PDF模板: Difference between revisions

Jump to navigation Jump to search
Line 75: Line 75:
*$pdf->Rect() - ''绘制一个矩形,其左上角位于前两个参数指示的点,右下角在前两个参数的相对模式下使用最后两个参数''
*$pdf->Rect() - ''绘制一个矩形,其左上角位于前两个参数指示的点,右下角在前两个参数的相对模式下使用最后两个参数''


==脚本框架==
==脚本结构==
During the development of version 2.2, the scripts used for generating PDF documents had the following methods (taking as example the model "crabe") inside the class with the model's name:
用于生成PDF文档的脚本在模板类中具有以下方法(以“crabe”模板为例):


*pdf_crabe() - ''Creator of the object pdf''
*pdf_crabe() - ''PDF对象的构造函数''
*write_pdf_file() - ''General method for generating the file. This method calls all the following ones after initializing some variables''
*write_pdf_file() - ''生成文件的通用函数。此方法在初始化一些变量后调用以下所有变量''
*_pagehead() - ''Method for drawing the heading of the document, including in general the logo, the title of the document (and the date) as well as the frames of the issuer and the addressee of the document''
*_pagehead() - ''绘制文档标题的函数,通常包括徽标、文档标题(和日期)以及文档发送者和接收者的框架''
*_tableau() - ''Method for drawing the details table (products, services,...)''
*_tableau() - ''详细信息表(产品、服务等)的绘制方法''
*_tableau_info() - ''Method for drawing the table containing information list present in the bill''
*_tableau_info() - ''绘制包含发票上信息列表的表格的方法''
*_tableau_tot() - ''Method for drawing table of Totals''
*_tableau_tot() - ''绘制总计表的方法''
*_tableau_versement() - ''Method for drawing table of payment rules''
*_tableau_versement() - ''绘制支付规则表的方法''
*_pagefoot() - ''Method for drawing bottom of the page''
*_pagefoot() - ''绘制页脚的方法''


==定制实例==
==定制实例==
714

edits

Navigation menu