diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index b1faef1..75da726 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,10 @@ +4.8.010 (2009-10-21) + - Bookmark for TOC page was added. + - Signature of addTOC() method is changed. + - Bookmarks are now automatically sorted by page and Y position. + - Example n. 45 was updated. + - Example n. 55 was added to display all charactes available on core fonts. + 4.8.009 (2009-09-30) - Compatibility with PHP 5.3 was improved. - All examples were updated. diff --git a/README.TXT b/README.TXT index 9cda276..c14eddf 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.009 -Release date: 2009-09-30 +Version: 4.8.010 +Release date: 2009-10-21 Author: Nicola Asuni Copyright (c) 2001-2009: diff --git a/doc/classtrees_com-tecnick-tcpdf.html b/doc/classtrees_com-tecnick-tcpdf.html index 0b464cb..42e6ab5 100644 --- a/doc/classtrees_com-tecnick-tcpdf.html +++ b/doc/classtrees_com-tecnick-tcpdf.html @@ -45,7 +45,7 @@

- Documentation generated on Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:27 +0200 by phpDocumentor 1.4.3
diff --git a/doc/com-tecnick-tcpdf/TCPDF.html b/doc/com-tecnick-tcpdf/TCPDF.html index 95e314b..86aa918 100644 --- a/doc/com-tecnick-tcpdf/TCPDF.html +++ b/doc/com-tecnick-tcpdf/TCPDF.html @@ -74,7 +74,7 @@ Source Location: /tcpdf.php

Version:

@@ -628,7 +628,7 @@ This is a PHP class for generating PDF documents without requiring external exte author:  Nicola Asuni - info@tecnick.com - version:  4.8.009 + version:  4.8.010 link:  http://www.tcpdf.org @@ -6089,7 +6089,7 @@ $diskcache = false])
-

method addExtGState [line 11315]

+

method addExtGState [line 11323]

@@ -6251,7 +6251,7 @@ $style = -1])
-

method addHTMLVertSpace [line 14813]

+

method addHTMLVertSpace [line 14821]

@@ -6317,7 +6317,7 @@ $closing = false])
-

method addJavascriptObject [line 9935]

+

method addJavascriptObject [line 9943]

+ + + + +
@@ -6504,7 +6504,7 @@ $k)
-

method addTOC [line 15835]

+

method addTOC [line 15844]

@@ -6512,7 +6512,8 @@ $k) [int $page = ''], [string $numbersfont = ''], [string -$filler = '.']) +$filler = '.'], [string +$toc_name = 'TOC'])

@@ -6551,6 +6552,11 @@ $filler = '.'])
string   $filler   string used to fill the space between text and page number.
string  $toc_name  name to use for TOC bookmark.

@@ -6558,7 +6564,7 @@ $filler = '.'])
-

method AliasNbPages [line 11123]

+

method AliasNbPages [line 11131]

@@ -6600,7 +6606,7 @@ $alias = '{nb}'])
-

method AliasNumPage [line 11150]

+

method AliasNumPage [line 11158]

@@ -6924,7 +6930,7 @@ $page = ''])
-

method Button [line 10829]

+

method Button [line 10837]

@@ -7110,7 +7116,7 @@ $ignore_min_height = false])
-

method CheckBox [line 10759]

+

method CheckBox [line 10767]

@@ -7347,7 +7353,7 @@ $afinish:)
-

method Clip [line 11578]

+

method Clip [line 11586]

@@ -7438,7 +7444,7 @@ $h)
-

method closeHTMLTagHandler [line 14476]

+

method closeHTMLTagHandler [line 14484]

@@ -7492,7 +7498,7 @@ $dom)
-

method ComboBox [line 10698]

+

method ComboBox [line 10706]

@@ -7576,7 +7582,7 @@ $js = false])
-

method commitTransaction [line 15994]

+

method commitTransaction [line 16003]

@@ -7643,7 +7649,7 @@ $color = '#FFFFFF'])
-

method CoonsPatchMesh [line 11498]

+

method CoonsPatchMesh [line 11506]

