Skip to content

Commit 0123901

Browse files
committed
tcpdf_5_9_067
1 parent 6b58c1b commit 0123901

File tree

6 files changed

+666
-330
lines changed

6 files changed

+666
-330
lines changed

CHANGELOG.TXT

+74
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,77 @@
1+
5.9.067 (2011-04-10)
2+
- Performances were drastically improved (PDF documents are now created more quickly).
3+
4+
5.9.066 (2011-04-09)
5+
- A bug related to digital signature + encryption was fixed.
6+
- A bug related to encryption + xobject templates was fixed.
7+
8+
5.9.065 (2011-04-08)
9+
- Bug item #3280512 "Text encoding iso-8859-2 crashes" was fixed.
10+
11+
5.9.064 (2011-04-05)
12+
- A bug related to character entities on HTML cells was fixed.
13+
14+
5.9.063 (2011-04-01)
15+
- Bug item #3267235 "WriteHTML() and image that doesn't fit on the page" was fixed.
16+
17+
5.9.062 (2011-03-23)
18+
- Bug item #3232650 "Using Write if there are pageRegions active creates error" was fixed.
19+
- Bug item #3221891 "text input borders" was fixed.
20+
- Bug item #3228958 "Adobe Reader 9.4.2 crash" was fixed.
21+
22+
5.9.061 (2011-03-15)
23+
- Bug item #3213488 "wrong function call in function Write" was fixed.
24+
- Bug item #3203007 "list element with black background" was fixed.
25+
26+
5.9.060 (2011-03-08)
27+
- addTOC() method was fixed for text alignment problems.
28+
29+
5.9.059 (2011-02-27)
30+
- Default Header() method was improved to reduce document size.
31+
32+
5.9.058 (2011-02-25)
33+
- Image() method was improved to cache images with transparency layers (thanks to Korneliusz Jarzębski for reporting this problem).
34+
35+
5.9.057 (2011-02-24)
36+
- A problem with image caching system was fixed (thanks to Korneliusz Jarzębski for reporting this problem).
37+
38+
5.9.056 (2011-02-22)
39+
- A bug on fixHTMLCode() method was fixed.
40+
- Automatic line break for HTML was fixed.
41+
42+
5.9.055 (2011-02-17)
43+
- Another bug related to HTML table page break was fixed.
44+
45+
5.9.054 (2011-02-16)
46+
- A bug related to HTML table page break was fixed.
47+
48+
5.9.053 (2011-02-16)
49+
- Support for HTML attribute display="none" was added.
50+
51+
5.9.052 (2011-02-15)
52+
- A bug related to HTML automatic newlines was fixed.
53+
54+
5.9.051 (2011-02-12)
55+
- "Commas at beginning of new lines" problem was fixed.
56+
57+
5.9.050 (2011-02-11)
58+
- Bug #3177606 "SVG Bar chart error" was fixed.
59+
60+
5.9.049 (2011-02-03)
61+
- Bug #3170777 "TCPDF creates a new page after a single line in writeHTML" was fixed.
62+
63+
5.9.048 (2011-02-02)
64+
- No changes. Just released to override previous release that was not uploaded correctly.
65+
66+
5.9.047 (2011-01-28)
67+
- Bug #3167115 "PDF error in <table> (example 48)" was fixed (was introduced in 5.8.046).
68+
69+
5.9.046 (2011-01-18)
70+
- PDF view/print layers are now automatically turned off if not used (see setVisibility() method).
71+
72+
5.9.045 (2011-01-17)
73+
- HTML list support were improved.
74+
175
5.9.044 (2011-01-15)
276
- Bug #3158422 "writeHTMLCell Loop" was fixed.
377
- Some HTML image alignment problems were fixed.

README.TXT

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
88
------------------------------------------------------------
99

1010
Name: TCPDF
11-
Version: 5.9.044
12-
Release date: 2011-01-15
11+
Version: 5.9.067
12+
Release date: 2011-04-10
1313
Author: Nicola Asuni
1414

1515
Copyright (c) 2002-2011:

config/lang/nld.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
//============================================================+
3-
// File name : dan.php
3+
// File name : nld.php
44
// Begin : 2010-10-26
55
// Last Update : 2010-10-26
66
//

examples/example_033.php

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
// add a page
7070
$pdf->AddPage();
7171

72+
// set default font subsetting mode
73+
$pdf->setFontSubsetting(false);
74+
7275
$pdf->SetFont('helvetica', 'B', 20);
7376

7477
$pdf->Write(0, 'Font Types', '', 0, 'C', 1, 0, false, false, 0);

fonts/utils/makeallttffonts.php

+21-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//============================================================+
33
// File name : makeallttffonts.php
44
// Begin : 2008-12-07
5-
// Last Update : 2010-12-03
5+
// Last Update : 2011-02-04
66
//
77
// Description : Process all TTF files on current directory to
88
// build TCPDF compatible font files.
@@ -40,26 +40,36 @@
4040
//============================================================+
4141

4242
/**
43-
* @file
4443
* Process all TTF files on current directory to build TCPDF compatible font files.
4544
* @package com.tecnick.tcpdf
4645
* @author Nicola Asuni
46+
* @copyright Copyright &copy; 2004-2009, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - [email protected]
47+
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
48+
* @link www.tecnick.com
4749
* @since 2008-12-07
4850
*/
4951

50-
// read directory for files (only TTF files).
52+
// read directory for files (only TTF and OTF files).
5153
$handle = opendir('.');
5254
while ($file = readdir($handle)) {
5355
$path_parts = pathinfo($file);
54-
if (isset($path_parts['extension']) AND (strtoupper($path_parts['extension']) === 'TTF')) {
55-
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
56-
// windows
57-
exec('ttf2ufm.exe -a -F '.$path_parts['basename']);
58-
} else {
59-
// linux
60-
exec('./ttf2ufm -a -F '.$path_parts['basename']);
56+
if (isset($path_parts['extension'])) {
57+
$fontfile = $path_parts['basename'];
58+
$filename = $path_parts['filename'];
59+
$extension = strtolower($path_parts['extension']);
60+
if (($extension === 'ttf') OR ($extension === 'otf')) {
61+
if (!file_exists($filename.'.ufm')) {
62+
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
63+
// windows
64+
passthru('ttf2ufm.exe -a -F '.$fontfile);
65+
} else {
66+
// linux
67+
passthru('./ttf2ufm -a -F '.$fontfile);
68+
}
69+
}
70+
$cmd = 'php -q makefont.php '.$fontfile.' '.$filename.'.ufm'; // unicode file
71+
passthru($cmd);
6172
}
62-
exec('php -q makefont.php '.$path_parts['basename'].' '.$path_parts['filename'].'.ufm');
6373
}
6474
}
6575
closedir($handle);

0 commit comments

Comments
 (0)