Skip to content

Commit 295594b

Browse files
committed
Update to 1.8
1 parent e1411ec commit 295594b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1429
-930
lines changed

FAQ.htm

Lines changed: 77 additions & 146 deletions
Large diffs are not rendered by default.

changelog.htm

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
<body>
1212
<h1>Changelog</h1>
1313
<dl>
14+
<dt><strong>v1.8</strong> (2015-11-29)</dt>
15+
<dd>
16+
- PHP 5.1.0 or higher is now required.<br>
17+
- The MakeFont utility now subsets fonts, which can greatly reduce font sizes.<br>
18+
- Added ToUnicode CMaps to improve text extraction.<br>
19+
- Added a parameter to AddPage() to rotate the page.<br>
20+
- Added a parameter to SetY() to indicate whether the x position should be reset or not.<br>
21+
- Added a parameter to Output() to specify the encoding of the name, and special characters are now properly encoded. Additionally the order of the first two parameters was reversed to be more logical (however the old order is still supported for compatibility).<br>
22+
- The Error() method now throws an exception.<br>
23+
- Adding contents before the first AddPage() or after Close() now raises an error.<br>
24+
- Outputting text with no font selected now raises an error.<br>
25+
</dd>
1426
<dt><strong>v1.7</strong> (2011-06-18)</dt>
1527
<dd>
1628
- The MakeFont utility has been completely rewritten and doesn't depend on ttf2pt1 anymore.<br>
@@ -65,7 +77,7 @@ <h1>Changelog</h1>
6577
<dd>
6678
- Type1 font support.<br>
6779
- Added Baltic encoding.<br>
68-
- The class now works internally in points with the origin at the bottom in order to avoid two bugs occurring with Acrobat 5 :<br>&nbsp;&nbsp;* The line thickness was too large when printed under Windows 98 SE and ME.<br>&nbsp;&nbsp;* TrueType fonts didn't appear immediately inside the plug-in (a substitution font was used), one had to cause a window refresh to make them show up.<br>
80+
- The class now works internally in points with the origin at the bottom in order to avoid two bugs occurring with Acrobat 5:<br>&nbsp;&nbsp;* The line thickness was too large when printed under Windows 98 SE and ME.<br>&nbsp;&nbsp;* TrueType fonts didn't appear immediately inside the plug-in (a substitution font was used), one had to cause a window refresh to make them show up.<br>
6981
- It's no longer necessary to set the decimal separator as dot to produce valid documents.<br>
7082
- The clickable area in a cell was always on the left independently from the text alignment.<br>
7183
- JPEG images in CMYK mode appeared in inverted colors.<br>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setasign/fpdf",
3-
"version": "1.7",
3+
"version": "1.8",
44
"homepage": "http://www.fpdf.org",
55
"description": "FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.",
66
"type": "library",

doc/fpdf.htm renamed to doc/__construct.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html>
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5-
<title>FPDF</title>
5+
<title>__construct</title>
66
<link type="text/css" rel="stylesheet" href="../fpdf.css">
77
</head>
88
<body>
9-
<h1>FPDF</h1>
10-
<code>FPDF([<b>string</b> orientation [, <b>string</b> unit [, <b>mixed</b> size]]])</code>
9+
<h1>__construct</h1>
10+
<code>__construct([<b>string</b> orientation [, <b>string</b> unit [, <b>mixed</b> size]]])</code>
1111
<h2>Description</h2>
1212
This is the class constructor. It allows to set up the page size, the orientation and the
1313
unit of measure used in all methods (except for font sizes).

doc/acceptpagebreak.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ <h2>Example</h2>
5252
$pdf-&gt;AddPage();
5353
$pdf-&gt;SetFont('Arial','',12);
5454
for($i=1;$i&lt;=300;$i++)
55-
$pdf-&gt;Cell(0,5,&quot;Line $i&quot;,0,1);
55+
$pdf-&gt;Cell(0,5,"Line $i",0,1);
5656
$pdf-&gt;Output();</code></pre>
5757
</div>
5858
<h2>See also</h2>
59-
<a href="setautopagebreak.htm">SetAutoPageBreak()</a>.
59+
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
6060
<hr style="margin-top:1.5em">
6161
<div style="text-align:center"><a href="index.htm">Index</a></div>
6262
</body>

doc/addfont.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>Example</h2>
4848
<pre><code>$pdf-&gt;AddFont('Comic','I','comici.php');</code></pre>
4949
</div>
5050
<h2>See also</h2>
51-
<a href="setfont.htm">SetFont()</a>.
51+
<a href="setfont.htm">SetFont</a>
5252
<hr style="margin-top:1.5em">
5353
<div style="text-align:center"><a href="index.htm">Index</a></div>
5454
</body>