@@ -7847,7 +7853,7 @@ $fill_color = array()])
-

method deletePage [line 15695]

+

method deletePage [line 15703]

@@ -8006,7 +8012,7 @@ $afinish:)
-

method empty_string [line 16048]

+

method empty_string [line 16057]

@@ -8143,7 +8149,7 @@ $msg)
-

method formatPageNumber [line 11227]

+

method formatPageNumber [line 11235]

@@ -8182,7 +8188,7 @@ $num)
-

method formatTOCPageNumber [line 11239]

+

method formatTOCPageNumber [line 11247]

@@ -8255,7 +8261,7 @@ $num)
-

method getAliasNbPages [line 11135]

+

method getAliasNbPages [line 11143]

@@ -8286,7 +8292,7 @@ $num)
-

method getAliasNumPage [line 11163]

+

method getAliasNumPage [line 11171]

@@ -8317,7 +8323,7 @@ $num)
-

method getAnnotOptFromJSProp [line 10066]

+

method getAnnotOptFromJSProp [line 10074]

@@ -8416,7 +8422,7 @@ $fontsize = 0])
-

method getBarcode [line 12043]

+

method getBarcode [line 12051]

@@ -8540,7 +8546,7 @@ $pagenum = ''])
-

method getBuffer [line 15381]

+

method getBuffer [line 15389]

@@ -8667,7 +8673,7 @@ $ignore_min_height = false])
-

method getCellHeightRatio [line 11401]

+

method getCellHeightRatio [line 11409]

@@ -8737,7 +8743,7 @@ $char)
-

method getFontBuffer [line 15541]

+

method getFontBuffer [line 15549]

@@ -8779,7 +8785,7 @@ $font)
-

method getFontFamily [line 12517]

+

method getFontFamily [line 12525]

@@ -8810,7 +8816,7 @@ $font)
-

method getFontSize [line 12497]

+

method getFontSize [line 12505]

@@ -8841,7 +8847,7 @@ $font)
-

method getFontSizePt [line 12507]

+

method getFontSizePt [line 12515]

@@ -8900,7 +8906,7 @@ $font)
-

method getFontStyle [line 12527]

+

method getFontStyle [line 12535]

@@ -8987,7 +8993,7 @@ $font)
-

method getFormDefaultProp [line 10441]

+

method getFormDefaultProp [line 10449]

@@ -9051,7 +9057,7 @@ $v)
-

method getGraphicVars [line 15249]

+

method getGraphicVars [line 15257]

@@ -9082,7 +9088,7 @@ $v)
-

method getGroupPageNo [line 11176]

+

method getGroupPageNo [line 11184]

@@ -9107,7 +9113,7 @@ $v)
-

method getGroupPageNoFormatted [line 11186]

+

method getGroupPageNoFormatted [line 11194]

@@ -9222,7 +9228,7 @@ $v)
-

method getHtmlDomArray [line 12563]

+

method getHtmlDomArray [line 12571]

@@ -9261,7 +9267,7 @@ $html)
-

method getHTMLUnitToUnits [line 14968]

+

method getHTMLUnitToUnits [line 14976]

@@ -9327,7 +9333,7 @@ $point)
-

method getImageBuffer [line 15483]

+

method getImageBuffer [line 15491]

@@ -9518,7 +9524,7 @@ $image)
-

method getMargins [line 12460]

+

method getMargins [line 12468]

@@ -9673,7 +9679,7 @@ $w = 0])
-

method getObjFilename [line 15313]

+

method getObjFilename [line 15321]

@@ -9718,7 +9724,7 @@ $prefix)
-

method getOriginalMargins [line 12483]

+

method getOriginalMargins [line 12491]

@@ -9783,7 +9789,7 @@ $prefix)
-

method getPageBuffer [line 15424]

+

method getPageBuffer [line 15432]

@@ -9870,7 +9876,7 @@ $pagenum = ''])
-

method getPageGroupAlias [line 11198]

+

method getPageGroupAlias [line 11206]

@@ -9943,7 +9949,7 @@ $pagenum = ''])
-

