[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/pdf class.ezpdf.php, 1.3 class.pdf.php,
From: |
ceb |
Subject: |
[Phpgroupware-cvs] property/inc/pdf class.ezpdf.php, 1.3 class.pdf.php, 1.3 |
Date: |
Thu, 24 Feb 2005 14:30:44 -0000 |
Update of property/inc/pdf
Modified Files:
Branch: MAIN
class.ezpdf.php lines: +41 -30
class.pdf.php lines: +6 -0
Log Message:
committed prop-18-branch version to head
====================================================
Index: property/inc/pdf/class.ezpdf.php
diff -u property/inc/pdf/class.ezpdf.php:1.2
property/inc/pdf/class.ezpdf.php:1.3
--- property/inc/pdf/class.ezpdf.php:1.2 Wed Jun 2 19:01:11 2004
+++ property/inc/pdf/class.ezpdf.php Thu Jan 13 16:52:48 2005
@@ -1,45 +1,56 @@
<?php
+/**
+* Cpdf
+*
+* this class will take the basic interaction facilities of the Cpdf class
+* and make more useful functions so that the user does not have to
+* know all the ins and outs of pdf presentation to produce something pretty.
+*
+* IMPORTANT NOTE
+* there is no warranty, implied or otherwise with this software.
+*
+* version 009 (versioning is linked to class.pdf.php)
+*
+* released under a public domain licence.
+*
+* Wayne Munro, R&OS Ltd, http://www.ros.co.nz/pdf
+* LICENCE
+* This code has been placed in the Public Domain for all to enjoy.
+*
+* @author Wayne Munro <address@hidden>
+* @version 009
+* @package Cpdf
+*/
+
+
+/**
+ * Description
+ * @package Cpdf
+ */
-//include_once('class.pdf.php');
-//include_once (PHPGW_APP_INC . '/pdf/class.pdf.php');
class pdf extends pdf_ {
-//==============================================================================
-// this class will take the basic interaction facilities of the Cpdf class
-// and make more useful functions so that the user does not have to
-// know all the ins and outs of pdf presentation to produce something pretty.
-//
-// IMPORTANT NOTE
-// there is no warranty, implied or otherwise with this software.
-//
-// version 009 (versioning is linked to class.pdf.php)
-//
-// released under a public domain licence.
-//
-// Wayne Munro, R&OS Ltd, http://www.ros.co.nz/pdf
-//==============================================================================
var $ez=array('fontSize'=>10); // used for storing most of the page
configuration parameters
var $y; // this is the current vertical positon on the page of the writing
point, very important
var $ezPages=array(); // keep an array of the ids of the pages, making it easy
to go back and add page numbers etc.
var $ezPageCount=0;
-//
------------------------------------------------------------------------------
+/**
+* Assuming that people don't want to specify the paper size using the absolute
coordinates
+* allow a couple of options:
+* orientation can be 'portrait' or 'landscape'
+* or, to actually set the coordinates, then pass an array in as the first
parameter.
+* the defaults are as shown.
+*
+* 2002-07-24 - Nicola Asuni (address@hidden):
+* Added new page formats (45 standard ISO paper formats and 4 american common
formats)
+* paper cordinates are calculated in this way: (inches * 72) where 1 inch =
2.54 cm
+*
+* Now you may also pass a 2 values array containing the page width and height
in centimeters
+*/
function pdf($paper='a4',$orientation='portrait'){
- // Assuming that people don't want to specify the paper size using the
absolute coordinates
- // allow a couple of options:
- // orientation can be 'portrait' or 'landscape'
- // or, to actually set the coordinates, then pass an array in as the
first parameter.
- // the defaults are as shown.
- //
- // -------------------------
- // 2002-07-24 - Nicola Asuni (address@hidden):
- // Added new page formats (45 standard ISO paper formats and 4 american
common formats)
- // paper cordinates are calculated in this way: (inches * 72) where 1
inch = 2.54 cm
- //
- // Now you may also pass a 2 values array containing the page width and
height in centimeters
- // -------------------------
if (!is_array($paper)){
switch (strtoupper($paper)){
====================================================
Index: property/inc/pdf/class.pdf.php
diff -u property/inc/pdf/class.pdf.php:1.2 property/inc/pdf/class.pdf.php:1.3
--- property/inc/pdf/class.pdf.php:1.2 Wed Jun 2 19:01:12 2004
+++ property/inc/pdf/class.pdf.php Thu Jan 13 16:52:48 2005
@@ -20,6 +20,12 @@
* @version 009
* @package Cpdf
*/
+
+/**
+ * Description
+ * @package Cpdf
+ */
+
class pdf_ {
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc/pdf class.ezpdf.php, 1.3 class.pdf.php, 1.3,
ceb <=
- Prev by Date:
[Phpgroupware-cvs] property/inc/export Agresso,1.16
- Next by Date:
[Phpgroupware-cvs] property/templates/default async.xsl, 1.2 attributes_form.xsl, 1.4 attributes_view.xsl, 1.3 alarm.xsl, 1.2 agreement.xsl, 1.2 actor.xsl, 1.3 admin_entity.xsl, 1.3 b_account.xsl, 1.4 document.xsl, 1.3 values.xsl, 1.3 wo_hour.xsl, 1.3 workorder.xsl, 1.3 project.xsl, 1.6 location_view.xsl, 1.3 entity.xsl, 1.3 invoice.xsl, 1.8 abook_view.xsl, 1.3 abook_form.xsl, 1.3
- Previous by thread:
[Phpgroupware-cvs] property/inc/export Agresso,1.16
- Next by thread:
[Phpgroupware-cvs] property/templates/default async.xsl, 1.2 attributes_form.xsl, 1.4 attributes_view.xsl, 1.3 alarm.xsl, 1.2 agreement.xsl, 1.2 actor.xsl, 1.3 admin_entity.xsl, 1.3 b_account.xsl, 1.4 document.xsl, 1.3 values.xsl, 1.3 wo_hour.xsl, 1.3 workorder.xsl, 1.3 project.xsl, 1.6 location_view.xsl, 1.3 entity.xsl, 1.3 invoice.xsl, 1.8 abook_view.xsl, 1.3 abook_form.xsl, 1.3
- Index(es):