com-tecnick-tcpdf
[ class tree: com-tecnick-tcpdf ] [ index: com-tecnick-tcpdf ] [ all elements ]

Class: TCPDF

Source Location: /tcpdf.php

Class Overview


This is a PHP class for generating PDF documents without requiring external extensions.


Author(s):

  • Nicola Asuni - info@tecnick.com

Version:

  • 4.5.001

Variables

Methods



Class Details

[line 161]
This is a PHP class for generating PDF documents without requiring external extensions.


TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.




Tags:

author:  Nicola Asuni - info@tecnick.com
version:  4.5.001
link:  http://www.tcpdf.org
name:  TCPDF
license:  LGPL


[ Top ]


Class Variables

$AliasNbPages =  '{nb}'

[line 507]



Tags:

var:  for total number of pages
access:  protected

Type:   alias


[ Top ]

$AliasNumPage =  '{pnb}'

[line 513]



Tags:

var:  for page number
access:  protected

Type:   alias


[ Top ]

$author =

[line 489]



Tags:

access:  protected

Type:   author


[ Top ]

$AutoPageBreak =

[line 447]



Tags:

var:  page breaking
access:  protected

Type:   automatic


[ Top ]

$barcode =  false

[line 605]



Tags:

var:  to print on page footer (only if set).
access:  protected

Type:   Barcode


[ Top ]

$bgcolor =

[line 698]



Tags:

var:  background color
access:  protected

Type:   current


[ Top ]

$bMargin =

[line 283]



Tags:

var:  break margin
access:  protected

Type:   page


[ Top ]

$booklet =  false

[line 1084]

Booklet mode for double-sided pages



Tags:

since:  4.2.000 (2008-10-29)
access:  protected

Type:   mixed


[ Top ]

$buffer =

[line 187]



Tags:

var:  holding in-memory PDF
access:  protected

Type:   buffer


[ Top ]

$bufferlen =  0

[line 1184]

Lenght of the buffer in bytes.



Tags:

since:  4.5.000 (2008-12-31)
access:  protected

Type:   mixed


[ Top ]

$cell_height_ratio =  K_CELL_HEIGHT_RATIO

[line 949]

Default cell height ratio.



Tags:

since:  3.0.014 (2008-05-23)
access:  protected

Type:   mixed


[ Top ]

$cMargin =

[line 289]



Tags:

var:  internal padding
access:  protected

Type:   cell


[ Top ]

$ColorFlag =

[line 435]



Tags:

var:  whether fill and text colors are different
access:  protected

Type:   indicates


[ Top ]

$compress =

[line 205]



Tags:

var:  flag
access:  protected

Type:   compression


[ Top ]

$CoreFonts =

[line 325]



Tags:

var:  of standard font names
access:  protected

Type:   array


[ Top ]

$creator =

[line 501]



Tags:

access:  protected

Type:   creator


[ Top ]

$CurOrientation =

[line 211]



Tags:

var:  page orientation (P = Portrait, L = Landscape)
access:  protected

Type:   current


[ Top ]

$CurrentFont =

[line 399]



Tags:

var:  font info
access:  protected

Type:   current


[ Top ]

$currpagegroup =

[line 907]

Contains the alias of the current page group



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$customlistindent =  -1

[line 1106]



Tags:

var:  PARSER: custom indent amount for lists. Negative value means disabled.
since:  4.2.007 (2008-11-12)
access:  protected

Type:   HTML


[ Top ]

$default_table_columns =  4

[line 647]



Tags:

var:  number of columns for html table.
access:  protected

Type:   Default


[ Top ]

$diffs = array()

[line 343]



Tags:

var:  of encoding differences
access:  protected

Type:   array


[ Top ]

$diskcache =  false

[line 1191]

If true enables disk caching.



Tags:

since:  4.5.000 (2008-12-31)
access:  protected

Type:   mixed


[ Top ]

$dpi =  72

[line 886]

Dot Per Inch Document Resolution (do not change)



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$DrawColor =

[line 417]



Tags:

var:  for drawing color
access:  protected

Type:   commands


[ Top ]

$embeddedfiles = array()

[line 1120]