method getPageNumGroupAlias [line 11213]

+

method getPageNumGroupAlias [line 11221]

@@ -10287,7 +10293,7 @@ $fontsize = 0])
-

method Gradient [line 11601]

+

method Gradient [line 11609]

@@ -10504,7 +10510,7 @@ $hidden = false])
-

method ImageEps [line 11773]

+

method ImageEps [line 11781]

@@ -10705,7 +10711,7 @@ $palign = ''])
-

method IncludeJS [line 9922]

+

method IncludeJS [line 9930]

@@ -10741,7 +10747,7 @@ $script)
-

method intToRoman [line 15042]

+

method intToRoman [line 15050]

@@ -10891,7 +10897,7 @@ $style = array()])
-

method LinearGradient [line 11458]

+

method LinearGradient [line 11466]

@@ -11041,7 +11047,7 @@ $spaces = 0])
-

method ListBox [line 10638]

+

method ListBox [line 10646]

@@ -11359,7 +11365,7 @@ $y = ''])
-

method movePage [line 15558]

+

method movePage [line 15566]

@@ -11533,7 +11539,7 @@ $maxh = 0])
-

method objclone [line 16037]

+

method objclone [line 16046]

@@ -11606,7 +11612,7 @@ $object)
-

method openHTMLTagHandler [line 13939]

+

method openHTMLTagHandler [line 13947]

@@ -11742,7 +11748,7 @@ $dest = 'I'])
-

method PageNoFormatted [line 11249]

+

method PageNoFormatted [line 11257]

@@ -11773,7 +11779,7 @@ $dest = 'I'])
-

method PieSector [line 11695]

+

method PieSector [line 11703]

@@ -12115,7 +12121,7 @@ $closed)
-

method putHtmlListBullet [line 15107]

+

method putHtmlListBullet [line 15115]

@@ -12166,7 +12172,7 @@ $size = 10])
-

method RadialGradient [line 11476]

+

method RadialGradient [line 11484]

@@ -12244,7 +12250,7 @@ $coords = array(0.5,0.5,0.5,0.5,1)])
-

method RadioButton [line 10550]

+

method RadioButton [line 10558]

@@ -12328,7 +12334,7 @@ $js = false])
-

method readDiskCache [line 15353]

+

method readDiskCache [line 15361]

@@ -12658,7 +12664,7 @@ $length)
-

method rollbackTransaction [line 16008]

+

method rollbackTransaction [line 16017]

@@ -13063,7 +13069,7 @@ $y = ''])
-

method setAlpha [line 11358]

+

method setAlpha [line 11366]

@@ -13195,7 +13201,7 @@ $margin = 0])
-

method setBarcode [line 12033]

+

method setBarcode [line 12041]

@@ -13231,7 +13237,7 @@ $bc = ''])
-

method SetBooklet [line 14882]

+

method SetBooklet [line 14890]

@@ -13282,7 +13288,7 @@ $outer = -1])
-

method setBuffer [line 15363]

+

method setBuffer [line 15371]

@@ -13321,7 +13327,7 @@ $data)
-

method setCellHeightRatio [line 11392]

+

method setCellHeightRatio [line 11400]

@@ -13558,7 +13564,7 @@ $font)
-

method setDefaultTableColumns [line 11382]

+

method setDefaultTableColumns [line 11390]

@@ -13795,7 +13801,7 @@ $tint = 100])
-

method setExtGState [line 11327]

+

method setExtGState [line 11335]

@@ -14041,7 +14047,7 @@ $fontfile = ''])
-

method setFontBuffer [line 15499]

+

method setFontBuffer [line 15507]

@@ -14128,7 +14134,7 @@ $size)
-

method setFontSubBuffer [line 15521]

+

method setFontSubBuffer [line 15529]

@@ -14282,7 +14288,7 @@ $fm = 10])
-

method setFormDefaultProp [line 10430]

+

method setFormDefaultProp [line 10438]

@@ -14318,7 +14324,7 @@ $prop = array()])
-

method setGraphicVars [line 15280]

+

method setGraphicVars [line 15288]