doc/addlink.htm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ <h2>Description</h2>
1515
The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is
1616
defined with SetLink().
1717
<h2>See also</h2>
18-
<a href="cell.htm">Cell()</a>,
19-
<a href="write.htm">Write()</a>,
20-
<a href="image.htm">Image()</a>,
21-
<a href="link.htm">Link()</a>,
22-
<a href="setlink.htm">SetLink()</a>.
18+
<a href="cell.htm">Cell</a>,
19+
<a href="write.htm">Write</a>,
20+
<a href="image.htm">Image</a>,
21+
<a href="link.htm">Link</a>,
22+
<a href="setlink.htm">SetLink</a>
2323
<hr style="margin-top:1.5em">
2424
<div style="text-align:center"><a href="index.htm">Index</a></div>
2525
</body>

doc/addpage.htm

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88
<body>
99
<h1>AddPage</h1>
10-
<code>AddPage([<b>string</b> orientation [, <b>mixed</b> size]])</code>
10+
<code>AddPage([<b>string</b> orientation [, <b>mixed</b> size [, <b>int</b> rotation]]])</code>
1111
<h2>Description</h2>
1212
Adds a new page to the document. If a page is already present, the Footer() method is called
1313
first to output the footer. Then the page is added, the current position set to the top-left
@@ -44,12 +44,17 @@ <h2>Parameters</h2>
4444
<br>
4545
The default value is the one passed to the constructor.
4646
</dd>
47+
<dt><code>rotation</code></dt>
48+
<dd>
49+
Angle by which to rotate the page. It must be a multiple of 90; positive values
50+
mean clockwise rotation. The default value is <code>0</code>.
51+
</dd>
4752
</dl>
4853
<h2>See also</h2>
49-
<a href="fpdf.htm">FPDF()</a>,
50-
<a href="header.htm">Header()</a>,
51-
<a href="footer.htm">Footer()</a>,
52-
<a href="setmargins.htm">SetMargins()</a>.
54+
<a href="__construct.htm">__construct</a>,
55+
<a href="header.htm">Header</a>,
56+
<a href="footer.htm">Footer</a>,
57+
<a href="setmargins.htm">SetMargins</a>
5358
<hr style="margin-top:1.5em">
5459
<div style="text-align:center"><a href="index.htm">Index</a></div>
5560
</body>

doc/aliasnbpages.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ <h2>Example</h2>
3737
$pdf-&gt;AliasNbPages();</code></pre>
3838
</div>
3939
<h2>See also</h2>
40-
<a href="pageno.htm">PageNo()</a>,
41-
<a href="footer.htm">Footer()</a>.
40+
<a href="pageno.htm">PageNo</a>,
41+
<a href="footer.htm">Footer</a>
4242
<hr style="margin-top:1.5em">
4343
<div style="text-align:center"><a href="index.htm">Index</a></div>
4444
</body>

doc/cell.htm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ <h2>Example</h2>
8888
$pdf-&gt;Cell(20,10,'Title',1,1,'C');</code></pre>
8989
</div>
9090
<h2>See also</h2>
91-
<a href="setfont.htm">SetFont()</a>,
92-
<a href="setdrawcolor.htm">SetDrawColor()</a>,
93-
<a href="setfillcolor.htm">SetFillColor()</a>,
94-
<a href="settextcolor.htm">SetTextColor()</a>,
95-
<a href="setlinewidth.htm">SetLineWidth()</a>,
96-
<a href="addlink.htm">AddLink()</a>,
97-
<a href="ln.htm">Ln()</a>,
98-
<a href="multicell.htm">MultiCell()</a>,
99-
<a href="write.htm">Write()</a>,
100-
<a href="setautopagebreak.htm">SetAutoPageBreak()</a>.
91+
<a href="setfont.htm">SetFont</a>,
92+
<a href="setdrawcolor.htm">SetDrawColor</a>,
93+
<a href="setfillcolor.htm">SetFillColor</a>,
94+
<a href="settextcolor.htm">SetTextColor</a>,
95+
<a href="setlinewidth.htm">SetLineWidth</a>,
96+
<a href="addlink.htm">AddLink</a>,
97+
<a href="ln.htm">Ln</a>,
98+
<a href="multicell.htm">MultiCell</a>,
99+
<a href="write.htm">Write</a>,
100+
<a href="setautopagebreak.htm">SetAutoPageBreak</a>
101101
<hr style="margin-top:1.5em">
102102
<div style="text-align:center"><a href="index.htm">Index</a></div>
103103
</body>

0 commit comments

Comments
 (0)