Tags:

var:  of files to embedd
since:  4.4.000 (2008-12-07)
access:  protected

Type:   array


[ Top ]

$encoding =  'UTF-8'

[line 717]



Tags:

var:  encoding
since:  1.53.0.TC010
access:  protected

Type:   default


[ Top ]

$encrypted =

[line 747]

Indicates whether document is protected



Tags:

since:  2.0.000 (2008-01-02)
access:  protected

Type:   mixed


[ Top ]

$encryption_key =

[line 801]

RC4 encryption key



Tags:

access:  protected

Type:   mixed


[ Top ]

$enc_obj_id =

[line 775]

encryption object id



Tags:

since:  2.0.000 (2008-01-02)
access:  protected

Type:   mixed


[ Top ]

$endlinex =  0

[line 1007]

End position of the latest inserted line



Tags:

since:  3.2.000 (2008-07-01)
access:  protected

Type:   mixed


[ Top ]

$epsmarker =  'x#!#EPS#!#x'

[line 1070]

String used to mark the beginning and end of EPS image blocks



Tags:

since:  4.1.000 (2008-10-18)
access:  protected

Type:   mixed


[ Top ]

$extgstates =

[line 935]

Array of transparency objects and parameters.



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$feps =  0.001

[line 1091]

Epsilon value used for float calculations



Tags:

since:  4.2.000 (2008-10-29)
access:  protected

Type:   mixed


[ Top ]

$fgcolor =

[line 668]



Tags:

var:  foreground color
access:  protected

Type:   current


[ Top ]

$fhPt =

[line 235]



Tags:

var:  of page format in points
access:  protected

Type:   height


[ Top ]

$FillColor =

[line 423]



Tags:

var:  for filling color
access:  protected

Type:   commands


[ Top ]

$FontAscent =

[line 380]



Tags:

var:  font ascent (distance between font top and baseline)
since:  2.8.000 (2007-03-29)
access:  protected

Type:   current


[ Top ]

$FontDescent =

[line 387]



Tags:

var:  font descent (distance between font bottom and baseline)
since:  2.8.000 (2007-03-29)
access:  protected

Type:   current


[ Top ]

$FontFamily =

[line 367]



Tags:

var:  font family
access:  protected

Type:   current


[ Top ]

$FontFiles = array()

[line 337]



Tags:

var:  of font files
access:  protected

Type:   array


[ Top ]

$fontkeys = array()

[line 1205]

Store the font keys.



Tags:

since:  4.5.000 (2009-01-02)
access:  protected

Type:   mixed


[ Top ]

$fontlist = array()

[line 662]



Tags:

var:  a list of available fonts on filesystem.
access:  protected

Type:   store


[ Top ]

$fonts = array()

[line 331]



Tags:

var:  of used fonts
access:  protected

Type:   array


[ Top ]

$FontSize =

[line 411]



Tags:

var:  font size in user unit
access:  protected

Type:   current


[ Top ]

$FontSizePt =

[line 405]



Tags:

var:  font size in points
access:  protected

Type:   current


[ Top ]

$FontStyle =

[line 373]



Tags:

var:  font style
access:  protected

Type:   current


[ Top ]

$footerlen = array()

[line 993]

Array used to store footer lenght of each page.



Tags:

since:  4.0.014 (2008-07-29)
access:  protected

Type:   mixed


[ Top ]

$footerpos = array()

[line 985]

Array used to store footer positions of each page.



Tags:

since:  3.2.000 (2008-07-01)
access:  protected

Type:   mixed


[ Top ]

$footer_font =

[line 593]



Tags:

var:  font.
access:  protected

Type:   Footer


[ Top ]

$footer_margin =

[line 567]



Tags:

var:  distance between footer and bottom page margin.
access:  protected

Type:   Minimum


[ Top ]

$fwPt =

[line 229]



Tags:

var:  of page format in points
access:  protected

Type:   width


[ Top ]

$gradients = array()

[line 970]

Array for storing gradient information.



Tags:

since:  3.1.000 (2008-06-09)
access:  protected

Type:   mixed


[ Top ]

$h =

[line 259]



Tags:

var:  height of page in user unit
access:  protected

Type:   current


[ Top ]

$header_font =

[line 587]



Tags:

var:  font.
access:  protected

Type:   Header


[ Top ]

$header_logo =  ''

[line 623]



Tags:

var:  image logo.
access:  protected

Type:   Header


[ Top ]

$header_logo_width =  30

[line 629]



Tags:

var:  image logo width in mm.
access:  protected

Type:   Header


[ Top ]

$header_margin =

[line 561]



Tags:

var:  distance between header and top page margin.
access:  protected

Type:   Minimum


[ Top ]

$header_string =  ''

[line 641]



Tags:

var:  to print on document header.
access:  protected

Type:   String


[ Top ]

$header_title =  ''

[line 635]



Tags:

var:  to print as title on document header.
access:  protected

Type:   String


[ Top ]

$hPt =

[line 247]



Tags:

var:  height of page in points
access:  protected

Type:   current


[ Top ]

$HREF = array()

[line 656]



Tags:

var:  PARSER: array to store current link and rendering styles.
access:  protected

Type:   HTML


[ Top ]

$htmlLinkColorArray = array(0, 0, 255)

[line 1142]

Default color for html links



Tags:

since:  4.4.003 (2008-12-09)
access:  protected

Type:   mixed


[ Top ]

$htmlLinkFontStyle =  'U'

[line 1149]

Default font style to add to html links



Tags:

since:  4.4.003 (2008-12-09)
access:  protected

Type:   mixed


[ Top ]

$htmlvspace =  0

[line 1049]

Count the latest inserted vertical spaces on HTML



Tags:

since:  4.0.021 (2008-08-24)
access:  protected

Type:   mixed


[ Top ]

$imagekeys = array()

[line 1177]

Store the image keys.



Tags:

since:  4.5.000 (2008-12-31)
access:  protected

Type:   mixed


[ Top ]

$images = array()

[line 349]



Tags:

var:  of used images
access:  protected

Type:   array


[ Top ]

$imgscale =  1

[line 537]



Tags:

var:  scale factor
author:  Nicola Asuni
since:  2004-06-14
access:  protected

Type:   image


[ Top ]

$img_rb_x =

[line 521]



Tags:

var:  corner X coordinate of inserted image
author:  Nicola Asuni
since:  2002-07-31
access:  protected

Type:   right-bottom


[ Top ]

$img_rb_y =

[line 529]



Tags:

var:  corner Y coordinate of inserted image
author:  Nicola Asuni
since:  2002-07-31
access:  protected

Type:   right-bottom


[ Top ]

$InFooter =  false

[line 459]



Tags:

var:  set when processing footer
access:  protected

Type:   flag


[ Top ]

$internal_encoding =

[line 724]



Tags:

var:  internal encoding
since:  1.53.0.TC016
access:  protected

Type:   PHP


[ Top ]

$intmrk = array()

[line 978]

Array used to store positions inside the pages buffer.

keys are the page numbers




Tags:

since:  3.2.000 (2008-06-26)
access:  protected

Type:   mixed


[ Top ]

$isunicode =  false

[line 545]



Tags:

var:  set to true when the input text is unicode (require unicode fonts)
author:  Nicola Asuni
since:  2005-01-02
access:  protected

Type:   boolean


[ Top ]

$javascript =  ''

[line 827]

javascript code



Tags:

since:  2.1.002 (2008-02-12)
access:  protected

Type:   mixed


[ Top ]

$jpeg_quality =

[line 942]

Set the default JPEG compression quality (1-100)



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$k =

[line 223]



Tags:

var:  factor (number of points in user unit)
access:  protected

Type:   scale


[ Top ]

$keywords =

[line 495]



Tags:

access:  protected

Type:   keywords


[ Top ]

$l =

[line 599]



Tags:

var:  templates.
access:  protected

Type:   Language


[ Top ]

$lasth =

[line 313]



Tags:

var:  of last cell printed
access:  protected

Type:   height


[ Top ]

$last_rc4_key =

[line 782]

last RC4 key encrypted (cached for optimisation)



Tags:

since:  2.0.000 (2008-01-02)
access:  protected