@@ -14514,7 +14520,7 @@ $hm = 10])
-

method setHtmlLinksStyle [line 14953]

+

method setHtmlLinksStyle [line 14961]

@@ -14559,7 +14565,7 @@ $fontstyle = 'U'])
-

method setHtmlVSpace [line 14922]

+

method setHtmlVSpace [line 14930]

@@ -14598,7 +14604,7 @@ $tagvs)
-

method setImageBuffer [line 15440]

+

method setImageBuffer [line 15448]

@@ -14685,7 +14691,7 @@ $scale)
-

method setImageSubBuffer [line 15463]

+

method setImageSubBuffer [line 15471]

@@ -14736,7 +14742,7 @@ $data)
-

method setJPEGQuality [line 11369]

+

method setJPEGQuality [line 11377]

@@ -15079,7 +15085,7 @@ $page = -1])
-

method setListIndentWidth [line 14932]

+

method setListIndentWidth [line 14940]

@@ -15118,7 +15124,7 @@ $width)
-

method setLIsymbol [line 14842]

+

method setLIsymbol [line 14850]

@@ -15211,7 +15217,7 @@ $right = -1])
-

method setOpenCell [line 14942]

+

method setOpenCell [line 14950]

@@ -15298,7 +15304,7 @@ $resetmargins = false])
-

method setPageBuffer [line 15397]

+

method setPageBuffer [line 15405]

@@ -15512,7 +15518,7 @@ $unit)
-

method setPDFVersion [line 11411]

+

method setPDFVersion [line 11419]

@@ -15767,7 +15773,7 @@ $resetx = true])
-

method setSignature [line 11080]

+

method setSignature [line 11088]

@@ -16215,7 +16221,7 @@ $margin)
-

method setUserRights [line 11050]

+

method setUserRights [line 11058]

@@ -16275,7 +16281,7 @@ $signature = '/Modify'])
-

method setViewerPreferences [line 11441]

+

method setViewerPreferences [line 11449]

@@ -16311,7 +16317,7 @@ $preferences)
-

method setVisibility [line 11279]

+

method setVisibility [line 11287]

@@ -16864,7 +16870,7 @@ $format = ''])
-

method startPageGroup [line 11108]

+

method startPageGroup [line 11116]

@@ -16900,7 +16906,7 @@ $page = ''])
-

method startTransaction [line 15978]

+

method startTransaction [line 15987]

@@ -16990,7 +16996,7 @@ $page = ''])
-

method swapMargins [line 14898]

+

method swapMargins [line 14906]

@@ -17098,7 +17104,7 @@ $clip = false])
-

method TextField [line 10459]

+

method TextField [line 10467]

@@ -17944,7 +17950,7 @@ $maxh = 0])
-

method write1DBarcode [line 12062]

+

method write1DBarcode [line 12070]

@@ -18034,7 +18040,7 @@ $align = ''])
-

method write2DBarcode [line 12313]

+

method write2DBarcode [line 12321]

@@ -18118,7 +18124,7 @@ $align = ''])
-

method writeBarcode [line 12263]

+

method writeBarcode [line 12271]

@@ -18208,7 +18214,7 @@ $code)
-

method writeDiskCache [line 15325]

+

method writeDiskCache [line 15333]

@@ -18265,7 +18271,7 @@ $file)
-

method writeHTML [line 13003]

+

method writeHTML [line 13011]

@@ -18331,7 +18337,7 @@ $align = ''])
-

method writeHTMLCell [line 12551]

+

method writeHTMLCell [line 12559]

@@ -18433,7 +18439,7 @@ $autopadding = true])
-

method _addfield [line 10031]

+

method _addfield [line 10039]

@@ -19137,7 +19143,7 @@ $protection)
-

method _JScolor [line 10007]

+

method _JScolor [line 10015]

