From 6a3fdfa636919b1c921729143c5a98a9ddf3489f Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Wed, 23 Sep 2009 19:10:28 +0200 Subject: [PATCH] 4.8.006 --- CHANGELOG.TXT | 6 + README.TXT | 4 +- doc/classtrees_com-tecnick-tcpdf.html | 2 +- doc/com-tecnick-tcpdf/TCPDF.html | 701 ++++++++++-------- doc/com-tecnick-tcpdf/TCPDFBarcode.html | 2 +- doc/com-tecnick-tcpdf/_barcodes.php.html | 2 +- .../_config---tcpdf_config.php.html | 2 +- doc/com-tecnick-tcpdf/_htmlcolors.php.html | 2 +- doc/com-tecnick-tcpdf/_tcpdf.php.html | 6 +- doc/com-tecnick-tcpdf/_unicode_data.php.html | 2 +- doc/elementindex.html | 10 +- doc/elementindex_com-tecnick-tcpdf.html | 10 +- doc/errors.html | 2 +- doc/index.html | 2 +- doc/li_com-tecnick-tcpdf.html | 2 +- tcpdf.php | 118 ++- 16 files changed, 525 insertions(+), 348 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 2e2fa78..85c5c47 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,9 @@ +4.8.006 (2009-09-23) + - Bug item #2864522 "No images if DOCUMENT_ROOT=='/'" was fixed. + - Support for text-indent CSS attribute was added. + - Method rollbackTransaction() was changed to support self-reassigment of previous object (check source code documentation). + - Support for the HTML "nobr" attribute was added to avoid splitting a table or a table row on two pages (i.e.: ...). + 4.8.005 (2009-09-17) - A bug relative to multiple transformations and annotations was fixed. diff --git a/README.TXT b/README.TXT index 9025875..3a1618a 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 4.8.005 -Release date: 2009-09-17 +Version: 4.8.006 +Release date: 2009-09-23 Author: Nicola Asuni Copyright (c) 2001-2009: diff --git a/doc/classtrees_com-tecnick-tcpdf.html b/doc/classtrees_com-tecnick-tcpdf.html index 4f6b2f5..63400a0 100644 --- a/doc/classtrees_com-tecnick-tcpdf.html +++ b/doc/classtrees_com-tecnick-tcpdf.html @@ -45,7 +45,7 @@

- Documentation generated on Thu, 17 Sep 2009 22:37:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/TCPDF.html b/doc/com-tecnick-tcpdf/TCPDF.html index d3240d2..8316d86 100644 --- a/doc/com-tecnick-tcpdf/TCPDF.html +++ b/doc/com-tecnick-tcpdf/TCPDF.html @@ -74,7 +74,7 @@ Source Location: /tcpdf.php

Version:

@@ -249,11 +249,13 @@ Source Location: /tcpdf.php

  • $sig_annot_ref
  • $sig_obj_id
  • $spot_colors
  • +
  • $start_transaction_page
  • $state
  • $subject
  • $tagvspaces
  • $tempfontsize
  • $TextColor
  • +
  • $textindent
  • $thead
  • $theadMargins
  • $title
  • @@ -624,7 +626,7 @@ This is a PHP class for generating PDF documents without requiring external exte author:  Nicola Asuni - info@tecnick.com - version:  4.8.005 + version:  4.8.006 link:  http://www.tcpdf.org @@ -5156,6 +5158,33 @@ This is a PHP class for generating PDF documents without requiring external exte access:  protected + + +
    +
    + + + + + +
    Type:  mixed
    +


    +
    [ Top ]

    + +

    +

    $start_transaction_page =  0

    +

    [line 1480]

    + Store page number when startTransaction() is called.



    +

    Tags:

    +
    + + + + + + + +
    since:  4.8.006 (2009-09-23)
    access:  protected

    @@ -5296,6 +5325,33 @@ This is a PHP class for generating PDF documents without requiring external exte Type:   commands + + +

    +
    [ Top ]

    + +

    +

    $textindent =  0

    +

    [line 1473]

    + Text indentation value (used for text-indent CSS attribute)



    +

    Tags:

    +
    + + + + + + + +
    since:  4.8.006 (2009-09-23)
    access:  protected
    +
    + +
    +
    + + + +
    Type:  mixed


    @@ -5903,7 +5959,7 @@ This is a PHP class for generating PDF documents without requiring external exte
    -

    constructor __construct [line 1485]

    +

    constructor __construct [line 1499]

    @@ -5972,7 +6028,7 @@ $diskcache = false])
    -

    destructor __destruct [line 1611]

    +

    destructor __destruct [line 1625]

    @@ -6000,7 +6056,7 @@ $diskcache = false])
    -

    method AcceptPageBreak [line 3568]

    +

    method AcceptPageBreak [line 3582]

    @@ -6031,7 +6087,7 @@ $diskcache = false])
    -

    method addExtGState [line 11269]

    +

    method addExtGState [line 11283]

    @@ -6067,7 +6123,7 @@ $parms)
    -

    method AddFont [line 3120]

    +

    method AddFont [line 3134]

    @@ -6124,7 +6180,7 @@ $fontfile = ''])
    -

    method addHtmlLink [line 7646]

    +

    method addHtmlLink [line 7660]

    @@ -6193,7 +6249,7 @@ $style = -1])
    -

    method addHTMLVertSpace [line 14688]

    +

    method addHTMLVertSpace [line 14775]

    @@ -6259,7 +6315,7 @@ $closing = false])
    -

    method addJavascriptObject [line 9889]

    +

    method addJavascriptObject [line 9903]

    @@ -6301,7 +6357,7 @@ $onload = false])
    -

    method AddLink [line 3361]

    +

    method AddLink [line 3375]

    @@ -6332,7 +6388,7 @@ $onload = false])
    -

    method AddPage [line 2336]

    +

    method AddPage [line 2350]

    @@ -6380,7 +6436,7 @@ $format = ''])
    -

    method AddSpotColor [line 2753]

    +

    method AddSpotColor [line 2767]

    @@ -6446,7 +6502,7 @@ $k)
    -

    method addTOC [line 15710]

    +

    method addTOC [line 15797]

    @@ -6500,7 +6556,7 @@ $filler = '.'])
    -

    method AliasNbPages [line 11077]

    +

    method AliasNbPages [line 11091]

    @@ -6542,7 +6598,7 @@ $alias = '{nb}'])
    -

    method AliasNumPage [line 11104]

    +

    method AliasNumPage [line 11118]

    @@ -6584,7 +6640,7 @@ $alias = '{pnb}'])
    -

    method Annotation [line 3417]

    +

    method Annotation [line 3431]

    @@ -6659,7 +6715,7 @@ $spaces = 0])
    -

    method Arrow [line 9139]

    +

    method Arrow [line 9153]

    @@ -6737,7 +6793,7 @@ $arm_angle = 15])
    -

    method arrUTF8ToUTF16BE [line 7544]

    +

    method arrUTF8ToUTF16BE [line 7558]

    @@ -6812,7 +6868,7 @@ $setbom = true])
    -

    method Bookmark [line 9783]

    +

    method Bookmark [line 9797]

    @@ -6866,7 +6922,7 @@ $page = ''])
    -

    method Button [line 10783]

    +

    method Button [line 10797]

    @@ -6956,7 +7012,7 @@ $js = false])
    -

    method Cell [line 3629]

    +

    method Cell [line 3643]

    @@ -7052,7 +7108,7 @@ $ignore_min_height = false])
    -

    method CheckBox [line 10713]

    +

    method CheckBox [line 10727]

    @@ -7136,7 +7192,7 @@ $js = false])
    -

    method checkPageBreak [line 3581]

    +

    method checkPageBreak [line 3595]

    @@ -7190,7 +7246,7 @@ $addpage = true])
    -

    method Circle [line 8773]

    +

    method Circle [line 8787]

    @@ -7289,7 +7345,7 @@ $afinish:)
    -

    method Clip [line 11532]

    +

    method Clip [line 11546]

    @@ -7349,7 +7405,7 @@ $h)
    -

    method Close [line 2230]

    +

    method Close [line 2244]

    @@ -7380,7 +7436,7 @@ $h)
    -

    method closeHTMLTagHandler [line 14351]

    +

    method closeHTMLTagHandler [line 14438]

    @@ -7434,7 +7490,7 @@ $dom)
    -

    method ComboBox [line 10652]

    +

    method ComboBox [line 10666]

    @@ -7518,7 +7574,7 @@ $js = false])
    -

    method commitTransaction [line 15867]

    +

    method commitTransaction [line 15956]

    @@ -7546,7 +7602,7 @@ $js = false])
    -

    method convertHTMLColorToDec [line 7679]

    +

    method convertHTMLColorToDec [line 7693]

    @@ -7585,7 +7641,7 @@ $color = '#FFFFFF'])
    -

    method CoonsPatchMesh [line 11452]

    +

    method CoonsPatchMesh [line 11466]

    @@ -7687,7 +7743,7 @@ $coords_max = 1])
    -

    method Curve [line 8548]

    +

    method Curve [line 8562]

    @@ -7789,7 +7845,7 @@ $fill_color = array()])
    -

    method deletePage [line 15570]

    +

    method deletePage [line 15657]

    @@ -7831,7 +7887,7 @@ $page)
    -

    method Ellipse [line 8669]

    +

    method Ellipse [line 8683]

    @@ -7948,7 +8004,7 @@ $afinish:)
    -

    method empty_string [line 15914]

    +

    method empty_string [line 16010]

    @@ -7990,7 +8046,7 @@ $str)
    -

    method endPage [line 2355]

    +

    method endPage [line 2369]

    @@ -8021,7 +8077,7 @@ $str)
    -

    method Error [line 2202]

    +

    method Error [line 2216]

    @@ -8060,7 +8116,7 @@ $msg)
    -

    method Footer [line 2594]

    +

    method Footer [line 2608]

    @@ -8085,7 +8141,7 @@ $msg)
    -

    method formatPageNumber [line 11181]

    +

    method formatPageNumber [line 11195]

    @@ -8124,7 +8180,7 @@ $num)
    -

    method formatTOCPageNumber [line 11193]

    +

    method formatTOCPageNumber [line 11207]

    @@ -8166,7 +8222,7 @@ $num)
    -

    method GetAbsX [line 5152]

    +

    method GetAbsX [line 5166]

    @@ -8197,7 +8253,7 @@ $num)
    -

    method getAliasNbPages [line 11089]

    +

    method getAliasNbPages [line 11103]

    @@ -8228,7 +8284,7 @@ $num)
    -

    method getAliasNumPage [line 11117]

    +

    method getAliasNumPage [line 11131]

    @@ -8259,7 +8315,7 @@ $num)
    -

    method getAnnotOptFromJSProp [line 10020]

    +

    method getAnnotOptFromJSProp [line 10034]

    @@ -8295,7 +8351,7 @@ $prop)
    -

    method GetArrStringWidth [line 3032]

    +

    method GetArrStringWidth [line 3046]

    @@ -8358,7 +8414,7 @@ $fontsize = 0])
    -

    method getBarcode [line 11997]

    +

    method getBarcode [line 12011]

    @@ -8386,7 +8442,7 @@ $fontsize = 0])
    -

    method getBorderMode [line 4078]

    +

    method getBorderMode [line 4092]

    @@ -8434,7 +8490,7 @@ $position = 'start'])
    -

    method getBreakMargin [line 1933]

    +

    method getBreakMargin [line 1947]

    @@ -8482,7 +8538,7 @@ $pagenum = ''])
    -

    method getBuffer [line 15256]

    +

    method getBuffer [line 15343]

    @@ -8513,7 +8569,7 @@ $pagenum = ''])
    -

    method getCellCode [line 3681]

    +

    method getCellCode [line 3695]

    @@ -8609,7 +8665,7 @@ $ignore_min_height = false])
    -

    method getCellHeightRatio [line 11355]

    +

    method getCellHeightRatio [line 11369]

    @@ -8634,7 +8690,7 @@ $ignore_min_height = false])
    -

    method GetCharWidth [line 3059]

    +

    method GetCharWidth [line 3073]

    @@ -8679,7 +8735,7 @@ $char)
    -

    method getFontBuffer [line 15416]

    +

    method getFontBuffer [line 15503]

    @@ -8721,7 +8777,7 @@ $font)
    -

    method getFontFamily [line 12471]

    +

    method getFontFamily [line 12485]

    @@ -8752,7 +8808,7 @@ $font)
    -

    method getFontSize [line 12451]

    +

    method getFontSize [line 12465]

    @@ -8783,7 +8839,7 @@ $font)
    -

    method getFontSizePt [line 12461]

    +

    method getFontSizePt [line 12475]

    @@ -8814,7 +8870,7 @@ $font)
    -

    method getFontsList [line 3098]

    +

    method getFontsList [line 3112]

    @@ -8842,7 +8898,7 @@ $font)
    -

    method getFontStyle [line 12481]

    +

    method getFontStyle [line 12495]

    @@ -8873,7 +8929,7 @@ $font)
    -

    method getFooterFont [line 7605]

    +

    method getFooterFont [line 7619]

    @@ -8901,7 +8957,7 @@ $font)
    -

    method getFooterMargin [line 2508]

    +

    method getFooterMargin [line 2522]

    @@ -8929,7 +8985,7 @@ $font)
    -

    method getFormDefaultProp [line 10395]

    +

    method getFormDefaultProp [line 10409]

    @@ -8954,7 +9010,7 @@ $font)
    -

    method getGDgamma [line 5095]

    +

    method getGDgamma [line 5109]

    @@ -8993,7 +9049,7 @@ $v)
    -

    method getGraphicVars [line 15124]

    +

    method getGraphicVars [line 15211]

    @@ -9024,7 +9080,7 @@ $v)
    -

    method getGroupPageNo [line 11130]

    +

    method getGroupPageNo [line 11144]

    @@ -9049,7 +9105,7 @@ $v)
    -

    method getGroupPageNoFormatted [line 11140]

    +

    method getGroupPageNoFormatted [line 11154]

    @@ -9080,7 +9136,7 @@ $v)
    -

    method getHeaderData [line 2463]

    +

    method getHeaderData [line 2477]

    @@ -9108,7 +9164,7 @@ $v)
    -

    method getHeaderFont [line 7585]

    +

    method getHeaderFont [line 7599]

    @@ -9136,7 +9192,7 @@ $v)
    -

    method getHeaderMargin [line 2488]

    +

    method getHeaderMargin [line 2502]

    @@ -9164,7 +9220,7 @@ $v)
    -

    method getHtmlDomArray [line 12517]

    +

    method getHtmlDomArray [line 12531]

    @@ -9203,7 +9259,7 @@ $html)
    -

    method getHTMLUnitToUnits [line 14843]

    +

    method getHTMLUnitToUnits [line 14930]

    @@ -9269,7 +9325,7 @@ $point)
    -

    method getImageBuffer [line 15358]

    +

    method getImageBuffer [line 15445]

    @@ -9311,7 +9367,7 @@ $image)
    -

    method getImageRBX [line 2534]

    +

    method getImageRBX [line 2548]

    @@ -9336,7 +9392,7 @@ $image)
    -

    method getImageRBY [line 2543]

    +

    method getImageRBY [line 2557]

    @@ -9361,7 +9417,7 @@ $image)
    -

    method getImageScale [line 1872]

    +

    method getImageScale [line 1886]

    @@ -9395,7 +9451,7 @@ $image)
    -

    method getLastH [line 1850]

    +

    method getLastH [line 1864]

    @@ -9426,7 +9482,7 @@ $image)
    -

    method GetLineWidth [line 8262]

    +

    method GetLineWidth [line 8276]

    @@ -9460,7 +9516,7 @@ $image)
    -

    method getMargins [line 12414]

    +

    method getMargins [line 12428]

    @@ -9491,7 +9547,7 @@ $image)
    -

    method GetNumChars [line 3086]

    +

    method GetNumChars [line 3100]

    @@ -9533,7 +9589,7 @@ $s)
    -

    method getNumLines [line 4157]

    +

    method getNumLines [line 4171]

    @@ -9581,7 +9637,7 @@ $w = 0])
    -

    method getNumPages [line 2323]

    +

    method getNumPages [line 2337]

    @@ -9615,7 +9671,7 @@ $w = 0])
    -

    method getObjFilename [line 15188]

    +

    method getObjFilename [line 15275]

    @@ -9660,7 +9716,7 @@ $prefix)
    -

    method getOriginalMargins [line 12437]

    +

    method getOriginalMargins [line 12451]

    @@ -9691,7 +9747,7 @@ $prefix)
    -

    method getPage [line 2311]

    +

    method getPage [line 2325]

    @@ -9725,7 +9781,7 @@ $prefix)
    -

    method getPageBuffer [line 15299]

    +

    method getPageBuffer [line 15386]

    @@ -9767,7 +9823,7 @@ $page)
    -

    method getPageDimensions [line 1885]

    +

    method getPageDimensions [line 1899]

    @@ -9812,7 +9868,7 @@ $pagenum = ''])
    -

    method getPageGroupAlias [line 11152]

    +

    method getPageGroupAlias [line 11166]

    @@ -9837,7 +9893,7 @@ $pagenum = ''])
    -

    method getPageHeight [line 1917]

    +

    method getPageHeight [line 1931]

    @@ -9885,7 +9941,7 @@ $pagenum = ''])
    -

    method getPageNumGroupAlias [line 11167]

    +

    method getPageNumGroupAlias [line 11181]

    @@ -9910,7 +9966,7 @@ $pagenum = ''])
    -

    method getPageWidth [line 1901]

    +

    method getPageWidth [line 1915]

    @@ -9958,7 +10014,7 @@ $pagenum = ''])
    -

    method getPDFData [line 7628]

    +

    method getPDFData [line 7642]

    @@ -9983,7 +10039,7 @@ $pagenum = ''])
    -

    method getRemainingWidth [line 4518]

    +

    method getRemainingWidth [line 4532]

    @@ -10011,7 +10067,7 @@ $pagenum = ''])
    -

    method getRTL [line 1813]

    +

    method getRTL [line 1827]

    @@ -10039,7 +10095,7 @@ $pagenum = ''])
    -

    method getScaleFactor [line 1947]

    +

    method getScaleFactor [line 1961]

    @@ -10073,7 +10129,7 @@ $pagenum = ''])
    -

    method GetStringWidth [line 3017]

    +

    method GetStringWidth [line 3031]

    @@ -10136,7 +10192,7 @@ $fontsize = 0])
    -

    method GetX [line 5136]

    +

    method GetX [line 5150]

    @@ -10167,7 +10223,7 @@ $fontsize = 0])
    -

    method GetY [line 5163]

    +

    method GetY [line 5177]

    @@ -10198,7 +10254,7 @@ $fontsize = 0])
    -

    method get_mqr [line 4859]

    +

    method get_mqr [line 4873]

    @@ -10229,7 +10285,7 @@ $fontsize = 0])
    -

    method Gradient [line 11555]

    +

    method Gradient [line 11569]

    @@ -10289,7 +10345,7 @@ $coords)
    -

    method Header [line 2552]

    +

    method Header [line 2566]

    @@ -10314,7 +10370,7 @@ $coords)
    -

    method Image [line 4641]

    +

    method Image [line 4655]

    @@ -10446,7 +10502,7 @@ $hidden = false])
    -

    method ImageEps [line 11727]

    +

    method ImageEps [line 11741]

    @@ -10542,7 +10598,7 @@ $border = 0])
    -

    method ImagePngAlpha [line 5051]

    +

    method ImagePngAlpha [line 5065]

    @@ -10647,7 +10703,7 @@ $palign = ''])
    -

    method IncludeJS [line 9876]

    +

    method IncludeJS [line 9890]

    @@ -10683,7 +10739,7 @@ $script)
    -

    method intToRoman [line 14917]

    +

    method intToRoman [line 15004]

    @@ -10725,7 +10781,7 @@ $number)
    -

    method lastPage [line 2300]

    +

    method lastPage [line 2314]

    @@ -10767,7 +10823,7 @@ $resetmargins = false])
    -

    method Line [line 8415]

    +

    method Line [line 8429]

    @@ -10833,7 +10889,7 @@ $style = array()])
    -

    method LinearGradient [line 11412]

    +

    method LinearGradient [line 11426]

    @@ -10911,7 +10967,7 @@ $coords = array(0,0,1,0)])
    -

    method Link [line 3400]

    +

    method Link [line 3414]

    @@ -10983,7 +11039,7 @@ $spaces = 0])
    -

    method ListBox [line 10592]

    +

    method ListBox [line 10606]

    @@ -11067,7 +11123,7 @@ $js = false])
    -

    method Ln [line 5108]

    +

    method Ln [line 5122]

    @@ -11115,7 +11171,7 @@ $cell = false])
    -

    method MirrorH [line 8034]

    +

    method MirrorH [line 8048]

    @@ -11157,7 +11213,7 @@ $x = ''])
    -

    method MirrorL [line 8070]

    +

    method MirrorL [line 8084]

    @@ -11211,7 +11267,7 @@ $y = ''])
    -

    method MirrorP [line 8057]

    +

    method MirrorP [line 8071]

    @@ -11259,7 +11315,7 @@ $y = ''])
    -

    method MirrorV [line 8045]

    +

    method MirrorV [line 8059]

    @@ -11301,7 +11357,7 @@ $y = ''])
    -

    method movePage [line 15433]

    +

    method movePage [line 15520]

    @@ -11349,7 +11405,7 @@ $topage)
    -

    method MultiCell [line 3919]

    +

    method MultiCell [line 3933]

    @@ -11475,7 +11531,7 @@ $maxh = 0])
    -

    method objclone [line 15903]

    +

    method objclone [line 15999]

    @@ -11517,7 +11573,7 @@ $object)
    -

    method Open [line 2217]

    +

    method Open [line 2231]

    @@ -11548,7 +11604,7 @@ $object)
    -

    method openHTMLTagHandler [line 13814]

    +

    method openHTMLTagHandler [line 13901]

    @@ -11602,7 +11658,7 @@ $dom)
    -

    method Output [line 5255]

    +

    method Output [line 5269]

    @@ -11650,7 +11706,7 @@ $dest = 'I'])
    -

    method PageNo [line 2737]

    +

    method PageNo [line 2751]

    @@ -11684,7 +11740,7 @@ $dest = 'I'])
    -

    method PageNoFormatted [line 11203]

    +

    method PageNoFormatted [line 11217]

    @@ -11715,7 +11771,7 @@ $dest = 'I'])
    -

    method PieSector [line 11649]

    +

    method PieSector [line 11663]

    @@ -11817,7 +11873,7 @@ $o:)
    -

    method pixelsToUnits [line 7736]

    +

    method pixelsToUnits [line 7750]

    @@ -11859,7 +11915,7 @@ $px)
    -

    method Polycurve [line 8605]

    +

    method Polycurve [line 8619]

    @@ -11931,7 +11987,7 @@ $fill_color = array()])
    -

    method Polygon [line 8825]

    +

    method Polygon [line 8839]

    @@ -11994,7 +12050,7 @@ $closed = true])
    -

    method PolyLine [line 8799]

    +

    method PolyLine [line 8813]

    @@ -12057,7 +12113,7 @@ $closed)
    -

    method putHtmlListBullet [line 14982]

    +

    method putHtmlListBullet [line 15069]

    @@ -12108,7 +12164,7 @@ $size = 10])
    -

    method RadialGradient [line 11430]

    +

    method RadialGradient [line 11444]

    @@ -12186,7 +12242,7 @@ $coords = array(0.5,0.5,0.5,0.5,1)])
    -

    method RadioButton [line 10504]

    +

    method RadioButton [line 10518]

    @@ -12270,7 +12326,7 @@ $js = false])
    -

    method readDiskCache [line 15228]

    +

    method readDiskCache [line 15315]

    @@ -12318,7 +12374,7 @@ $file)
    -

    method Rect [line 8450]

    +

    method Rect [line 8464]

    @@ -12396,7 +12452,7 @@ $fill_color = array()])
    -

    method RegularPolygon [line 8950]

    +

    method RegularPolygon [line 8964]

    @@ -12507,7 +12563,7 @@ $r:)
    -

    method removeSHY [line 3646]

    +

    method removeSHY [line 3660]

    @@ -12549,7 +12605,7 @@ $txt = ''])
    -

    method rfread [line 5021]

    +

    method rfread [line 5035]

    @@ -12600,12 +12656,13 @@ $length)
    -

    method rollbackTransaction [line 15880]

    +

    method rollbackTransaction [line 15970]

    TCPDF rollbackTransaction( -) +[boolean +$self = false])

    @@ -12627,11 +12684,21 @@ $length)

    +

    Parameters:

    +
    + + + + + + +
    boolean  $self  if true restores current class object to previous state without the need of reassignment via the returned value.
    +

    [ Top ]

    -

    method Rotate [line 8129]

    +

    method Rotate [line 8143]

    @@ -12685,7 +12752,7 @@ $y = ''])
    -

    method RoundedRect [line 9054]

    +

    method RoundedRect [line 9068]

    @@ -12772,7 +12839,7 @@ $fill_color = array()])
    -

    method Scale [line 7999]

    +

    method Scale [line 8013]

    @@ -12832,7 +12899,7 @@ $y = ''])
    -

    method ScaleX [line 7959]

    +

    method ScaleX [line 7973]

    @@ -12886,7 +12953,7 @@ $y = ''])
    -

    method ScaleXY [line 7985]

    +

    method ScaleXY [line 7999]

    @@ -12940,7 +13007,7 @@ $y = ''])
    -

    method ScaleY [line 7972]

    +

    method ScaleY [line 7986]

    @@ -12994,7 +13061,7 @@ $y = ''])
    -

    method setAlpha [line 11312]

    +

    method setAlpha [line 11326]

    @@ -13036,7 +13103,7 @@ $bm = 'Normal'])
    -

    method SetAuthor [line 2166]

    +

    method SetAuthor [line 2180]

    @@ -13078,7 +13145,7 @@ $author)
    -

    method SetAutoPageBreak [line 2033]

    +

    method SetAutoPageBreak [line 2047]

    @@ -13126,7 +13193,7 @@ $margin = 0])
    -

    method setBarcode [line 11987]

    +

    method setBarcode [line 12001]

    @@ -13162,7 +13229,7 @@ $bc = ''])
    -

    method SetBooklet [line 14757]

    +

    method SetBooklet [line 14844]

    @@ -13213,7 +13280,7 @@ $outer = -1])
    -

    method setBuffer [line 15238]

    +

    method setBuffer [line 15325]

    @@ -13252,7 +13319,7 @@ $data)
    -

    method setCellHeightRatio [line 11346]

    +

    method setCellHeightRatio [line 11360]

    @@ -13288,7 +13355,7 @@ $h)
    -

    method SetCellPadding [line 2021]

    +

    method SetCellPadding [line 2035]

    @@ -13330,7 +13397,7 @@ $pad)
    -

    method SetCompression [line 2126]

    +

    method SetCompression [line 2140]

    @@ -13369,7 +13436,7 @@ $compress)
    -

    method setContentMark [line 2430]

    +

    method setContentMark [line 2444]

    @@ -13408,7 +13475,7 @@ $page = 0])
    -

    method SetCreator [line 2190]

    +

    method SetCreator [line 2204]

    @@ -13450,7 +13517,7 @@ $creator)
    -

    method SetDefaultMonospacedFont [line 3350]

    +

    method SetDefaultMonospacedFont [line 3364]

    @@ -13489,7 +13556,7 @@ $font)
    -

    method setDefaultTableColumns [line 11336]

    +

    method setDefaultTableColumns [line 11350]

    @@ -13525,7 +13592,7 @@ $cols = 4])
    -

    method SetDisplayMode [line 2048]

    +

    method SetDisplayMode [line 2062]

    @@ -13576,7 +13643,7 @@ $mode = 'UseNone'])
    -

    method SetDrawColor [line 2792]

    +

    method SetDrawColor [line 2806]

    @@ -13636,7 +13703,7 @@ $col4 = -1])
    -

    method SetDrawColorArray [line 2769]

    +

    method SetDrawColorArray [line 2783]

    @@ -13678,7 +13745,7 @@ $color)
    -

    method SetDrawSpotColor [line 2830]

    +

    method SetDrawSpotColor [line 2844]

    @@ -13726,7 +13793,7 @@ $tint = 100])
    -

    method setExtGState [line 11281]

    +

    method setExtGState [line 11295]

    @@ -13762,7 +13829,7 @@ $gs)
    -

    method SetFillColor [line 2872]

    +

    method SetFillColor [line 2886]

    @@ -13822,7 +13889,7 @@ $col4 = -1])
    -

    method SetFillColorArray [line 2849]

    +

    method SetFillColorArray [line 2863]

    @@ -13864,7 +13931,7 @@ $color)
    -

    method SetFillSpotColor [line 2914]

    +

    method SetFillSpotColor [line 2928]

    @@ -13912,7 +13979,7 @@ $tint = 100])
    -

    method SetFont [line 3305]

    +

    method SetFont [line 3319]

    @@ -13972,7 +14039,7 @@ $fontfile = ''])
    -

    method setFontBuffer [line 15374]

    +

    method setFontBuffer [line 15461]

    @@ -14017,7 +14084,7 @@ $data)
    -

    method SetFontSize [line 3325]

    +

    method SetFontSize [line 3339]

    @@ -14059,7 +14126,7 @@ $size)
    -

    method setFontSubBuffer [line 15396]

    +

    method setFontSubBuffer [line 15483]

    @@ -14110,7 +14177,7 @@ $data)
    -

    method setFooter [line 2660]

    +

    method setFooter [line 2674]

    @@ -14138,7 +14205,7 @@ $data)
    -

    method setFooterFont [line 7595]

    +

    method setFooterFont [line 7609]

    @@ -14177,7 +14244,7 @@ $font)
    -

    method setFooterMargin [line 2498]

    +

    method setFooterMargin [line 2512]

    @@ -14213,7 +14280,7 @@ $fm = 10])
    -

    method setFormDefaultProp [line 10384]

    +

    method setFormDefaultProp [line 10398]

    @@ -14249,7 +14316,7 @@ $prop = array()])
    -

    method setGraphicVars [line 15155]

    +

    method setGraphicVars [line 15242]

    @@ -14288,7 +14355,7 @@ $gvars)
    -

    method setHeader [line 2629]

    +

    method setHeader [line 2643]

    @@ -14316,7 +14383,7 @@ $gvars)
    -

    method setHeaderData [line 2449]

    +

    method setHeaderData [line 2463]

    @@ -14370,7 +14437,7 @@ $hs = ''])
    -

    method setHeaderFont [line 7575]

    +

    method setHeaderFont [line 7589]

    @@ -14409,7 +14476,7 @@ $font)
    -

    method setHeaderMargin [line 2478]

    +

    method setHeaderMargin [line 2492]

    @@ -14445,7 +14512,7 @@ $hm = 10])
    -

    method setHtmlLinksStyle [line 14828]

    +

    method setHtmlLinksStyle [line 14915]

    @@ -14490,7 +14557,7 @@ $fontstyle = 'U'])
    -

    method setHtmlVSpace [line 14797]

    +

    method setHtmlVSpace [line 14884]

    @@ -14529,7 +14596,7 @@ $tagvs)
    -

    method setImageBuffer [line 15315]

    +

    method setImageBuffer [line 15402]

    @@ -14574,7 +14641,7 @@ $data)
    -

    method setImageScale [line 1861]

    +

    method setImageScale [line 1875]

    @@ -14616,7 +14683,7 @@ $scale)
    -

    method setImageSubBuffer [line 15338]

    +

    method setImageSubBuffer [line 15425]

    @@ -14667,7 +14734,7 @@ $data)
    -

    method setJPEGQuality [line 11323]

    +

    method setJPEGQuality [line 11337]

    @@ -14703,7 +14770,7 @@ $quality)
    -

    method SetKeywords [line 2178]

    +

    method SetKeywords [line 2192]

    @@ -14745,7 +14812,7 @@ $keywords)
    -

    method setLanguageArray [line 7615]

    +

    method setLanguageArray [line 7629]

    @@ -14784,7 +14851,7 @@ $language)
    -

    method setLastH [line 1840]

    +

    method setLastH [line 1854]

    @@ -14826,7 +14893,7 @@ $h)
    -

    method SetLeftMargin [line 1977]

    +

    method SetLeftMargin [line 1991]

    @@ -14868,7 +14935,7 @@ $margin)
    -

    method SetLineStyle [line 8287]

    +

    method SetLineStyle [line 8301]

    @@ -14914,7 +14981,7 @@ $style)
    -

    method SetLineWidth [line 8246]

    +

    method SetLineWidth [line 8260]

    @@ -14956,7 +15023,7 @@ $width)
    -

    method SetLink [line 3377]

    +

    method SetLink [line 3391]

    @@ -15010,7 +15077,7 @@ $page = -1])
    -

    method setListIndentWidth [line 14807]

    +

    method setListIndentWidth [line 14894]

    @@ -15049,7 +15116,7 @@ $width)
    -

    method setLIsymbol [line 14717]

    +

    method setLIsymbol [line 14804]

    @@ -15088,7 +15155,7 @@ $symbol = '!'])
    -

    method SetMargins [line 1960]

    +

    method SetMargins [line 1974]

    @@ -15142,7 +15209,7 @@ $right = -1])
    -

    method setOpenCell [line 14817]

    +

    method setOpenCell [line 14904]

    @@ -15181,7 +15248,7 @@ $isopen)
    -

    method setPage [line 2253]

    +

    method setPage [line 2267]

    @@ -15229,7 +15296,7 @@ $resetmargins = false])
    -

    method setPageBuffer [line 15272]

    +

    method setPageBuffer [line 15359]

    @@ -15280,7 +15347,7 @@ $append = false])
    -

    method setPageFormat [line 1668]

    +

    method setPageFormat [line 1682]

    @@ -15325,7 +15392,7 @@ $orientation = 'P'])
    -

    method setPageMark [line 2419]

    +

    method setPageMark [line 2433]

    @@ -15353,7 +15420,7 @@ $orientation = 'P'])
    -

    method setPageOrientation [line 1741]

    +

    method setPageOrientation [line 1755]

    @@ -15404,7 +15471,7 @@ $bottommargin = ''])
    -

    method setPageUnit [line 1626]

    +

    method setPageUnit [line 1640]

    @@ -15443,7 +15510,7 @@ $unit)
    -

    method setPDFVersion [line 11365]

    +

    method setPDFVersion [line 11379]

    @@ -15479,7 +15546,7 @@ $version = '1.7'])
    -

    method setPrintFooter [line 2525]

    +

    method setPrintFooter [line 2539]

    @@ -15521,7 +15588,7 @@ $value)
    -

    method setPrintHeader [line 2516]

    +

    method setPrintHeader [line 2530]

    @@ -15557,7 +15624,7 @@ $val = true])
    -

    method SetProtection [line 7899]

    +

    method SetProtection [line 7913]

    @@ -15611,7 +15678,7 @@ $owner_pass = null])
    -

    method SetRightMargin [line 2007]

    +

    method SetRightMargin [line 2021]

    @@ -15653,7 +15720,7 @@ $margin)
    -

    method setRTL [line 1797]

    +

    method setRTL [line 1811]

    @@ -15698,7 +15765,7 @@ $resetx = true])
    -

    method setSignature [line 11034]

    +

    method setSignature [line 11048]

    @@ -15764,7 +15831,7 @@ $info = array()])
    -

    method setSpacesRE [line 1782]

    +

    method setSpacesRE [line 1796]

    @@ -15803,7 +15870,7 @@ $re = '/[\s]/'])
    -

    method SetSubject [line 2154]

    +

    method SetSubject [line 2168]

    @@ -15845,7 +15912,7 @@ $subject)
    -

    method setTableHeader [line 2702]

    +

    method setTableHeader [line 2716]

    @@ -15873,7 +15940,7 @@ $subject)
    -

    method setTempRTL [line 1823]

    +

    method setTempRTL [line 1837]

    @@ -15912,7 +15979,7 @@ $mode)
    -

    method SetTextColor [line 2956]

    +

    method SetTextColor [line 2970]

    @@ -15972,7 +16039,7 @@ $col4 = -1])
    -

    method SetTextColorArray [line 2933]

    +

    method SetTextColorArray [line 2947]

    @@ -16014,7 +16081,7 @@ $color)
    -

    method SetTextSpotColor [line 2995]

    +

    method SetTextSpotColor [line 3009]

    @@ -16062,7 +16129,7 @@ $tint = 100])
    -

    method SetTitle [line 2142]

    +

    method SetTitle [line 2156]

    @@ -16104,7 +16171,7 @@ $title)
    -

    method SetTopMargin [line 1992]

    +

    method SetTopMargin [line 2006]

    @@ -16146,7 +16213,7 @@ $margin)
    -

    method setUserRights [line 11004]

    +

    method setUserRights [line 11018]

    @@ -16206,7 +16273,7 @@ $signature = '/Modify'])
    -

    method setViewerPreferences [line 11395]

    +

    method setViewerPreferences [line 11409]

    @@ -16242,7 +16309,7 @@ $preferences)
    -

    method setVisibility [line 11233]

    +

    method setVisibility [line 11247]

    @@ -16278,7 +16345,7 @@ $v)
    -

    method SetX [line 5176]

    +

    method SetX [line 5190]

    @@ -16320,7 +16387,7 @@ $x)
    -

    method SetXY [line 5239]

    +

    method SetXY [line 5253]

    @@ -16368,7 +16435,7 @@ $y)
    -

    method SetY [line 5208]

    +

    method SetY [line 5222]

    @@ -16416,7 +16483,7 @@ $resetx = true])
    -

    method set_mqr [line 4848]

    +

    method set_mqr [line 4862]

    @@ -16455,7 +16522,7 @@ $mqr)
    -

    method Skew [line 8189]

    +

    method Skew [line 8203]

    @@ -16515,7 +16582,7 @@ $y = ''])
    -

    method SkewX [line 8162]

    +

    method SkewX [line 8176]

    @@ -16569,7 +16636,7 @@ $y = ''])
    -

    method SkewY [line 8175]

    +

    method SkewY [line 8189]

    @@ -16623,7 +16690,7 @@ $y = ''])
    -

    method StarPolygon [line 9005]

    +

    method StarPolygon [line 9019]

    @@ -16747,7 +16814,7 @@ $draw_circle:)
    -

    method startPage [line 2379]

    +

    method startPage [line 2393]

    @@ -16795,7 +16862,7 @@ $format = ''])
    -

    method startPageGroup [line 11062]

    +

    method startPageGroup [line 11076]

    @@ -16831,7 +16898,7 @@ $page = ''])
    -

    method startTransaction [line 15853]

    +

    method startTransaction [line 15940]

    @@ -16859,7 +16926,7 @@ $page = ''])
    -

    method StartTransform [line 7927]

    +

    method StartTransform [line 7941]

    @@ -16890,7 +16957,7 @@ $page = ''])
    -

    method StopTransform [line 7942]

    +

    method StopTransform [line 7956]

    @@ -16921,7 +16988,7 @@ $page = ''])
    -

    method swapMargins [line 14773]

    +

    method swapMargins [line 14860]

    @@ -16960,7 +17027,7 @@ $reverse = true])
    -

    method Text [line 3528]

    +

    method Text [line 3542]

    @@ -17029,7 +17096,7 @@ $clip = false])
    -

    method TextField [line 10413]

    +

    method TextField [line 10427]

    @@ -17107,7 +17174,7 @@ $js = false])
    -

    method Transform [line 8222]

    +

    method Transform [line 8236]

    @@ -17149,7 +17216,7 @@ $tm)
    -

    method Translate [line 8105]

    +

    method Translate [line 8119]

    @@ -17197,7 +17264,7 @@ $t_y)
    -

    method TranslateX [line 8082]

    +

    method TranslateX [line 8096]

    @@ -17239,7 +17306,7 @@ $t_x)
    -

    method TranslateY [line 8093]

    +

    method TranslateY [line 8107]

    @@ -17281,7 +17348,7 @@ $t_y)
    -

    method unhtmlentities [line 7747]

    +

    method unhtmlentities [line 7761]

    @@ -17320,7 +17387,7 @@ $text_to_convert)
    -

    method UniArrSubString [line 4557]

    +

    method UniArrSubString [line 4571]

    @@ -17374,7 +17441,7 @@ $end = ''])
    -

    method unichr [line 4590]

    +

    method unichr [line 4604]

    @@ -17419,7 +17486,7 @@ $c)
    -

    method UTF8ArrayToUniArray [line 4578]

    +

    method UTF8ArrayToUniArray [line 4592]

    @@ -17461,7 +17528,7 @@ $ta)
    -

    method UTF8ArrSubString [line 4534]

    +

    method UTF8ArrSubString [line 4548]

    @@ -17512,7 +17579,7 @@ $end = ''])
    -

    method utf8Bidi [line 9212]

    +

    method utf8Bidi [line 9226]

    @@ -17566,7 +17633,7 @@ $forcertl = false])
    -

    method UTF8StringToArray [line 7377]

    +

    method UTF8StringToArray [line 7391]

    @@ -17632,7 +17699,7 @@ $str)
    -

    method utf8StrRev [line 9198]

    +

    method utf8StrRev [line 9212]

    @@ -17686,7 +17753,7 @@ $forcertl = false])
    -

    method UTF8ToLatin1 [line 7484]

    +

    method UTF8ToLatin1 [line 7498]

    @@ -17728,7 +17795,7 @@ $str)
    -

    method UTF8ToUTF16BE [line 7468]

    +

    method UTF8ToUTF16BE [line 7482]

    @@ -17779,7 +17846,7 @@ $setbom = true])
    -

    method Write [line 4200]

    +

    method Write [line 4214]

    @@ -17875,7 +17942,7 @@ $maxh = 0])
    -

    method write1DBarcode [line 12016]

    +

    method write1DBarcode [line 12030]

    @@ -17965,7 +18032,7 @@ $align = ''])
    -

    method write2DBarcode [line 12267]

    +

    method write2DBarcode [line 12281]

    @@ -18049,7 +18116,7 @@ $align = ''])
    -

    method writeBarcode [line 12217]

    +

    method writeBarcode [line 12231]

    @@ -18139,7 +18206,7 @@ $code)
    -

    method writeDiskCache [line 15200]

    +

    method writeDiskCache [line 15287]

    @@ -18196,7 +18263,7 @@ $file)
    -

    method writeHTML [line 12948]

    +

    method writeHTML [line 12971]

    @@ -18262,7 +18329,7 @@ $align = ''])
    -

    method writeHTMLCell [line 12505]

    +

    method writeHTMLCell [line 12519]

    @@ -18364,7 +18431,7 @@ $autopadding = true])
    -

    method _addfield [line 9985]

    +

    method _addfield [line 9999]

    @@ -18436,7 +18503,7 @@ $prop)
    -

    method _beginpage [line 7144]

    +

    method _beginpage [line 7158]

    @@ -18478,7 +18545,7 @@ $format = ''])
    -

    method _datastring [line 7256]

    +

    method _datastring [line 7270]

    @@ -18517,7 +18584,7 @@ $s)
    -

    method _datestring [line 7269]

    +

    method _datestring [line 7283]

    @@ -18548,7 +18615,7 @@ $s)
    -

    method _destroy [line 5410]

    +

    method _destroy [line 5424]

    @@ -18593,7 +18660,7 @@ $preserve_objcopy = false])
    -

    method _dochecks [line 5438]

    +

    method _dochecks [line 5452]

    @@ -18618,7 +18685,7 @@ $preserve_objcopy = false])
    -

    method _dolinethrough [line 7221]

    +

    method _dolinethrough [line 7235]

    @@ -18666,7 +18733,7 @@ $txt)
    -

    method _dounderline [line 7207]

    +

    method _dounderline [line 7221]

    @@ -18714,7 +18781,7 @@ $txt)
    -

    method _enddoc [line 7027]

    +

    method _enddoc [line 7041]

    @@ -18739,7 +18806,7 @@ $txt)
    -

    method _endpage [line 7183]

    +

    method _endpage [line 7197]

    @@ -18764,7 +18831,7 @@ $txt)
    -

    method _escape [line 7245]

    +

    method _escape [line 7259]

    @@ -18803,7 +18870,7 @@ $s)
    -

    method _escapetext [line 7294]

    +

    method _escapetext [line 7308]

    @@ -18842,7 +18909,7 @@ $s)
    -

    method _freadint [line 7234]

    +

    method _freadint [line 7248]

    @@ -18881,7 +18948,7 @@ $f)
    -

    method _generateencryptionkey [line 7867]

    +

    method _generateencryptionkey [line 7881]

    @@ -18935,7 +19002,7 @@ $protection)
    -

    method _getfontpath [line 5454]

    +

    method _getfontpath [line 5468]

    @@ -18960,7 +19027,7 @@ $protection)
    -

    method _JScolor [line 9961]

    +

    method _JScolor [line 9975]

    @@ -18996,7 +19063,7 @@ $color)
    -

    method _md5_16 [line 7828]

    +

    method _md5_16 [line 7842]

    @@ -19041,7 +19108,7 @@ $str)
    -

    method _newobj [line 7193]

    +

    method _newobj [line 7207]

    @@ -19069,7 +19136,7 @@ $str)
    -

    method _objectkey [line 7760]

    +

    method _objectkey [line 7774]

    @@ -19108,7 +19175,7 @@ $n)
    -

    method _out [line 7325]

    +

    method _out [line 7339]

    @@ -19144,7 +19211,7 @@ $s)
    -

    method _outarc [line 11629]

    +

    method _outarc [line 11643]

    @@ -19216,7 +19283,7 @@ $y3)
    -

    method _outCurve [line 8395]

    +

    method _outCurve [line 8409]

    @@ -19282,7 +19349,7 @@ $y3)
    -

    method _outLine [line 8359]

    +

    method _outLine [line 8373]

    @@ -19324,7 +19391,7 @@ $y)
    -

    method _outPoint [line 8345]

    +

    method _outPoint [line 8359]

    @@ -19366,7 +19433,7 @@ $y)
    -

    method _outRect [line 8376]

    +

    method _outRect [line 8390]

    @@ -19429,7 +19496,7 @@ $op)
    -

    method _Ovalue [line 7841]

    +

    method _Ovalue [line 7855]

    @@ -19480,7 +19547,7 @@ $owner_pass)
    -

    method _parsejpeg [line 4890]

    +

    method _parsejpeg [line 4904]

    @@ -19519,7 +19586,7 @@ $file)
    -

    method _parsepng [line 4916]

    +

    method _parsepng [line 4930]

    @@ -19558,7 +19625,7 @@ $file)
    -

    method _putannotsobjs [line 5637]

    +

    method _putannotsobjs [line 5651]

    @@ -19589,7 +19656,7 @@ $file)
    -

    method _putannotsrefs [line 5606]

    +

    method _putannotsrefs [line 5620]

    @@ -19631,7 +19698,7 @@ $n)
    -

    method _putAPXObject [line 6244]

    +

    method _putAPXObject [line 6258]

    @@ -19685,7 +19752,7 @@ $stream = ''])
    -

    method _putbookmarks [line 9811]

    +

    method _putbookmarks [line 9825]

    @@ -19710,7 +19777,7 @@ $stream = ''])
    -

    method _putcatalog [line 6852]

    +

    method _putcatalog [line 6866]

    @@ -19735,7 +19802,7 @@ $stream = ''])
    -

    method _putcidfont0 [line 6595]

    +

    method _putcidfont0 [line 6609]

    @@ -19780,7 +19847,7 @@ $font)
    -

    method _putEmbeddedFiles [line 3497]

    +

    method _putEmbeddedFiles [line 3511]

    @@ -19811,7 +19878,7 @@ $font)
    -

    method _putencryption [line 7769]

    +

    method _putencryption [line 7783]

    @@ -19839,7 +19906,7 @@ $font)
    -

    method _putextgstates [line 11291]

    +

    method _putextgstates [line 11305]

    @@ -19864,7 +19931,7 @@ $font)
    -

    method _putfonts [line 6272]

    +

    method _putfonts [line 6286]

    @@ -19889,7 +19956,7 @@ $font)
    -

    method _putfontwidths [line 6407]

    +

    method _putfontwidths [line 6421]

    @@ -19937,7 +20004,7 @@ $cidoffset = 0])
    -

    method _putheader [line 7019]

    +

    method _putheader [line 7033]

    @@ -19962,7 +20029,7 @@ $cidoffset = 0])
    -

    method _putimages [line 6660]

    +

    method _putimages [line 6674]

    @@ -19987,7 +20054,7 @@ $cidoffset = 0])
    -

    method _putinfo [line 6818]

    +

    method _putinfo [line 6832]

    @@ -20012,7 +20079,7 @@ $cidoffset = 0])
    -

    method _putjavascript [line 9901]

    +

    method _putjavascript [line 9915]

    @@ -20037,7 +20104,7 @@ $cidoffset = 0])
    -

    method _putocg [line 11212]

    +

    method _putocg [line 11226]

    @@ -20062,7 +20129,7 @@ $cidoffset = 0])
    -

    method _putpages [line 5465]

    +

    method _putpages [line 5479]

    @@ -20087,7 +20154,7 @@ $cidoffset = 0])
    -

    method _putresourcedict [line 6743]

    +

    method _putresourcedict [line 6757]

    @@ -20112,7 +20179,7 @@ $cidoffset = 0])
    -

    method _putresources [line 6784]

    +

    method _putresources [line 6798]

    @@ -20137,7 +20204,7 @@ $cidoffset = 0])
    -

    method _putshaders [line 11579]

    +

    method _putshaders [line 11593]

    @@ -20168,7 +20235,7 @@ $cidoffset = 0])
    -

    method _putsignature [line 10933]

    +

    method _putsignature [line 10947]

    @@ -20193,7 +20260,7 @@ $cidoffset = 0])
    -

    method _putspotcolors [line 6715]

    +

    method _putspotcolors [line 6729]

    @@ -20221,7 +20288,7 @@ $cidoffset = 0])
    -

    method _putstream [line 7311]

    +

    method _putstream [line 7325]

    @@ -20257,7 +20324,7 @@ $s)
    -

    method _puttrailer [line 7005]

    +

    method _puttrailer [line 7019]

    @@ -20282,7 +20349,7 @@ $s)
    -

    method _puttruetypeunicode [line 6506]

    +

    method _puttruetypeunicode [line 6520]

    diff --git a/tcpdf.php b/tcpdf.php index 76249f1..ee8b70b 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -2,9 +2,9 @@ //============================================================+ // File name : tcpdf.php // Begin : 2002-08-03 -// Last Update : 2009-09-17 +// Last Update : 2009-09-23 // Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org -// Version : 4.8.005 +// Version : 4.8.006 // License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html) // ---------------------------------------------------------------------------- // Copyright (C) 2002-2009 Nicola Asuni - Tecnick.com S.r.l. @@ -128,7 +128,7 @@ * @copyright 2002-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com * @link http://www.tcpdf.org * @license http://www.gnu.org/copyleft/lesser.html LGPL - * @version 4.8.005 + * @version 4.8.006 */ /** @@ -152,14 +152,14 @@ if (!class_exists('TCPDF', false)) { /** * define default PDF document producer */ - define('PDF_PRODUCER', 'TCPDF 4.8.005 (http://www.tcpdf.org)'); + define('PDF_PRODUCER', 'TCPDF 4.8.006 (http://www.tcpdf.org)'); /** * 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.
    * @name TCPDF * @package com.tecnick.tcpdf - * @version 4.8.005 + * @version 4.8.006 * @author Nicola Asuni - info@tecnick.com * @link http://www.tcpdf.org * @license http://www.gnu.org/copyleft/lesser.html LGPL @@ -1465,6 +1465,20 @@ if (!class_exists('TCPDF', false)) { */ protected $radio_groups = array(); + /** + * Text indentation value (used for text-indent CSS attribute) + * @access protected + * @since 4.8.006 (2009-09-23) + */ + protected $textindent = 0; + + /** + * Store page number when startTransaction() is called. + * @access protected + * @since 4.8.006 (2009-09-23) + */ + protected $start_transaction_page = 0; + //------------------------------------------------------------ // METHODS //------------------------------------------------------------ @@ -12600,6 +12614,7 @@ if (!class_exists('TCPDF', false)) { $dom[$key]['fgcolor'] = $this->fgcolor; $dom[$key]['align'] = ''; $dom[$key]['listtype'] = ''; + $dom[$key]['text-indent'] = 0; $thead = false; // true when we are inside the THEAD tag ++$key; $level = array(); @@ -12652,7 +12667,7 @@ if (!class_exists('TCPDF', false)) { $key = $i; } // store header rows on a new table - if (($dom[$key]['value'] == 'tr') AND ($dom[($dom[$key]['parent'])]['thead'] == true)) { + if (($dom[$key]['value'] == 'tr') AND ($dom[($dom[$key]['parent'])]['thead'] === true)) { if ($this->empty_string($dom[($dom[($dom[$key]['parent'])]['parent'])]['thead'])) { $dom[($dom[($dom[$key]['parent'])]['parent'])]['thead'] = $a[$dom[($dom[($dom[$key]['parent'])]['parent'])]['elkey']]; } @@ -12685,6 +12700,7 @@ if (!class_exists('TCPDF', false)) { $dom[$key]['fgcolor'] = $dom[$parentkey]['fgcolor']; $dom[$key]['align'] = $dom[$parentkey]['align']; $dom[$key]['listtype'] = $dom[$parentkey]['listtype']; + $dom[$key]['text-indent'] = $dom[$parentkey]['text-indent']; } // get attributes preg_match_all('/([^=\s]*)=["]?([^"]*)["]?/', $element, $attr_array, PREG_PATTERN_ORDER); @@ -12721,6 +12737,13 @@ if (!class_exists('TCPDF', false)) { $dom[$key]['listtype'] = $dom[$parentkey]['listtype']; } } + // text-indent + if (isset($dom[$key]['style']['text-indent'])) { + $dom[$key]['text-indent'] = $this->getHTMLUnitToUnits($dom[$key]['style']['text-indent']); + if ($dom[$key]['text-indent'] == 'inherit') { + $dom[$key]['text-indent'] = $dom[$parentkey]['text-indent']; + } + } // font size if (isset($dom[$key]['style']['font-size'])) { $fsize = trim($dom[$key]['style']['font-size']); @@ -12955,12 +12978,15 @@ if (!class_exists('TCPDF', false)) { $curfontstyle = $this->FontStyle; $curfontsize = $this->FontSizePt; $this->newline = true; - $minstartliney = $this->y; - $yshift = 0; $startlinepage = $this->page; + $minstartliney = $this->y; + $startlinex = $this->x; + $startliney = $this->y; + $yshift = 0; $newline = true; $loop = 0; $curpos = 0; + $this_method_vars = array(); $blocktags = array('blockquote','br','dd','div','dt','h1','h2','h3','h4','h5','h6','hr','li','ol','p','ul','tcpdf'); $this->premode = false; if (isset($this->PageAnnots[$this->page])) { @@ -12994,7 +13020,7 @@ if (!class_exists('TCPDF', false)) { } else { $this->listindent = $this->GetStringWidth('0000'); } - // save previous list state + // save previous states $prev_listnum = $this->listnum; $prev_listordered = $this->listordered; $prev_listcount = $this->listcount; @@ -13011,6 +13037,47 @@ if (!class_exists('TCPDF', false)) { $maxel = count($dom); $key = 0; while ($key < $maxel) { + if ($dom[$key]['tag'] AND $dom[$key]['opening'] AND isset($dom[$key]['attribute']['nobr']) AND ($dom[$key]['attribute']['nobr'] == 'true')) { + if (isset($dom[($dom[$key]['parent'])]['attribute']['nobr']) AND ($dom[($dom[$key]['parent'])]['attribute']['nobr'] == 'true')) { + $dom[$key]['attribute']['nobr'] = false; + } else { + // store current object + $this->startTransaction(); + // save this method vars + $this_method_vars['html'] = $html; + $this_method_vars['ln'] = $ln; + $this_method_vars['fill'] = $fill; + $this_method_vars['reseth'] = $reseth; + $this_method_vars['cell'] = $cell; + $this_method_vars['align'] = $align; + $this_method_vars['gvars'] = $gvars; + $this_method_vars['prevPage'] = $prevPage; + $this_method_vars['prevlMargin'] = $prevlMargin; + $this_method_vars['prevrMargin'] = $prevrMargin; + $this_method_vars['curfontname'] = $curfontname; + $this_method_vars['curfontstyle'] = $curfontstyle; + $this_method_vars['curfontsize'] = $curfontsize; + $this_method_vars['minstartliney'] = $minstartliney; + $this_method_vars['yshift'] = $yshift; + $this_method_vars['startlinepage'] = $startlinepage; + $this_method_vars['startlinepos'] = $startlinepos; + $this_method_vars['startlinex'] = $startlinex; + $this_method_vars['startliney'] = $startliney; + $this_method_vars['newline'] = $newline; + $this_method_vars['loop'] = $loop; + $this_method_vars['curpos'] = $curpos; + $this_method_vars['pask'] = $pask; + $this_method_vars['lalign'] = $lalign; + $this_method_vars['plalign'] = $plalign; + $this_method_vars['w'] = $w; + $this_method_vars['prev_listnum'] = $prev_listnum; + $this_method_vars['prev_listordered'] = $prev_listordered; + $this_method_vars['prev_listcount'] = $prev_listcount; + $this_method_vars['prev_lispacer'] = $prev_lispacer; + $this_method_vars['key'] = $key; + $this_method_vars['dom'] = $dom; + } + } if ($dom[$key]['tag'] OR ($key == 0)) { if ((($dom[$key]['value'] == 'table') OR ($dom[$key]['value'] == 'tr')) AND (isset($dom[$key]['align']))) { $dom[$key]['align'] = ($this->rtl) ? 'R' : 'L'; @@ -13432,6 +13499,10 @@ if (!class_exists('TCPDF', false)) { } if ($dom[$key]['tag']) { if ($dom[$key]['opening']) { + // get text indentation (if any) + if (isset($dom[$key]['text-indent']) AND in_array($dom[$key]['value'], array('blockquote','dd','div','dt','h1','h2','h3','h4','h5','h6','li','ol','p','ul','table','tr','td'))) { + $this->textindent = $dom[$key]['text-indent']; + } if ($dom[$key]['value'] == 'table') { if ($this->rtl) { $wtmp = $this->x - $this->lMargin; @@ -13687,8 +13758,14 @@ if (!class_exists('TCPDF', false)) { } else { $ctmpmargin = $this->cMargin; $this->cMargin = 0; + if ($this->rtl) { + $this->x -= $this->textindent; + } else { + $this->x += $this->textindent; + } // ****** write only until the end of the line and get the rest ****** $strrest = $this->Write($this->lasth, $dom[$key]['value'], '', $wfill, '', false, 0, true, $firstblock); + $this->textindent = 0; $this->cMargin = $ctmpmargin; } if (strlen($strrest) > 0) { @@ -13716,6 +13793,16 @@ if (!class_exists('TCPDF', false)) { } } ++$key; + if (isset($dom[$key]['tag']) AND $dom[$key]['tag'] AND (!isset($dom[$key]['opening']) OR !$dom[$key]['opening']) AND isset($dom[($dom[$key]['parent'])]['attribute']['nobr']) AND ($dom[($dom[$key]['parent'])]['attribute']['nobr'] == 'true') AND ($this->start_transaction_page < $this->numpages)) { + // restore previous object + $this->rollbackTransaction(true); + // restore previous values + foreach ($this_method_vars as $vkey => $vval) { + $$vkey = $vval; + } + // add a page + $this->AddPage(); + } } // end for each $key // align the last line if (isset($startlinex)) { @@ -13905,7 +13992,7 @@ if (!class_exists('TCPDF', false)) { case 'img': { if (isset($tag['attribute']['src'])) { // replace relative path with real server path - if ($tag['attribute']['src'][0] == '/') { + if (($tag['attribute']['src'][0] == '/') AND ($_SERVER['DOCUMENT_ROOT'] != '/')) { $tag['attribute']['src'] = $_SERVER['DOCUMENT_ROOT'].$tag['attribute']['src']; } $tag['attribute']['src'] = urldecode($tag['attribute']['src']); @@ -15855,6 +15942,8 @@ if (!class_exists('TCPDF', false)) { // remove previous copy $this->commitTransaction(); } + // record current page number + $this->start_transaction_page = $this->page; // clone current object $this->objcopy = $this->objclone($this); } @@ -15873,11 +15962,12 @@ if (!class_exists('TCPDF', false)) { /** * This method allows to undo the latest transaction by returning the latest saved TCPDF object with startTransaction(). + * @param boolean $self if true restores current class object to previous state without the need of reassignment via the returned value. * @return TCPDF object. * @access public * @since 4.5.029 (2009-03-19) */ - public function rollbackTransaction() { + public function rollbackTransaction($self=false) { if (isset($this->objcopy)) { if (isset($this->objcopy->diskcache) AND $this->objcopy->diskcache) { // truncate files to previous values @@ -15888,6 +15978,12 @@ if (!class_exists('TCPDF', false)) { } } $this->_destroy(true, true); + if ($self) { + $objvars = get_object_vars($this->objcopy); + foreach ($objvars as $key => $value) { + $this->$key = $value; + } + } return $this->objcopy; } return $this;
    diff --git a/doc/li_com-tecnick-tcpdf.html b/doc/li_com-tecnick-tcpdf.html index 25632f1..6e78968 100644 --- a/doc/li_com-tecnick-tcpdf.html +++ b/doc/li_com-tecnick-tcpdf.html @@ -58,7 +58,7 @@ This documentation was generated by phpDocumentor v1.4.1

    - Documentation generated on Thu, 17 Sep 2009 22:37:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
    @@ -20327,7 +20394,7 @@ $font)
    -

    method _putviewerpreferences [line 6935]

    +

    method _putviewerpreferences [line 6949]

    diff --git a/doc/index.html b/doc/index.html index 25632f1..6e78968 100644 --- a/doc/index.html +++ b/doc/index.html @@ -58,7 +58,7 @@ This documentation was generated by phpDocumentor v1.4.1

    - Documentation generated on Thu, 17 Sep 2009 22:37:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
    diff --git a/doc/errors.html b/doc/errors.html index 0a687d3..5b17b95 100644 --- a/doc/errors.html +++ b/doc/errors.html @@ -35,7 +35,7 @@ Post-parsing

    - Documentation generated on Thu, 17 Sep 2009 22:37:36 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:20 +0200 by phpDocumentor 1.4.1
    @@ -20358,7 +20425,7 @@ $font)
    -

    method _putxobjectdict [line 6732]

    +

    method _putxobjectdict [line 6746]

    diff --git a/doc/elementindex_com-tecnick-tcpdf.html b/doc/elementindex_com-tecnick-tcpdf.html index 8338e5e..40a22dd 100644 --- a/doc/elementindex_com-tecnick-tcpdf.html +++ b/doc/elementindex_com-tecnick-tcpdf.html @@ -1098,6 +1098,8 @@
    in file tcpdf.php, variable TCPDF::$sig_obj_id
        Signature object ID
    $spot_colors
    in file tcpdf.php, variable TCPDF::$spot_colors
        Array of Spot colors
    +
    $start_transaction_page
    +
    in file tcpdf.php, variable TCPDF::$start_transaction_page
        Store page number when startTransaction() is called.
    $state
    in file tcpdf.php, variable TCPDF::$state
    $subject
    @@ -1117,9 +1119,9 @@
    SetAutoPageBreak
    in file tcpdf.php, method TCPDF::SetAutoPageBreak()
        Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.
    setBarcode
    -
    in file barcodes.php, method TCPDFBarcode::setBarcode()
        Set the barcode.
    -
    setBarcode
    in file tcpdf.php, method TCPDF::setBarcode()
        Set document barcode.
    +
    setBarcode
    +
    in file barcodes.php, method TCPDFBarcode::setBarcode()
        Set the barcode.
    SetBooklet
    in file tcpdf.php, method TCPDF::SetBooklet()
        Set the booklet mode for double-sided pages.
    setBuffer
    @@ -1306,6 +1308,8 @@
    in file tcpdf.php, variable TCPDF::$tempfontsize
    $TextColor
    in file tcpdf.php, variable TCPDF::$TextColor
    +
    $textindent
    +
    in file tcpdf.php, variable TCPDF::$textindent
        Text indentation value (used for text-indent CSS attribute)
    $thead
    in file tcpdf.php, variable TCPDF::$thead
        Table header content to be repeated on each new page
    $theadMargins
    @@ -1459,7 +1463,7 @@ top

    - Documentation generated on Thu, 17 Sep 2009 22:37:28 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
    diff --git a/doc/elementindex.html b/doc/elementindex.html index c5298df..d9befb3 100644 --- a/doc/elementindex.html +++ b/doc/elementindex.html @@ -943,6 +943,8 @@
    in file tcpdf.php, variable TCPDF::$sig_obj_id
        Signature object ID
    $spot_colors
    in file tcpdf.php, variable TCPDF::$spot_colors
        Array of Spot colors
    +
    $start_transaction_page
    +
    in file tcpdf.php, variable TCPDF::$start_transaction_page
        Store page number when startTransaction() is called.
    $state
    in file tcpdf.php, variable TCPDF::$state
    $subject
    @@ -962,9 +964,9 @@
    SetAutoPageBreak
    in file tcpdf.php, method TCPDF::SetAutoPageBreak()
        Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.
    setBarcode
    -
    in file barcodes.php, method TCPDFBarcode::setBarcode()
        Set the barcode.
    -
    setBarcode
    in file tcpdf.php, method TCPDF::setBarcode()
        Set document barcode.
    +
    setBarcode
    +
    in file barcodes.php, method TCPDFBarcode::setBarcode()
        Set the barcode.
    SetBooklet
    in file tcpdf.php, method TCPDF::SetBooklet()
        Set the booklet mode for double-sided pages.
    setBuffer
    @@ -1151,6 +1153,8 @@
    in file tcpdf.php, variable TCPDF::$tempfontsize
    $TextColor
    in file tcpdf.php, variable TCPDF::$TextColor
    +
    $textindent
    +
    in file tcpdf.php, variable TCPDF::$textindent
        Text indentation value (used for text-indent CSS attribute)
    $thead
    in file tcpdf.php, variable TCPDF::$thead
        Table header content to be repeated on each new page
    $theadMargins
    @@ -1436,7 +1440,7 @@ top

    - Documentation generated on Thu, 17 Sep 2009 22:37:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
    @@ -20383,7 +20450,7 @@ $font)
    -

    method _RC4 [line 7788]

    +

    method _RC4 [line 7802]

    diff --git a/doc/com-tecnick-tcpdf/_unicode_data.php.html b/doc/com-tecnick-tcpdf/_unicode_data.php.html index 4238432..baf81e6 100644 --- a/doc/com-tecnick-tcpdf/_unicode_data.php.html +++ b/doc/com-tecnick-tcpdf/_unicode_data.php.html @@ -237,7 +237,7 @@ Unicode Include file for TCPDF.




    - Documentation generated on Thu, 17 Sep 2009 22:37:36 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:20 +0200 by phpDocumentor 1.4.1
    @@ -20434,7 +20501,7 @@ $text)
    -

    method _textstring [line 7280]

    +

    method _textstring [line 7294]

    diff --git a/doc/com-tecnick-tcpdf/_tcpdf.php.html b/doc/com-tecnick-tcpdf/_tcpdf.php.html index 0b9bd6a..7105f18 100644 --- a/doc/com-tecnick-tcpdf/_tcpdf.php.html +++ b/doc/com-tecnick-tcpdf/_tcpdf.php.html @@ -73,7 +73,7 @@ This is a PHP class for generating PDF documents without requiring external exte - + @@ -104,7 +104,7 @@ unicode data

    diff --git a/doc/com-tecnick-tcpdf/_htmlcolors.php.html b/doc/com-tecnick-tcpdf/_htmlcolors.php.html index e37e039..30b6c04 100644 --- a/doc/com-tecnick-tcpdf/_htmlcolors.php.html +++ b/doc/com-tecnick-tcpdf/_htmlcolors.php.html @@ -88,7 +88,7 @@ Array of WEB safe colors.




    - Documentation generated on Thu, 17 Sep 2009 22:37:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
    @@ -20473,7 +20540,7 @@ $s)
    -

    method _toJPEG [line 4874]

    +

    method _toJPEG [line 4888]

    diff --git a/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html b/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html index c133332..1efad9a 100644 --- a/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html +++ b/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html @@ -507,7 +507,7 @@ Configuration file for TCPDF.




    - Documentation generated on Thu, 17 Sep 2009 22:37:36 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:20 +0200 by phpDocumentor 1.4.1
    diff --git a/doc/com-tecnick-tcpdf/_barcodes.php.html b/doc/com-tecnick-tcpdf/_barcodes.php.html index adf18c7..d858f91 100644 --- a/doc/com-tecnick-tcpdf/_barcodes.php.html +++ b/doc/com-tecnick-tcpdf/_barcodes.php.html @@ -96,7 +96,7 @@ PHP class to creates array representations for common 1D barcodes to be used wit

    - Documentation generated on Thu, 17 Sep 2009 22:37:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
    @@ -20515,7 +20582,7 @@ $file)
    -

    method _Uvalue [line 7854]

    +

    method _Uvalue [line 7868]

    diff --git a/doc/com-tecnick-tcpdf/TCPDFBarcode.html b/doc/com-tecnick-tcpdf/TCPDFBarcode.html index eaf10b0..1a1686e 100644 --- a/doc/com-tecnick-tcpdf/TCPDFBarcode.html +++ b/doc/com-tecnick-tcpdf/TCPDFBarcode.html @@ -1368,7 +1368,7 @@ $type)

    - Documentation generated on Thu, 17 Sep 2009 22:37:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:14 +0200 by phpDocumentor 1.4.1
    @@ -20552,7 +20619,7 @@ $file)

    - Documentation generated on Thu, 17 Sep 2009 22:37:30 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:15 +0200 by phpDocumentor 1.4.1
    author:  Nicola Asuni
    version:  4.8.005version:  4.8.006
    copyright:  2002-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
    - PDF_PRODUCER = 'TCPDF 4.8.005 (http://www.tcpdf.org)' + PDF_PRODUCER = 'TCPDF 4.8.006 (http://www.tcpdf.org)'
    @@ -115,7 +115,7 @@ unicode data


    - Documentation generated on Thu, 17 Sep 2009 22:37:30 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 23 Sep 2009 19:10:15 +0200 by phpDocumentor 1.4.1