Type:   mixed


[ Top ]

$last_rc4_key_c =

[line 789]

last RC4 computed key



Tags:

since:  2.0.000 (2008-01-02)
access:  protected

Type:   mixed


[ Top ]

$LayoutMode =

[line 471]



Tags:

var:  display mode
access:  protected

Type:   layout


[ Top ]

$linestyleCap =  '0 J'

[line 1021]

PDF string for last line width



Tags:

since:  4.0.006 (2008-07-16)
access:  protected

Type:   mixed


[ Top ]

$linestyleDash =  '[] 0 d'

[line 1035]

PDF string for last line width



Tags:

since:  4.0.006 (2008-07-16)
access:  protected

Type:   mixed


[ Top ]

$linestyleJoin =  '0 j'

[line 1028]

PDF string for last line width



Tags:

since:  4.0.006 (2008-07-16)
access:  protected

Type:   mixed


[ Top ]

$linestyleWidth =  ''

[line 1014]

PDF string for last line width



Tags:

since:  4.0.006 (2008-07-16)
access:  protected

Type:   mixed


[ Top ]

$linethrough =

[line 841]

line trough state



Tags:

since:  2.8.000 (2008-03-19)
access:  protected

Type:   mixed


[ Top ]

$LineWidth =

[line 319]



Tags:

var:  width in user unit
access:  protected

Type:   line


[ Top ]

$links = array()

[line 361]



Tags:

var:  of internal links
access:  protected

Type:   array


[ Top ]

$lispacer =  ''

[line 710]



Tags:

var:  for LI tags.
access:  protected

Type:   spacer


[ Top ]

$listcount = array()

[line 680]



Tags:

var:  PARSER: array count list items on nested lists.
access:  protected

Type:   HTML


[ Top ]

$listindent =

[line 692]



Tags:

var:  PARSER: indent amount for lists.
access:  protected

Type:   HTML


[ Top ]

$listnum =  0

[line 686]



Tags:

var:  PARSER: current list nesting level.
access:  protected

Type:   HTML


[ Top ]

$listordered = array()

[line 674]



Tags:

var:  PARSER: array of boolean values, true in case of ordered list (OL), false otherwise.
access:  protected

Type:   HTML


[ Top ]

$lisymbol =  ''

[line 1063]

Symbol used for HTML unordered list items



Tags:

since:  4.0.028 (2008-09-26)
access:  protected

Type:   mixed


[ Top ]

$lMargin =

[line 265]



Tags:

var:  margin
access:  protected

Type:   left


[ Top ]

$n =

[line 175]



Tags:

var:  object number
access:  protected

Type:   current


[ Top ]

$newline =  true

[line 1000]

True if a newline is created.



Tags:

since:  3.2.000 (2008-07-01)
access:  protected

Type:   mixed


[ Top ]

$newpagegroup = array()

[line 893]

Array of page numbers were a new page group was started



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$numfonts =  0

[line 1198]

Counts the number of fonts.



Tags:

since:  4.5.000 (2009-01-02)
access:  protected

Type:   mixed


[ Top ]

$numimages =  0

[line 1170]

Counts the number of pages.



Tags:

since:  4.5.000 (2008-12-31)
access:  protected

Type:   mixed


[ Top ]

$numpages =  0

[line 1156]

Counts the number of pages.



Tags:

since:  4.5.000 (2008-12-31)
access:  protected

Type:   mixed


[ Top ]

$n_js =

[line 834]

javascript counter



Tags:

since:  2.1.002 (2008-02-12)
access:  protected

Type:   mixed


[ Top ]

$n_ocg_print =

[line 921]

Print visibility.



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$n_ocg_view =

[line 928]

View visibility.



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$offsets =

[line 181]



Tags:

var:  of object offsets
access:  protected

Type:   array


[ Top ]

$oldcMargin =

[line 295]



Tags:

var:  internal padding (previous value)
access:  protected

Type:   cell


[ Top ]

$opencell =  true

[line 1113]



Tags:

var:  true keeps the border open for the cell sides that cross the page.
since:  4.2.010 (2008-11-14)
access:  protected

Type:   if


[ Top ]