diff --git a/doc/media/style.css b/doc/media/style.css index 919f9d9..bc65d89 100644 --- a/doc/media/style.css +++ b/doc/media/style.css @@ -1,195 +1,195 @@ -.php { - padding: 1em; -} -.php-src { font-family: 'Courier New', Courier, monospace; font-weight: normal; } - -body -{ - color: #000000; - background-color: #ffffff; - background-image: url("background.png"); - background-repeat: repeat-y; - font-family: tahoma, verdana, arial, sans-serif; - font-size: 10pt; - margin: 0; - padding: 0; -} - -a -{ - color: #000099; - background-color: transparent; - text-decoration: none; -} - -a:hover -{ - text-decoration: underline; -} - -a.menu -{ - color: #ffffff; - background-color: transparent; -} - -td -{ - font-size: 10pt; -} - -td.header_top -{ - color: #ffffff; - background-color: #9999cc; - font-size: 16pt; - font-weight: bold; - text-align: right; - padding: 10px; -} - -td.header_line -{ - color: #ffffff; - background-color: #333366; -} - -td.header_menu -{ - color: #ffffff; - background-color: #666699; - font-size: 8pt; - text-align: right; - padding: 2px; - padding-right: 5px; -} - -td.menu -{ - padding: 2px; - padding-left: 5px; -} - -td.code_border -{ - color: #000000; - background-color: #c0c0c0; -} - -td.code -{ - color: #000000; - background-color: #f0f0f0; -} - -td.type -{ - font-style: italic; -} - -div.credit -{ - font-size: 8pt; - text-align: center; -} - -div.package -{ - padding-left: 5px; -} - -div.tags -{ - padding-left: 15px; -} - -div.function -{ - padding-left: 15px; -} - -div.top -{ - font-size: 8pt; -} - -div.warning -{ - color: #ff0000; - background-color: transparent; -} - -div.description -{ - padding-left: 15px; -} - -hr -{ - height: 1px; - border-style: solid; - border-color: #c0c0c0; - margin-top: 10px; - margin-bottom: 10px; -} - -span.smalllinenumber -{ - font-size: 8pt; -} - -ul { - margin-left: 0px; - padding-left: 8px; -} -/* Syntax highlighting */ - -.src-code { background-color: #f5f5f5; border: 1px solid #ccc9a4; padding: 0 0 0 1em; margin : 0px; - font-family: 'Courier New', Courier, monospace; font-weight: normal; } -.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } - -.src-comm { color: green; } -.src-id { } -.src-inc { color: #0000FF; } -.src-key { color: #0000FF; } -.src-num { color: #CC0000; } -.src-str { color: #66cccc; } -.src-sym { font-weight: bold; } -.src-var { } - -.src-php { font-weight: bold; } - -.src-doc { color: #009999 } -.src-doc-close-template { color: #0000FF } -.src-doc-coretag { color: #0099FF; font-weight: bold } -.src-doc-inlinetag { color: #0099FF } -.src-doc-internal { color: #6699cc } -.src-doc-tag { color: #0080CC } -.src-doc-template { color: #0000FF } -.src-doc-type { font-style: italic } -.src-doc-var { font-style: italic } - -.tute-tag { color: #009999 } -.tute-attribute-name { color: #0000FF } -.tute-attribute-value { color: #0099FF } -.tute-entity { font-weight: bold; } -.tute-comment { font-style: italic } -.tute-inline-tag { color: #636311; font-weight: bold } - -/* tutorial */ - -.authors { } -.author { font-style: italic; font-weight: bold } -.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } -.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } -.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } -.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } -.ref-title-box { } -.ref-title { } -.ref-purpose { font-style: italic; color: #666666 } -.ref-synopsis { } -.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #9999CC } -.cmd-synopsis { margin: 1em 0em } -.cmd-title { font-weight: bold } -.toc { margin-left: 2em; padding-left: 0em } - +.php { + padding: 1em; +} +.php-src { font-family: 'Courier New', Courier, monospace; font-weight: normal; } + +body +{ + color: #000000; + background-color: #ffffff; + background-image: url("background.png"); + background-repeat: repeat-y; + font-family: tahoma, verdana, arial, sans-serif; + font-size: 10pt; + margin: 0; + padding: 0; +} + +a +{ + color: #000099; + background-color: transparent; + text-decoration: none; +} + +a:hover +{ + text-decoration: underline; +} + +a.menu +{ + color: #ffffff; + background-color: transparent; +} + +td +{ + font-size: 10pt; +} + +td.header_top +{ + color: #ffffff; + background-color: #9999cc; + font-size: 16pt; + font-weight: bold; + text-align: right; + padding: 10px; +} + +td.header_line +{ + color: #ffffff; + background-color: #333366; +} + +td.header_menu +{ + color: #ffffff; + background-color: #666699; + font-size: 8pt; + text-align: right; + padding: 2px; + padding-right: 5px; +} + +td.menu +{ + padding: 2px; + padding-left: 5px; +} + +td.code_border +{ + color: #000000; + background-color: #c0c0c0; +} + +td.code +{ + color: #000000; + background-color: #f0f0f0; +} + +td.type +{ + font-style: italic; +} + +div.credit +{ + font-size: 8pt; + text-align: center; +} + +div.package +{ + padding-left: 5px; +} + +div.tags +{ + padding-left: 15px; +} + +div.function +{ + padding-left: 15px; +} + +div.top +{ + font-size: 8pt; +} + +div.warning +{ + color: #ff0000; + background-color: transparent; +} + +div.description +{ + padding-left: 15px; +} + +hr +{ + height: 1px; + border-style: solid; + border-color: #c0c0c0; + margin-top: 10px; + margin-bottom: 10px; +} + +span.smalllinenumber +{ + font-size: 8pt; +} + +ul { + margin-left: 0px; + padding-left: 8px; +} +/* Syntax highlighting */ + +.src-code { background-color: #f5f5f5; border: 1px solid #ccc9a4; padding: 0 0 0 1em; margin : 0px; + font-family: 'Courier New', Courier, monospace; font-weight: normal; } +.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } + +.src-comm { color: green; } +.src-id { } +.src-inc { color: #0000FF; } +.src-key { color: #0000FF; } +.src-num { color: #CC0000; } +.src-str { color: #66cccc; } +.src-sym { font-weight: bold; } +.src-var { } + +.src-php { font-weight: bold; } + +.src-doc { color: #009999 } +.src-doc-close-template { color: #0000FF } +.src-doc-coretag { color: #0099FF; font-weight: bold } +.src-doc-inlinetag { color: #0099FF } +.src-doc-internal { color: #6699cc } +.src-doc-tag { color: #0080CC } +.src-doc-template { color: #0000FF } +.src-doc-type { font-style: italic } +.src-doc-var { font-style: italic } + +.tute-tag { color: #009999 } +.tute-attribute-name { color: #0000FF } +.tute-attribute-value { color: #0099FF } +.tute-entity { font-weight: bold; } +.tute-comment { font-style: italic } +.tute-inline-tag { color: #636311; font-weight: bold } + +/* tutorial */ + +.authors { } +.author { font-style: italic; font-weight: bold } +.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } +.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } +.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } +.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } +.ref-title-box { } +.ref-title { } +.ref-purpose { font-style: italic; color: #666666 } +.ref-synopsis { } +.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #9999CC } +.cmd-synopsis { margin: 1em 0em } +.cmd-title { font-weight: bold } +.toc { margin-left: 2em; padding-left: 0em } + diff --git a/examples/example_045.php b/examples/example_045.php index fca54ae..00174db 100755 --- a/examples/example_045.php +++ b/examples/example_045.php @@ -2,7 +2,7 @@ //============================================================+ // File name : example_045.php // Begin : 2008-03-04 -// Last Update : 2009-09-30 +// Last Update : 2009-10-21 // // Description : Example 045 for TCPDF class // Bookmarks and Table of Content @@ -116,7 +116,7 @@ $pdf->Ln(); $pdf->SetFont('dejavusans', '', 12); // add table of content at page 1 -$pdf->addTOC(1, 'courier', '.'); +$pdf->addTOC(1, 'courier', '.', 'INDEX'); // --------------------------------------------------------- diff --git a/tcpdf.php b/tcpdf.php index c28464c..f1bd926 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -2,9 +2,9 @@ //============================================================+ // File name : tcpdf.php // Begin : 2002-08-03 -// Last Update : 2009-09-30 +// Last Update : 2009-10-21 // Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org -// Version : 4.8.009 +// Version : 4.8.010 // 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.009 + * @version 4.8.010 */ /** @@ -152,14 +152,14 @@ if (!class_exists('TCPDF', false)) { /** * define default PDF document producer */ - define('PDF_PRODUCER', 'TCPDF 4.8.009 (http://www.tcpdf.org)'); + define('PDF_PRODUCER', 'TCPDF 4.8.010 (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.009 + * @version 4.8.010 * @author Nicola Asuni - info@tecnick.com * @link http://www.tcpdf.org * @license http://www.gnu.org/copyleft/lesser.html LGPL @@ -9859,6 +9859,15 @@ if (!class_exists('TCPDF', false)) { if ($nb == 0) { return; } + // get sorting columns + $outline_p = array(); + $outline_y = array(); + foreach ($this->outlines as $key => $row) { + $outline_p[$key] = $row['p']; + $outline_y[$key] = $row['p']; + } + // sort outlines by page and y position + array_multisort($outline_p, SORT_NUMERIC, SORT_ASC, $outline_y, SORT_NUMERIC, SORT_ASC, $this->outlines); $lru = array(); $level = 0; foreach ($this->outlines as $i => $o) { @@ -9909,7 +9918,6 @@ if (!class_exists('TCPDF', false)) { $this->_out('endobj'); } - // --- JAVASCRIPT ------------------------------------------------------ /* @@ -15828,11 +15836,12 @@ if (!class_exists('TCPDF', false)) { * @param int $page page number where this TOC should be inserted (leave empty for current page). * @param string $numbersfont set the font for page numbers (please use monospaced font for better alignment). * @param string $filler string used to fill the space between text and page number. + * @param string $toc_name name to use for TOC bookmark. * @access public * @author Nicola Asuni * @since 4.5.000 (2009-01-02) */ - public function addTOC($page='', $numbersfont='', $filler='.') { + public function addTOC($page='', $numbersfont='', $filler='.', $toc_name='TOC') { $fontsize = $this->FontSizePt; $fontfamily = $this->FontFamily; $fontstyle = $this->FontStyle; @@ -15907,7 +15916,6 @@ if (!class_exists('TCPDF', false)) { $pagenum = ' '.$rowfill.$gap.$pagenum; } // write the number - //$this->SetX($x_start); $this->Cell($tw, 0, $pagenum, 0, 1, $alignnum, 0, $link, 0); $this->SetX($x_start); $this->lMargin = $lmargin; @@ -15964,6 +15972,7 @@ if (!class_exists('TCPDF', false)) { } // move pages for ($i = 0; $i < $numpages; ++$i) { + $this->Bookmark($toc_name, 0, 0, $page_last); $this->movePage($page_last, $page); } }
diff --git a/doc/li_com-tecnick-tcpdf.html b/doc/li_com-tecnick-tcpdf.html index 33fd12b..34b74e5 100644 --- a/doc/li_com-tecnick-tcpdf.html +++ b/doc/li_com-tecnick-tcpdf.html @@ -55,10 +55,10 @@

TCPDF Documentation

Welcome to com-tecnick-tcpdf!

-This documentation was generated by phpDocumentor v1.4.1
+This documentation was generated by phpDocumentor v1.4.3

- Documentation generated on Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:27 +0200 by phpDocumentor 1.4.3
@@ -19321,7 +19327,7 @@ $s)
-

