- Method setSpacesRE() was added to set the regular expression used for detecting withespaces or word separators. If you are using chinese, try: setSpacesRE('/[\s\p{Z}\p{Lo}]/');, otherwise you can use setSpacesRE('/[\s\p{Z}]/');
- Image() method was improved: now is possible to specify the maximum dimensions for a constraint box defined by $w and $h parameters, and setting the $resize parameter to null.
- <tcpdf> tag indent problem was fixed.
- $y parameter was added to checkPageBreak() method.
- Points (pt) conversion in getHTMLUnitToUnits() was fixed.
- Default tcpdf.pem certificate file was added.
- Experimental support for signing document was added but it is not yet completed (some help is needed - I think that the calculation of the ByteRange is OK and the problem is on the signature calculation).
- SetFont() method signature was changed to include the font filename.
- Some font-related methods were improved.
- Methods getFontFamily() and getFontStyle() were added.
4.3.007 (2008-12-03)
- PNG alpha channel is now supported (GD library is required).
- AddFont() function now support custom font file path on $file parameter.
- The default width variable ($dw) is now always defined for any font.
- The 'Style' attribute on CID-0 fonts was removed because of protection bug.
4.3.006 (2008-12-01)
- A regular expression on getHtmlDomArray() to find HTML tags was fixed.
4.3.005 (2008-11-25)
- makefont.php was fixed.
- Bug item #2339877 was fixed (false loop condition detected on WriteHTML()).
- Bug item #2336733 was fixed (lasth value update on Multicell() when border and fill are disabled).
- Bug item #2342303 was fixed (automatic page-break on Image() and ImageEPS()).
4.3.004 (2008-11-19)
- Function _textstring() was fixed (bug 2309051).
- All examples were updated.
4.3.003 (2008-11-18)
- CID-0 font bug was fixed.
- Some functions were optimized.
- Function getGroupPageNoFormatted() was added.
- Example n. 23 was updated.
4.3.002 (2008-11-17)
- Bug item #2305518 "CID-0 font don't work with encryption" was fixed.
4.3.001 (2008-11-17)
- Bug item #2300007 "download mimetype pdf" was fixed.
- Double quotes were replaced by single quotes to improve PHP performances.
- A bug relative to HTML cell borders was fixed.
4.3.000 (2008-11-14)
- The function setOpenCell() was added to set the top/bottom cell sides to be open or closed when the cell cross the page.
- A bug relative to list items indentation was fixed.
- A bug relative to borders on HTML tables and Multicell was fixed.
- A bug relative to rowspanned cells was fixed.
- A bug relative to html images across pages was fixed.
4.2.009 (2008-11-13)
- Spaces between li tags are now automatically removed.
4.2.008 (2008-11-12)
- A bug relative to fill color on next page was fixed.
4.2.007 (2008-11-12)
- The function setListIndentWidth() was added to set custom indentation widht for HTML lists.
4.2.006 (2008-11-06)
- A bug relative to HTML justification was fixed.
4.2.005 (2008-11-06)
- A bug relative to HTML justification was fixed.
- The methods formatPageNumber() and PageNoFormatted() were added to format page numbers.
- Default Footer() method was changed to use PageNoFormatted() instead of PageNo().
- Example 6 was updated.
4.2.004 (2008-11-04)
- Bug item n. 2217039 "filename handling improvement" was fixed.
4.2.003 (2008-10-31)
- Font style bug was fixed.
4.2.002 (2008-10-31)
- Bug item #2210922 (htm element br not work) was fixed.
- Write() function was improved to support margin changes.
4.2.001 (2008-10-30)
- setHtmlVSpace($tagvs) function was added to set custom vertical spaces for HTML tags.
- writeHTML() function now support margin changes during execution.
- Signature of addHTMLVertSpace() function is changed.
4.2.000 (2008-10-29)
- htmlcolors.php was changed to support class-loaders.
- ImageEps() function was improved in performances.
- Signature of Link() And Annotation() functions were changed.
- (Bug item #2198926) Links and Annotations alignment were fixed (support for geometric tranformations was added).
- rowspan mode for HTML table cells was improved and fixed.
- Booklet mode for double-sided pages was added; see SetBooklet() function and example n. 40.
- lastPage() signature is changed.
- Signature of Write() function is changed.
- Some HTML justification problems were fixed.
- Some functions were fixed to better support RTL mode.
- Example n. 10 was changed to support RTL mode.
- All examples were updated.
4.1.004 (2008-10-23)
- unicode_data.php was changed to support class-loaders.
- Bug item #2186040/2 (writeHTML margin problem) was fixed.
4.1.003 (2008-10-22)
- Bug item #2185399 was fixed (rowspan and page break).
- Bugs item #2186040 was fixed (writeHTML margin problem).
- Newline after table was removed.
4.1.002 (2008-10-21)
- Bug item #2184525 was fixed (rowspan on HTML cell).
4.1.001 (2008-10-21)
- Support for "start" attribute was added to HTML ordered list.
- unicode_data.php file was changed to include UTF-8 to ASCII table.
- Some functions were modified to better support UTF-8 extensions to core fonts.
- Support for images on HTML lists was improved.
- Examples n. 1 and 6 were updated.
4.1.000 (2008-10-18)
- Page-break bug using HTML content was fixed.
- The "false" parameter was reintroduced to class_exists function on PHP5 version to avoid autoload.
- addHtmlLink() function was improved to support internal links (i.e.: <a href="#23">link to page 23</a>).
- Justification alignment is now supported on HTML (see example n. 39).
- example_006.php was updated.
4.0.033 (2008-10-13)
- Bug n. 2157099 was fixed.
- SetX() and SetY() functions were improved.
- SetY() includes a new parameter to avoid the X reset.
4.0.032 (2008-10-10)
- Bug n. 2156926 was fixed (bold, italic, underlined, linethrough).
- setStyle() method was removed.
- Configuration file was changed to use helvetica (non-unicode) font by default.
- The use of mixed font types was improved.
- All examples were updated.
4.0.031 (2008-10-09)
- _putannots() and _putbookmarks() links alignments were fixed.
4.0.030 (2008-10-07)
- _putbookmarks() function was fixed.
- _putannots() was fixed to include internal links.
4.0.029 (2008-09-27)
- Infinite loop bug was fixed [Bug item #130309].
- Multicell() problem on Header() was fixed.
4.0.028 (2008-09-26)
- setLIsymbol() was added to set the LI symbol used on UL lists.
- Missing $padding and $encryption_key variables declarations were added [Bug item #2129058].
4.0.027 (2008-09-19)
- Bug #2118588 "Undefined offset in tcpdf.php on line 9581" was fixed.
- arailunicid0.php font was updated.
- The problem of javascript form fields duplication after saving was fixed.
4.0.026 (2008-09-17)
- convertHTMLColorToDec() function was improved to support rgb(RR,GG,BB) notation.
- The following inline CSS attributes are now supported: text-decoration, color, background-color and font-size names: xx-small, x-small, small, medium, large, x-large, xx-large
- Example n. 6 was updated.
4.0.025 (2008-09-15)
- _putcidfont0 function was improved to include CJK fonts (Chinese, Japanese, Korean, CJK, Asian fonts) without embedding.
- arialunicid0 font was added (see the new example n. 38).
- The following Unicode to CID-0 tables were added on fonts folder: uni2cid_ak12.php, uni2cid_aj16.php, uni2cid_ag15.php, uni2cid_ac15.php.
4.0.024 (2008-09-12)
- "stripos" function was replaced with "strpos + strtolower" for backward compatibility with PHP4.
- support for Spot Colors were added. Check the new example n. 37 and the following new functions:
AddSpotColor()
SetDrawSpotColor()
SetFillSpotColor()
SetTextSpotColor()
_putspotcolors()
- Bookmark() function was improved to fix wrong levels.
- $lasth changes after header/footer calls were fixed.
4.0.023 (2008-09-05)
- Some HTML related problems were fixed.
- Image alignment on HTML was changed, now it always defaults to the normal mode (see example_006.php).
4.0.022 (2008-08-28)
- Line height on HTML was fixed.
- Image inside an HTML cell problem was fixed.
- A new "zarbold" persian font was added.
4.0.021 (2008-08-24)
- HTTP headers were fixed on Output function().
- getAliasNbPages() and getPageGroupAlias() functions were changed to support non-unicode fonts on unicode documents.
- Function Write() was fixed.
- The problem of additional vertical spaces on HTML was fixed.
- The problem of frame around HTML links was fixed.
4.0.020 (2008-08-15)
- "[2052259] WriteHTML <u> & <b>" bug was fixed.
4.0.019 (2008-08-13)
- "Rowspan on first cell" bug was fixed.
4.0.018 (2008-08-08)
- Default cellpadding for HTML tables was fixed.
- Annotation() function was added to support some PDF annotations (see example_036.php and section 8.4 of PDF reference 1.7).
- HTML links are now correclty shifted during line alignments.
- function getAliasNbPages() was added and Footer() was updated.
- Bug [1992515] "K_PATH_FONTS default value wrong" was fixed.
- Vera font was removed, DejaVu font and Free fonts were updated.
- Image handling was improved.
- All examples were updated.
3.1.000 (2008-06-11)
- setPDFVersion() was added to change the default PDF version (currently 1.7).
- setViewerPreferences() was added to control the way the document is to be presented on the screen or printed (see example 29).
- SetDisplayMode() signature was changed (new options were added).
- LinearGradient(), RadialGradient(), CoonsPatchMesh() functions were added to print various color gradients (see example 30).
- PieSector() function was added to render render pie charts (see example 31).
- ImageEps() was added to display EPS and AI images with limited support (see example 32).
- writeBarcode() function is now depracated, a new write1DBarcode() function was added. The barcode directory was removed and a new barcodes.php file was added.
- The new write1DBarcode() function support more barcodes and do not need the GD library (see example 027). All barcodes are directly written to PDF using graphic functions.
- HTML lists were improved and could be nested (you may now represent trees).
- AddFont() bug was fixed.
- _putfonts() bug was fixed.
- graphics functions were fixed.
- unicode_data.php file was updated (fixed).
- almohanad font was updated.
- example 18 was updated (Farsi and Arabic languages).
- source code cleanup.
- All examples were updated and new examples were added.
3.0.015 (2008-06-06)
- AddPage() function signature is changed to include page format.
- example 28 was added to show page format changes.
- setPageUnit() function was added to change the page units of measure.
- setPageFormat() function was added to change the page format and orientation between pages.
- setPageOrientation() function was added to change the page orientation.
- Arabic font shaping was fixed for laa letter and square boxes (see the example 18).
3.0.014 (2008-06-04)
- Arabic font shaping was fixed.
- setDefaultTableColumns() function was added.
- $cell_height_ratio variable was added.
- setCellHeightRatio() function was added to define the default height of cell repect font height.
3.0.013 (2008-06-03)
- Multicell height parameter was fixed.
- Arabic font shaping was improved.
- unicode_data.php was updated.
3.0.012 (2008-05-30)
- K_PATH_MAIN and K_PATH_URL constants are now automatically set on config file.
- DOCUMENT_ROOT constant was fixed for IIS Webserver (config file was updated).
- Arabic font shaping was improved.
- TranslateY() function was fixed (bug [1977962]).
- setVisibility() function was fixed.
- writeBarcode() function was fixed to scale using $xref parameter.
- All examples were updated.
3.0.011 (2008-05-23)
- CMYK color support was added to all graphic functions.
- HTML table support was improved:
-- now it's possible to include additional html tags inside a cell;
-- colspan attribute was added.
- example 006 was updated.
3.0.010 (2008-05-21)
- fixed $laa_array inclusion on utf8Bidi() function.
3.0.009 (2008-05-20)
- unicode_data.php was updated.
- Arabic laa letter problem was fixed.
3.0.008 (2008-05-12)
- Arabic support was fixed and improved (unicode_data.php was updated).
- Polycurve() function was added to draw a poly-Bezier curve.
- list items alignment was fixed.
- example 6 was updated.
3.0.007 (2008-05-06)
- Arabic support was fixed and improved.
- AlMohanad (arabic) font was added.
- C128 barcode bugs were fixed.
3.0.006 (2008-04-21)
- Condition to check negative width values was added.
3.0.005 (2008-04-18)
- back-Slash character escape was fixed on writeHTML() function.
- Exampe 6 was updated.
3.0.004 (2008-04-11)
- Bug [1939304] (Right to Left Issue) was fixed.
3.0.003 (2008-04-07)
- Bug [1934523](Words between HTML tags in cell not kept on one line) was fixed.
- "face" attribute of "font" tag is now fully supported.
3.0.002 (2008-04-01)
- Write() functions now return the number of cells and not the number of lines.
- TCPDF is released under LGPL 2.1, or any later version.
3.0.001 (2008-05-28)
- _legacyparsejpeg() and _legacyparsepng() were renamed _parsejpeg() and _parsepng().
- function writeBarcode() was fixed.
- all examples were updated.
- example 27 was added to show various barcodes.
3.0.000 (2008-03-27)
- private function pixelsToMillimeters() was changed to public function pixelsToUnits() to fix html image size bug.
- Image-related functions were rewritten.
- resize parameter was added to Image() signature to reduce the image size and fit width and height (see example 9).
- TCPDF now supports all images supported by GD library: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM.
- CMYK support was added to SetDrawColor(), SetFillColor(), SetTextColor() (see example 22).
- Page Groups were added (see example 23).
- setVisibility() function was added to restrict the rendering of some elements to screen or printout (see example 24).
- All private variables and functions were changed to protected.
- setAlpha() function was added to give transparency support for all objects (see example 25).
- Clipping and stroke modes were added to Text() function (see example 26).
- All examples were moved to "examples" directory.
- function setJPEGQuality() was added to set the JPEG image comrpession (see example 9).
2.9.000 (2008-03-26)
- htmlcolors.php file was added to include html colors.
- Support for HTML color names and three-digit hexadecimal color codes was added.
- private function convertColorHexToDec() was renamed convertHTMLColorToDec().
- color and bgcolor attributes are now supported on all HTML tags (color nesting is also supported).
- Write() function were fixed.
- example_006.php was updated.
- private function setUserRights() was added to release user rights on Acrobat Reader (this allows to display forms, see example 14)
2.8.000 (2008-03-20)
- Private variables were changed to protected.
- Function Write() was fixed and improved.
- Support for dl, dt, dd, del HTML tags was introduced.
- Line-trought mode was added for HTML and text.
- Text vertical alignment on cells were fixed.
- Examples were updated to reflect changes.
2.7.002 (2008-03-13)
- Bug "[1912142] Encrypted PDF created/modified date" was fixed.
2.7.001 (2008-03-10)
- Cell justification was fixed for non-unicode mode.
2.7.000 (2008-03-09)
- Cell() stretching mode 4 (forced character spacing) was fixed.
- writeHTMLCell() now uses Multicell() to write.
- Multicell() has a new parameter $ishtml to act as writeHTMLCell().
- Write() speed was improved for non-arabic strings.
- Example n. 20 was changed.
2.6.000 (2008-03-07)
- various alignments bugs were fixed.
2.5.000 (2008-03-07)
- Several bugs were fixed.
- example_019.php was added to test non-unicode mode using old fonts.
2.4.000 (2008-03-06)
- RTL support was deeply improved.
- GetStringWidth() was fixed to support RTL languages.
- Text() RTL alignment was fixed.
- Some functions were added: GetArrStringWidth(), GetCharWidth(), uniord(), utf8Bidi().
- example_018.php was added and test_unicode.php was removed.
2.3.000 (2008-03-05)
- MultiCell() signature is changed. Now support multiple columns across pages (see example_017).
- Write() signature is changed. Now support the cell mode to be used with MultiCell.
- Header() and Footer() were changed.
- The following functions were added: UTF8ArrSubString() and unichr().
- Examples were updated to reflect last changes.
2.2.004 (2008-03-04)
- Several examples were added.
- AddPage() Header() and Footer() were fixed.
- Documentation is now available on http://www.tcpdf.org
2.2.003 (2008-03-03)
- [1894853] Performance of MultiCell() was improved.
- RadioButton and ListBox functions were added.
- javascript form functions were rewritten and properties names are changed. The properties function supported by form fields are listed on Possible values are listed on http://www.adobe.com/devnet/acrobat/pdfs/js_developer_guide.pdf.
2.2.002 (2008-02-28)
- [1900495] html images path was fixed.
- Legacy image functions were reintroduced to allow PNG and JPEG support without GD library.
2.2.001 (2008-02-16)
- The bug "[1894700] bug with replace relative path" was fixed
- Justification was fixed
2.2.000 (2008-02-12)
- fixed javascript bug introduced with latest release
2.1.002 (2008-02-12)
- Justify function was fixed on PHP4 version.
- Bookmank function was added ([1578250] Table of contents).
- Javascript and Form fields support was added ([1796359] Form fields).
2.1.001 (2008-02-10)
- The bug "[1885776] Race Condition in function justitfy" was fixed.
- The bug "[1890217] xpdf complains that pdf is incorrect" was fixed.
2.1.000 (2008-01-07)
- FPDF_FONTPATH constant was changed to K_PATH_FONTS on config file
- Bidirectional Algorithm to correctly reverse bidirectional languages was added.
- SetLeftMargin, SetTopMargin, SetRightMargin functions were fixed.
- SetCellPadding function was added.
- writeHTML was updated with new parameters.
- Text function was fixed.
- MultiCell function was fixed, now works also across multiple pages.
- Line width was fixed on Header and Footer functions and <hr> tag.
- "GetImageSize" was renamed "getimagesize".
- Document version was changed from 1.3 to 1.5.
- _begindoc() function was fixed.
- ChangeDate was fixed and ModDate was added.
- The following functions were added:
setPage() : Move pointer to the specified document page.
getPage() : Get current document page number.
lastpage() : Reset pointer to the last document page.
getNumPages() : Get the total number of inserted pages.
GetNumChars() : count the number of (UTF-8) characters in a string.
- $stretch parameter was added to Cell() function to fit text on cell:
0 = disabled
1 = horizontal scaling only if necessary
2 = forced horizontal scaling
3 = character spacing only if necessary
4 = forced character spacing
- Line function was fixed for RTL.
- Graphic transformation functions were added [1811158]:
StartTransform()
StopTransform()
ScaleX()
ScaleY()
ScaleXY()
Scale()
MirrorH()
MirrorV()
MirrorP()
MirrorL()
TranslateX()
TranslateY()
Translate()
Rotate()
SkewX()
SkewY()
Skew()
- Graphic function were added/updated [1688549]:
SetLineStyle()
_outPoint()
_outLine()
_outRect()
_outCurve()
Line()
Rect()
Curve
Ellipse
Circle
Polygon
RegularPolygon
2.0.000 (2008-01-04)
- RTL (Right-To-Left) languages support was added. Language direction is set using the $l['a_meta_dir'] setting on /configure/language/xxx.php language files.
- setRTL($enable) method was added to manually enable/disable the RTL text direction.
- The attribute "dir" was added to support custom text direction on HTML tags. Possible values are: ltr - for Left-To-Right and RTL for Right-To-Left.
- RC4 40bit encryption was added. Check the SetProtection method.
- [1815213] Improved image support for GIF, JPEG, PNG formats.
- [1800094] Attribute "value" was added to ordered list items <li>.
- Image function now has a new "align" parameter that indicates the alignment of the pointer next to image insertion and relative to image height. The value can be:
T: top-right for LTR or top-left for RTL
M: middle-right for LTR or middle-left for RTL
B: bottom-right for LTR or bottom-left for RTL
N: next line
- Attribute "align" was added to <img> html tag to set the above image "align" parameter. Possible values are:
top: top-right for LTR or top-left for RTL
middle: middle-right for LTR or middle-left for RTL
bottom: bottom-right for LTR or bottom-left for RTL
- [1798103] newline was added after </ul>, </ol> and </p> tages.
- [1816393] Documentation was updated.
- 'ln' parameter was fixed on writeHTMLCell. Now it's possible to print two or more columns across several pages;
- The method lastPage() was added to move the pointer on the last page;