$openMarkedContent =  false

[line 1042]

True if marked-content sequence is open



Tags:

since:  4.0.013 (2008-07-28)
access:  protected

Type:   mixed


[ Top ]

$original_lMargin =

[line 574]



Tags:

var:  left margin value
since:  1.53.0.TC013
access:  protected

Type:   original


[ Top ]

$original_rMargin =

[line 581]



Tags:

var:  right margin value
since:  1.53.0.TC013
access:  protected

Type:   original


[ Top ]

$OutlineRoot =

[line 817]

Outline root for bookmark



Tags:

since:  2.1.002 (2008-02-12)
access:  protected

Type:   mixed


[ Top ]

$outlines = array()

[line 810]

Outlines for bookmark



Tags:

since:  2.1.002 (2008-02-12)
access:  protected

Type:   mixed


[ Top ]

$Ovalue =

[line 761]

O entry in pdf document



Tags:

since:  2.0.000 (2008-01-02)
access:  protected

Type:   mixed


[ Top ]

$padding =  "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A"

[line 795]

RC4 padding



Tags:

access:  protected

Type:   mixed


[ Top ]

$page =

[line 169]



Tags:

var:  page number
access:  protected

Type:   current


[ Top ]

$PageAnnots = array()

[line 355]



Tags:

var:  of Annotations in pages
access:  protected

Type:   array


[ Top ]

$PageBreakTrigger =

[line 453]



Tags:

var:  used to trigger page breaks
access:  protected

Type:   threshold


[ Top ]

$pagedim = array()

[line 217]



Tags:

var:  that stores page dimensions.
  • $this->pagedim[$this->page]['w'] => page_width_in_points
  • $this->pagedim[$this->page]['h'] => height in points
  • $this->pagedim[$this->page]['wk'] => page_width_in_points
  • $this->pagedim[$this->page]['hk'] => height
  • $this->pagedim[$this->page]['tm'] => top_margin
  • $this->pagedim[$this->page]['bm'] => bottom_margin
  • $this->pagedim[$this->page]['lm'] => left_margin
  • $this->pagedim[$this->page]['rm'] => right_margin
  • $this->pagedim[$this->page]['pb'] => auto_page_break
  • $this->pagedim[$this->page]['or'] => page_orientation
  • $this->pagedim[$this->page]['olm'] => original_left_margin
  • $this->pagedim[$this->page]['orm'] => original_right_margin
access:  protected

Type:   array


[ Top ]

$pagegroups =

[line 900]

Contains the number of pages of the groups



Tags:

since:  3.0.000 (2008-03-27)
access:  protected

Type:   mixed


[ Top ]

$pagelen = array()

[line 1163]

Array containing page lenghts in bytes.



Tags:

since:  4.5.000 (2008-12-31)
access:  protected

Type:   mixed


[ Top ]

$PageMode =

[line 963]

A name object specifying how the document should be displayed when opened.



Tags:

since:  3.1.000 (2008-06-09)
access:  protected

Type:   mixed


[ Top ]

$pageopen = array()

[line 1212]

Store the fage status (true when opened, false when closed).



Tags:

since:  4.5.000 (2009-01-02)
access:  protected

Type:   mixed


[ Top ]

$pages = array()

[line 193]



Tags:

var:  containing pages
access:  protected

Type:   array


[ Top ]

$PDFVersion =  '1.7'

[line 552]



Tags:

var:  version
since:  1.5.3
access:  protected

Type:   PDF


[ Top ]

$premode =  false

[line 1127]



Tags:

var:  true when inside html pre tag
since:  4.4.001 (2008-12-08)
access:  protected

Type:   boolean


[ Top ]

$print_footer =  true

[line 617]



Tags:

var:  true prints footer.
access:  protected

Type:   If


[ Top ]

$print_header =  true

[line 611]



Tags:

var:  true prints header
access:  protected

Type:   If


[ Top ]

$Pvalue =

[line 768]

P entry in pdf document



Tags:

since:  2.0.000 (2008-01-02)
access:  protected

Type:   mixed


[ Top ]

$rMargin =

[line 277]



Tags:

var:  margin
access:  protected