method _outarc [line 11675]

+

method _outarc [line 11683]

diff --git a/doc/index.html b/doc/index.html index 33fd12b..34b74e5 100644 --- a/doc/index.html +++ b/doc/index.html @@ -55,10 +55,10 @@

TCPDF Documentation

Welcome to com-tecnick-tcpdf!

-This documentation was generated by phpDocumentor v1.4.1
+This documentation was generated by phpDocumentor v1.4.3

- Documentation generated on Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:27 +0200 by phpDocumentor 1.4.3
diff --git a/doc/errors.html b/doc/errors.html index 467ae3b..60f3fd4 100644 --- a/doc/errors.html +++ b/doc/errors.html @@ -35,7 +35,7 @@ Post-parsing

- Documentation generated on Wed, 30 Sep 2009 11:18:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:34 +0200 by phpDocumentor 1.4.3
@@ -20016,7 +20022,7 @@ $font)
-

method _putextgstates [line 11337]

+

method _putextgstates [line 11345]

diff --git a/doc/elementindex_com-tecnick-tcpdf.html b/doc/elementindex_com-tecnick-tcpdf.html index 61e636f..e0b1027 100644 --- a/doc/elementindex_com-tecnick-tcpdf.html +++ b/doc/elementindex_com-tecnick-tcpdf.html @@ -1467,7 +1467,7 @@ top

- Documentation generated on Wed, 30 Sep 2009 11:18:22 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:27 +0200 by phpDocumentor 1.4.3
diff --git a/doc/elementindex.html b/doc/elementindex.html index 58c1be1..5099db3 100644 --- a/doc/elementindex.html +++ b/doc/elementindex.html @@ -1444,7 +1444,7 @@ top

- Documentation generated on Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:27 +0200 by phpDocumentor 1.4.3
@@ -20189,7 +20195,7 @@ $cidoffset = 0])
-

method _putjavascript [line 9947]

+

method _putjavascript [line 9955]

diff --git a/doc/com-tecnick-tcpdf/_unicode_data.php.html b/doc/com-tecnick-tcpdf/_unicode_data.php.html index c2f04b2..beb8b65 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 Wed, 30 Sep 2009 11:18:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:34 +0200 by phpDocumentor 1.4.3
@@ -20214,7 +20220,7 @@ $cidoffset = 0])
-

method _putocg [line 11258]

+

method _putocg [line 11266]

diff --git a/doc/com-tecnick-tcpdf/_tcpdf.php.html b/doc/com-tecnick-tcpdf/_tcpdf.php.html index e5c6dc2..d0b6bbb 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 9f73647..0248f56 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 Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:28 +0200 by phpDocumentor 1.4.3
@@ -20314,7 +20320,7 @@ $cidoffset = 0])
-

method _putshaders [line 11625]

+

method _putshaders [line 11633]

diff --git a/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html b/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html index d84d257..6a50afc 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 Wed, 30 Sep 2009 11:18:29 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:34 +0200 by phpDocumentor 1.4.3
diff --git a/doc/com-tecnick-tcpdf/_barcodes.php.html b/doc/com-tecnick-tcpdf/_barcodes.php.html index 182dedd..cf3c5d7 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 Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:27 +0200 by phpDocumentor 1.4.3
@@ -20345,7 +20351,7 @@ $cidoffset = 0])
-

method _putsignature [line 10979]

+

method _putsignature [line 10987]

diff --git a/doc/com-tecnick-tcpdf/TCPDFBarcode.html b/doc/com-tecnick-tcpdf/TCPDFBarcode.html index 9396342..0b1822a 100644 --- a/doc/com-tecnick-tcpdf/TCPDFBarcode.html +++ b/doc/com-tecnick-tcpdf/TCPDFBarcode.html @@ -1368,7 +1368,7 @@ $type)

- Documentation generated on Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:27 +0200 by phpDocumentor 1.4.3
@@ -20729,7 +20735,7 @@ $file)

- Documentation generated on Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:28 +0200 by phpDocumentor 1.4.3
author:  Nicola Asuni
version:  4.8.009version:  4.8.010
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.009 (http://www.tcpdf.org)' + PDF_PRODUCER = 'TCPDF 4.8.010 (http://www.tcpdf.org)'
@@ -115,7 +115,7 @@ unicode data


- Documentation generated on Wed, 30 Sep 2009 11:18:23 +0200 by phpDocumentor 1.4.1 + Documentation generated on Wed, 21 Oct 2009 14:23:28 +0200 by phpDocumentor 1.4.3