Änderungen https Andy Müller rückgängig gemacht
This commit is contained in:
parent
02c150b5f6
commit
aa11420ec4
Binary file not shown.
Binary file not shown.
@ -194,7 +194,7 @@ Header('Pragma: public');
|
|||||||
|
|
||||||
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
||||||
When the decimal separator is configured as a comma before including a file, there is a
|
When the decimal separator is configured as a comma before including a file, there is a
|
||||||
<A HREF="https://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
||||||
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
||||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||||
setlocale() call.
|
setlocale() call.
|
||||||
@ -270,20 +270,20 @@ Remark: even when the browser goes in time-out, the script may continue to run o
|
|||||||
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
||||||
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://fpdi.setasign.de" TARGET="_blank">https://fpdi.setasign.de</A>
|
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
|
||||||
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
||||||
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
||||||
a PDF. It is provided with the Xpdf package:<BR>
|
a PDF. It is provided with the Xpdf package:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.foolabs.com/xpdf/" TARGET="_blank">https://www.foolabs.com/xpdf/</A>
|
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
|
||||||
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
||||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.easysw.com/htmldoc/" TARGET="_blank">https://www.easysw.com/htmldoc/</A>
|
<A HREF="http://www.easysw.com/htmldoc/" TARGET="_blank">http://www.easysw.com/htmldoc/</A>
|
||||||
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
||||||
No. But some free tools exist to perform this task:<BR>
|
No. But some free tools exist to perform this task:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
||||||
<A HREF="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
https://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
php|architect by Marco Tabini.
|
php|architect by Marco Tabini.
|
||||||
|
|
||||||
This software contains code derived from Oliver Plathey - The author of
|
This software contains code derived from Oliver Plathey - The author of
|
||||||
FPDF. FPDF is available from: https://www.fpdf.org
|
FPDF. FPDF is available from: http://www.fpdf.org
|
||||||
|
|
||||||
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
||||||
https://www.lowagie.com/iText/
|
http://www.lowagie.com/iText/
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -38,7 +38,7 @@ $pdf->Write(5,'Visit ');<BR>
|
|||||||
//Then put a blue underlined link<BR>
|
//Then put a blue underlined link<BR>
|
||||||
$pdf->SetTextColor(0,0,255);<BR>
|
$pdf->SetTextColor(0,0,255);<BR>
|
||||||
$pdf->SetFont('','U');<BR>
|
$pdf->SetFont('','U');<BR>
|
||||||
$pdf->Write(5,'www.fpdf.org','https://www.fpdf.org');
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');
|
||||||
</TT>
|
</TT>
|
||||||
</TD></TR></TABLE><BR>
|
</TD></TR></TABLE><BR>
|
||||||
<H4 CLASS='st'>See also</H4>
|
<H4 CLASS='st'>See also</H4>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -194,7 +194,7 @@ Header('Pragma: public');
|
|||||||
|
|
||||||
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
||||||
When the decimal separator is configured as a comma before including a file, there is a
|
When the decimal separator is configured as a comma before including a file, there is a
|
||||||
<A HREF="https://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
||||||
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
||||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||||
setlocale() call.
|
setlocale() call.
|
||||||
@ -270,20 +270,20 @@ Remark: even when the browser goes in time-out, the script may continue to run o
|
|||||||
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
||||||
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://fpdi.setasign.de" TARGET="_blank">https://fpdi.setasign.de</A>
|
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
|
||||||
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
||||||
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
||||||
a PDF. It is provided with the Xpdf package:<BR>
|
a PDF. It is provided with the Xpdf package:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.foolabs.com/xpdf/" TARGET="_blank">https://www.foolabs.com/xpdf/</A>
|
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
|
||||||
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
||||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.easysw.com/htmldoc/" TARGET="_blank">https://www.easysw.com/htmldoc/</A>
|
<A HREF="http://www.easysw.com/htmldoc/" TARGET="_blank">http://www.easysw.com/htmldoc/</A>
|
||||||
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
||||||
No. But some free tools exist to perform this task:<BR>
|
No. But some free tools exist to perform this task:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
||||||
<A HREF="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
https://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
php|architect by Marco Tabini.
|
php|architect by Marco Tabini.
|
||||||
|
|
||||||
This software contains code derived from Oliver Plathey - The author of
|
This software contains code derived from Oliver Plathey - The author of
|
||||||
FPDF. FPDF is available from: https://www.fpdf.org
|
FPDF. FPDF is available from: http://www.fpdf.org
|
||||||
|
|
||||||
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
||||||
https://www.lowagie.com/iText/
|
http://www.lowagie.com/iText/
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -38,7 +38,7 @@ $pdf->Write(5,'Visit ');<BR>
|
|||||||
//Then put a blue underlined link<BR>
|
//Then put a blue underlined link<BR>
|
||||||
$pdf->SetTextColor(0,0,255);<BR>
|
$pdf->SetTextColor(0,0,255);<BR>
|
||||||
$pdf->SetFont('','U');<BR>
|
$pdf->SetFont('','U');<BR>
|
||||||
$pdf->Write(5,'www.fpdf.org','https://www.fpdf.org');
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');
|
||||||
</TT>
|
</TT>
|
||||||
</TD></TR></TABLE><BR>
|
</TD></TR></TABLE><BR>
|
||||||
<H4 CLASS='st'>See also</H4>
|
<H4 CLASS='st'>See also</H4>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Binary file not shown.
@ -194,7 +194,7 @@ Header('Pragma: public');
|
|||||||
|
|
||||||
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
||||||
When the decimal separator is configured as a comma before including a file, there is a
|
When the decimal separator is configured as a comma before including a file, there is a
|
||||||
<A HREF="https://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
||||||
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
||||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||||
setlocale() call.
|
setlocale() call.
|
||||||
@ -270,20 +270,20 @@ Remark: even when the browser goes in time-out, the script may continue to run o
|
|||||||
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
||||||
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://fpdi.setasign.de" TARGET="_blank">https://fpdi.setasign.de</A>
|
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
|
||||||
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
||||||
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
||||||
a PDF. It is provided with the Xpdf package:<BR>
|
a PDF. It is provided with the Xpdf package:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.foolabs.com/xpdf/" TARGET="_blank">https://www.foolabs.com/xpdf/</A>
|
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
|
||||||
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
||||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.easysw.com/htmldoc/" TARGET="_blank">https://www.easysw.com/htmldoc/</A>
|
<A HREF="http://www.easysw.com/htmldoc/" TARGET="_blank">http://www.easysw.com/htmldoc/</A>
|
||||||
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
||||||
No. But some free tools exist to perform this task:<BR>
|
No. But some free tools exist to perform this task:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
||||||
<A HREF="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
https://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
php|architect by Marco Tabini.
|
php|architect by Marco Tabini.
|
||||||
|
|
||||||
This software contains code derived from Oliver Plathey - The author of
|
This software contains code derived from Oliver Plathey - The author of
|
||||||
FPDF. FPDF is available from: https://www.fpdf.org
|
FPDF. FPDF is available from: http://www.fpdf.org
|
||||||
|
|
||||||
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
||||||
https://www.lowagie.com/iText/
|
http://www.lowagie.com/iText/
|
@ -3,21 +3,21 @@
|
|||||||
__________ *********
|
__________ *********
|
||||||
Thanks to:
|
Thanks to:
|
||||||
¯¯¯¯¯¯¯¯¯¯
|
¯¯¯¯¯¯¯¯¯¯
|
||||||
-Olivier Plathey for the fpdf.php class [https://www.fpdf.org]
|
-Olivier Plathey for the fpdf.php class [http://www.fpdf.org]
|
||||||
-Damon Kohler for the Flowing Block script [mailto:damonkohler@yahoo.com]
|
-Damon Kohler for the Flowing Block script [mailto:damonkohler@yahoo.com]
|
||||||
-Clément Lavoillotte for HTML-oriented FPDF idea
|
-Clément Lavoillotte for HTML-oriented FPDF idea
|
||||||
-Yamasoft for the gif.php class [https://www.yamasoft.com/]
|
-Yamasoft for the gif.php class [http://www.yamasoft.com/]
|
||||||
-Jérôme Fenal for the _parsegif() function
|
-Jérôme Fenal for the _parsegif() function
|
||||||
-"VIETCOM" for the PDFTable code [https://www.freepgs.com/vietcom/tool/pdftable/] [mailto:vncommando@yahoo.com]
|
-"VIETCOM" for the PDFTable code [http://www.freepgs.com/vietcom/tool/pdftable/] [mailto:vncommando@yahoo.com]
|
||||||
-Yukihiro O. for the SetDash() function [mailto:yukihiro_o@infoseek.jp]
|
-Yukihiro O. for the SetDash() function [mailto:yukihiro_o@infoseek.jp]
|
||||||
-Ron Korving for the WordWrap() function
|
-Ron Korving for the WordWrap() function
|
||||||
-Michel Poulain for the DisplayPreferences() function
|
-Michel Poulain for the DisplayPreferences() function
|
||||||
-Patrick Benny for the MultiCellBlt() function idea [no longer in use]
|
-Patrick Benny for the MultiCellBlt() function idea [no longer in use]
|
||||||
-Seb for the _SetTextRendering() and SetTextOutline() functions [mailto:captainseb@wanadoo.fr]
|
-Seb for the _SetTextRendering() and SetTextOutline() functions [mailto:captainseb@wanadoo.fr]
|
||||||
-MorphSoft for the colornames list idea
|
-MorphSoft for the colornames list idea
|
||||||
-W3SCHOOLS for HTML-related reference info [https://www.w3schools.com/]
|
-W3SCHOOLS for HTML-related reference info [http://www.w3schools.com/]
|
||||||
__________________
|
__________________
|
||||||
Special Thanks to:
|
Special Thanks to:
|
||||||
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||||
--- Montfort Cultural Association - the site for which I generated this script [https://www.montfort.org.br]
|
--- Montfort Cultural Association - the site for which I generated this script [http://www.montfort.org.br]
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -38,7 +38,7 @@ $pdf->Write(5,'Visit ');<BR>
|
|||||||
//Then put a blue underlined link<BR>
|
//Then put a blue underlined link<BR>
|
||||||
$pdf->SetTextColor(0,0,255);<BR>
|
$pdf->SetTextColor(0,0,255);<BR>
|
||||||
$pdf->SetFont('','U');<BR>
|
$pdf->SetFont('','U');<BR>
|
||||||
$pdf->Write(5,'www.fpdf.org','https://www.fpdf.org');
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');
|
||||||
</TT>
|
</TT>
|
||||||
</TD></TR></TABLE><BR>
|
</TD></TR></TABLE><BR>
|
||||||
<H4 CLASS='st'>See also</H4>
|
<H4 CLASS='st'>See also</H4>
|
||||||
|
@ -31,7 +31,7 @@ $ttxt[2] = "<p>
|
|||||||
<t3>Description</t3>
|
<t3>Description</t3>
|
||||||
|
|
||||||
\tThis method allows printing <t4><TAG></t4> formatted text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the <pb>\\n</pb> character). As many cells as necessary are output, one below the other.
|
\tThis method allows printing <t4><TAG></t4> formatted text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the <pb>\\n</pb> character). As many cells as necessary are output, one below the other.
|
||||||
Text can be <hh>aligned</hh>, <hh>cente~~~red</hh> or <hh>justified</hh>. Different <font>Font</font>, <size>Sizes</size>, <style>Styles</style>, <color>Colors</color> can be used. The cell block can be framed and the background painted. The behavior/paramaters of the method are the same as to the <t2 href='https://www.fpdf.org/en/doc/multicell.htm'>FPDF Multicell method</t2>. <style href='www.fpdf.org'>Links</style> can be used in any tag.
|
Text can be <hh>aligned</hh>, <hh>cente~~~red</hh> or <hh>justified</hh>. Different <font>Font</font>, <size>Sizes</size>, <style>Styles</style>, <color>Colors</color> can be used. The cell block can be framed and the background painted. The behavior/paramaters of the method are the same as to the <t2 href='http://www.fpdf.org/en/doc/multicell.htm'>FPDF Multicell method</t2>. <style href='www.fpdf.org'>Links</style> can be used in any tag.
|
||||||
\t<t4>TAB</t4> spaces (<pb>\\t</pb>) can be used. The <t4>ttags</t4> tag name is reserved for the TAB SPACES.
|
\t<t4>TAB</t4> spaces (<pb>\\t</pb>) can be used. The <t4>ttags</t4> tag name is reserved for the TAB SPACES.
|
||||||
\tVariable Y relative positions can be used for <ss ypos='-0.8'>Subscript</ss> or <ss ypos='1.1'>Superscript</ss>.</p>
|
\tVariable Y relative positions can be used for <ss ypos='-0.8'>Subscript</ss> or <ss ypos='1.1'>Superscript</ss>.</p>
|
||||||
<style>
|
<style>
|
||||||
|
@ -2209,7 +2209,7 @@ function _parsepng($file)
|
|||||||
function _parsegif($file) //EDITEI - GIF support is now included
|
function _parsegif($file) //EDITEI - GIF support is now included
|
||||||
{
|
{
|
||||||
//Function by Jérôme Fenal
|
//Function by Jérôme Fenal
|
||||||
require_once(RELATIVE_PATH.'gif.php'); //GIF class in pure PHP from Yamasoft (https://www.yamasoft.com/php-gif.zip)
|
require_once(RELATIVE_PATH.'gif.php'); //GIF class in pure PHP from Yamasoft (http://www.yamasoft.com/php-gif.zip)
|
||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$w=0;
|
$w=0;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?
|
<?
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// GIF Util - (C) 2003 Yamasoft (S/C)
|
// GIF Util - (C) 2003 Yamasoft (S/C)
|
||||||
// https://www.yamasoft.com
|
// http://www.yamasoft.com
|
||||||
// All Rights Reserved
|
// All Rights Reserved
|
||||||
// This file can be frelly copied, distributed, modified, updated by anyone under the only
|
// This file can be frelly copied, distributed, modified, updated by anyone under the only
|
||||||
// condition to leave the original address (Yamasoft, https://www.yamasoft.com) and this header.
|
// condition to leave the original address (Yamasoft, http://www.yamasoft.com) and this header.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// <gif> = gif_loadFile(filename, [index])
|
// <gif> = gif_loadFile(filename, [index])
|
||||||
// <bool> = gif_getSize(<gif> or filename, &width, &height)
|
// <bool> = gif_getSize(<gif> or filename, &width, &height)
|
||||||
|
@ -23,7 +23,7 @@ These 2 attributes do the same thing?!?:
|
|||||||
TODO (in the future...):
|
TODO (in the future...):
|
||||||
- Make font-family, font-size, lineheight customizable
|
- Make font-family, font-size, lineheight customizable
|
||||||
- Increase number of HTML/CSS tags/properties, Image/Font Types, recognized/supported
|
- Increase number of HTML/CSS tags/properties, Image/Font Types, recognized/supported
|
||||||
- allow BMP support? (tried with https://phpthumb.sourceforge.net/ but failed)
|
- allow BMP support? (tried with http://phpthumb.sourceforge.net/ but failed)
|
||||||
- Improve CSS support
|
- Improve CSS support
|
||||||
- support image side-by-side or one-below-another or both?
|
- support image side-by-side or one-below-another or both?
|
||||||
- Improve code clarity even more (modularize and get better var names like on textbuffer array's indexes for example)
|
- Improve code clarity even more (modularize and get better var names like on textbuffer array's indexes for example)
|
||||||
@ -231,7 +231,7 @@ function HTML2FPDF($orientation='P',$unit='mm',$format='A4')
|
|||||||
|
|
||||||
function setBasePath($str)
|
function setBasePath($str)
|
||||||
{
|
{
|
||||||
//! @desc Inform the script where the html file is (full path - e.g. https://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
//! @desc Inform the script where the html file is (full path - e.g. http://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
||||||
//! @return void
|
//! @return void
|
||||||
$this->basepath = dirname($str) . "/";
|
$this->basepath = dirname($str) . "/";
|
||||||
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
||||||
@ -675,7 +675,7 @@ function OpenTag($tag,$attr)
|
|||||||
case 'H4': // 1 * fontsize
|
case 'H4': // 1 * fontsize
|
||||||
case 'H5': // 0.83 * fontsize
|
case 'H5': // 0.83 * fontsize
|
||||||
case 'H6': // 0.67 * fontsize
|
case 'H6': // 0.67 * fontsize
|
||||||
//Values obtained from: https://www.w3.org/TR/REC-CSS2/sample.html
|
//Values obtained from: http://www.w3.org/TR/REC-CSS2/sample.html
|
||||||
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
||||||
$this->buffer_on = true;
|
$this->buffer_on = true;
|
||||||
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
||||||
@ -2158,7 +2158,7 @@ function ReadMetaTags($html)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Comercial do Aplicativo usado (no caso um script):
|
//Comercial do Aplicativo usado (no caso um script):
|
||||||
$this->SetCreator("HTML2FPDF >> https://html2fpdf.sf.net");
|
$this->SetCreator("HTML2FPDF >> http://html2fpdf.sf.net");
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
@ -2355,7 +2355,7 @@ function setCSS($arrayaux)
|
|||||||
$v = strtoupper($v);
|
$v = strtoupper($v);
|
||||||
switch($v)
|
switch($v)
|
||||||
{
|
{
|
||||||
//Values obtained from https://www.w3schools.com/html/html_reference.asp
|
//Values obtained from http://www.w3schools.com/html/html_reference.asp
|
||||||
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
||||||
break;
|
break;
|
||||||
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
||||||
@ -2627,7 +2627,7 @@ function _tableWidth(&$table){
|
|||||||
{
|
{
|
||||||
if (!count($list))
|
if (!count($list))
|
||||||
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
||||||
//https://www.ksvn.com/anhviet_new.htm - translating comments...
|
//http://www.ksvn.com/anhviet_new.htm - translating comments...
|
||||||
//bent shrink essence move size measure automatic => divide against give as a whole
|
//bent shrink essence move size measure automatic => divide against give as a whole
|
||||||
//$wi = $table['w'] - $wis;
|
//$wi = $table['w'] - $wis;
|
||||||
$wi = ($table['w'] - $wis)/$numcols;
|
$wi = ($table['w'] - $wis)/$numcols;
|
||||||
|
@ -11,7 +11,7 @@ function ConvertColor($color="#000000"){
|
|||||||
//static $common_colors = array('black'=>'#000000','silver'=>'#C0C0C0','gray'=>'#808080', 'white'=>'#FFFFFF','maroon'=>'#800000','red'=>'#FF0000','purple'=>'#800080','fuchsia'=>'#FF00FF','green'=>'#008000','lime'=>'#00FF00','olive'=>'#808000','yellow'=>'#FFFF00','navy'=>'#000080', 'blue'=>'#0000FF','teal'=>'#008080','aqua'=>'#00FFFF');
|
//static $common_colors = array('black'=>'#000000','silver'=>'#C0C0C0','gray'=>'#808080', 'white'=>'#FFFFFF','maroon'=>'#800000','red'=>'#FF0000','purple'=>'#800080','fuchsia'=>'#FF00FF','green'=>'#008000','lime'=>'#00FF00','olive'=>'#808000','yellow'=>'#FFFF00','navy'=>'#000080', 'blue'=>'#0000FF','teal'=>'#008080','aqua'=>'#00FFFF');
|
||||||
//All color names array
|
//All color names array
|
||||||
static $common_colors = array('antiquewhite'=>'#FAEBD7','aquamarine'=>'#7FFFD4','beige'=>'#F5F5DC','black'=>'#000000','blue'=>'#0000FF','brown'=>'#A52A2A','cadetblue'=>'#5F9EA0','chocolate'=>'#D2691E','cornflowerblue'=>'#6495ED','crimson'=>'#DC143C','darkblue'=>'#00008B','darkgoldenrod'=>'#B8860B','darkgreen'=>'#006400','darkmagenta'=>'#8B008B','darkorange'=>'#FF8C00','darkred'=>'#8B0000','darkseagreen'=>'#8FBC8F','darkslategray'=>'#2F4F4F','darkviolet'=>'#9400D3','deepskyblue'=>'#00BFFF','dodgerblue'=>'#1E90FF','firebrick'=>'#B22222','forestgreen'=>'#228B22','gainsboro'=>'#DCDCDC','gold'=>'#FFD700','gray'=>'#808080','green'=>'#008000','greenyellow'=>'#ADFF2F','hotpink'=>'#FF69B4','indigo'=>'#4B0082','khaki'=>'#F0E68C','lavenderblush'=>'#FFF0F5','lemonchiffon'=>'#FFFACD','lightcoral'=>'#F08080','lightgoldenrodyellow'=>'#FAFAD2','lightgreen'=>'#90EE90','lightsalmon'=>'#FFA07A','lightskyblue'=>'#87CEFA','lightslategray'=>'#778899','lightyellow'=>'#FFFFE0','limegreen'=>'#32CD32','magenta'=>'#FF00FF','mediumaquamarine'=>'#66CDAA','mediumorchid'=>'#BA55D3','mediumseagreen'=>'#3CB371','mediumspringgreen'=>'#00FA9A','mediumvioletred'=>'#C71585','mintcream'=>'#F5FFFA','moccasin'=>'#FFE4B5','navy'=>'#000080','olive'=>'#808000','orange'=>'#FFA500','orchid'=>'#DA70D6','palegreen'=>'#98FB98','palevioletred'=>'#D87093','peachpuff'=>'#FFDAB9','pink'=>'#FFC0CB','powderblue'=>'#B0E0E6','red'=>'#FF0000','royalblue'=>'#4169E1','salmon'=>'#FA8072','seagreen'=>'#2E8B57','sienna'=>'#A0522D','skyblue'=>'#87CEEB','slategray'=>'#708090','springgreen'=>'#00FF7F','tan'=>'#D2B48C','thistle'=>'#D8BFD8','turquoise'=>'#40E0D0','violetred'=>'#D02090','white'=>'#FFFFFF','yellow'=>'#FFFF00');
|
static $common_colors = array('antiquewhite'=>'#FAEBD7','aquamarine'=>'#7FFFD4','beige'=>'#F5F5DC','black'=>'#000000','blue'=>'#0000FF','brown'=>'#A52A2A','cadetblue'=>'#5F9EA0','chocolate'=>'#D2691E','cornflowerblue'=>'#6495ED','crimson'=>'#DC143C','darkblue'=>'#00008B','darkgoldenrod'=>'#B8860B','darkgreen'=>'#006400','darkmagenta'=>'#8B008B','darkorange'=>'#FF8C00','darkred'=>'#8B0000','darkseagreen'=>'#8FBC8F','darkslategray'=>'#2F4F4F','darkviolet'=>'#9400D3','deepskyblue'=>'#00BFFF','dodgerblue'=>'#1E90FF','firebrick'=>'#B22222','forestgreen'=>'#228B22','gainsboro'=>'#DCDCDC','gold'=>'#FFD700','gray'=>'#808080','green'=>'#008000','greenyellow'=>'#ADFF2F','hotpink'=>'#FF69B4','indigo'=>'#4B0082','khaki'=>'#F0E68C','lavenderblush'=>'#FFF0F5','lemonchiffon'=>'#FFFACD','lightcoral'=>'#F08080','lightgoldenrodyellow'=>'#FAFAD2','lightgreen'=>'#90EE90','lightsalmon'=>'#FFA07A','lightskyblue'=>'#87CEFA','lightslategray'=>'#778899','lightyellow'=>'#FFFFE0','limegreen'=>'#32CD32','magenta'=>'#FF00FF','mediumaquamarine'=>'#66CDAA','mediumorchid'=>'#BA55D3','mediumseagreen'=>'#3CB371','mediumspringgreen'=>'#00FA9A','mediumvioletred'=>'#C71585','mintcream'=>'#F5FFFA','moccasin'=>'#FFE4B5','navy'=>'#000080','olive'=>'#808000','orange'=>'#FFA500','orchid'=>'#DA70D6','palegreen'=>'#98FB98','palevioletred'=>'#D87093','peachpuff'=>'#FFDAB9','pink'=>'#FFC0CB','powderblue'=>'#B0E0E6','red'=>'#FF0000','royalblue'=>'#4169E1','salmon'=>'#FA8072','seagreen'=>'#2E8B57','sienna'=>'#A0522D','skyblue'=>'#87CEEB','slategray'=>'#708090','springgreen'=>'#00FF7F','tan'=>'#D2B48C','thistle'=>'#D8BFD8','turquoise'=>'#40E0D0','violetred'=>'#D02090','white'=>'#FFFFFF','yellow'=>'#FFFF00');
|
||||||
//https://www.w3schools.com/css/css_colornames.asp
|
//http://www.w3schools.com/css/css_colornames.asp
|
||||||
if ( ($color{0} != '#') and ( strstr($color,'(') === false ) ) $color = $common_colors[strtolower($color)];
|
if ( ($color{0} != '#') and ( strstr($color,'(') === false ) ) $color = $common_colors[strtolower($color)];
|
||||||
|
|
||||||
if ($color{0} == '#') //case of #nnnnnn or #nnn
|
if ($color{0} == '#') //case of #nnnnnn or #nnn
|
||||||
|
@ -18,7 +18,7 @@ H2 {color:#4000A0}
|
|||||||
<LI>The style can be overriden for every cell
|
<LI>The style can be overriden for every cell
|
||||||
<LI>Columns can be spanned
|
<LI>Columns can be spanned
|
||||||
<LI>The cell content wraps if necessary
|
<LI>The cell content wraps if necessary
|
||||||
<LI>Every cell has the <A HREF='https://www.fpdf.org/?go=script&id=81' TARGET='_blank'>MultiCellTag</A> method functionality
|
<LI>Every cell has the <A HREF='http://www.fpdf.org/?go=script&id=81' TARGET='_blank'>MultiCellTag</A> method functionality
|
||||||
</UL>
|
</UL>
|
||||||
See the class and example for details on the methods and parameters.
|
See the class and example for details on the methods and parameters.
|
||||||
</BODY>
|
</BODY>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
More info can be found on the site: [https://html2fpdf.sourceforge.net]
|
More info can be found on the site: [http://html2fpdf.sourceforge.net]
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
############## DO NOT MODIFY THE CONTENTS OF THIS BOX ########################
|
############## DO NOT MODIFY THE CONTENTS OF THIS BOX ########################
|
||||||
@ -21,4 +21,4 @@ This library is distributed in the hope that it will be useful,
|
|||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
Lesser General Public License for more details.
|
Lesser General Public License for more details.
|
||||||
[https://www.opensource.org/licenses/lgpl-license.php]
|
[http://www.opensource.org/licenses/lgpl-license.php]
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
@ -824,7 +824,7 @@ class own2 extends own {
|
|||||||
|
|
||||||
// Bis hierher fpdi, die letzte Klasse von fpdi, wird der ersten Klasse von Table vererbt:
|
// Bis hierher fpdi, die letzte Klasse von fpdi, wird der ersten Klasse von Table vererbt:
|
||||||
// --> extends own2 hieß ursprünglich extends fpdf. fpdf ist die erste vererbung ganz oben
|
// --> extends own2 hieß ursprünglich extends fpdf. fpdf ist die erste vererbung ganz oben
|
||||||
// daher ist hier die schnittstelle, wo man die zwei Pakete vererben kann: https://www.cix88.de/cix_fpdf/fpdf_allgemein/cix_tut_052.php
|
// daher ist hier die schnittstelle, wo man die zwei Pakete vererben kann: http://www.cix88.de/cix_fpdf/fpdf_allgemein/cix_tut_052.php
|
||||||
|
|
||||||
|
|
||||||
require_once("class.string_tags.php");
|
require_once("class.string_tags.php");
|
||||||
@ -2241,7 +2241,7 @@ function HTML2FPDF($orientation='P',$unit='mm',$format='A4')
|
|||||||
|
|
||||||
function setBasePath($str)
|
function setBasePath($str)
|
||||||
{
|
{
|
||||||
//! @desc Inform the script where the html file is (full path - e.g. https://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
//! @desc Inform the script where the html file is (full path - e.g. http://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
||||||
//! @return void
|
//! @return void
|
||||||
$this->basepath = dirname($str) . "/";
|
$this->basepath = dirname($str) . "/";
|
||||||
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
||||||
@ -2685,7 +2685,7 @@ function OpenTag($tag,$attr)
|
|||||||
case 'H4': // 1 * fontsize
|
case 'H4': // 1 * fontsize
|
||||||
case 'H5': // 0.83 * fontsize
|
case 'H5': // 0.83 * fontsize
|
||||||
case 'H6': // 0.67 * fontsize
|
case 'H6': // 0.67 * fontsize
|
||||||
//Values obtained from: https://www.w3.org/TR/REC-CSS2/sample.html
|
//Values obtained from: http://www.w3.org/TR/REC-CSS2/sample.html
|
||||||
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
||||||
$this->buffer_on = true;
|
$this->buffer_on = true;
|
||||||
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
||||||
@ -4168,7 +4168,7 @@ function ReadMetaTags($html)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Comercial do Aplicativo usado (no caso um script):
|
//Comercial do Aplicativo usado (no caso um script):
|
||||||
$this->SetCreator("HTML2FPDF >> https://html2fpdf.sf.net");
|
$this->SetCreator("HTML2FPDF >> http://html2fpdf.sf.net");
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
@ -4365,7 +4365,7 @@ function setCSS($arrayaux)
|
|||||||
$v = strtoupper($v);
|
$v = strtoupper($v);
|
||||||
switch($v)
|
switch($v)
|
||||||
{
|
{
|
||||||
//Values obtained from https://www.w3schools.com/html/html_reference.asp
|
//Values obtained from http://www.w3schools.com/html/html_reference.asp
|
||||||
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
||||||
break;
|
break;
|
||||||
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
||||||
@ -4637,7 +4637,7 @@ function _tableWidth(&$table){
|
|||||||
{
|
{
|
||||||
if (!count($list))
|
if (!count($list))
|
||||||
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
||||||
//https://www.ksvn.com/anhviet_new.htm - translating comments...
|
//http://www.ksvn.com/anhviet_new.htm - translating comments...
|
||||||
//bent shrink essence move size measure automatic => divide against give as a whole
|
//bent shrink essence move size measure automatic => divide against give as a whole
|
||||||
//$wi = $table['w'] - $wis;
|
//$wi = $table['w'] - $wis;
|
||||||
$wi = ($table['w'] - $wis)/$numcols;
|
$wi = ($table['w'] - $wis)/$numcols;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Binary file not shown.
@ -194,7 +194,7 @@ Header('Pragma: public');
|
|||||||
|
|
||||||
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
||||||
When the decimal separator is configured as a comma before including a file, there is a
|
When the decimal separator is configured as a comma before including a file, there is a
|
||||||
<A HREF="https://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
||||||
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
||||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||||
setlocale() call.
|
setlocale() call.
|
||||||
@ -270,20 +270,20 @@ Remark: even when the browser goes in time-out, the script may continue to run o
|
|||||||
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
||||||
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://fpdi.setasign.de" TARGET="_blank">https://fpdi.setasign.de</A>
|
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
|
||||||
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
||||||
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
||||||
a PDF. It is provided with the Xpdf package:<BR>
|
a PDF. It is provided with the Xpdf package:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.foolabs.com/xpdf/" TARGET="_blank">https://www.foolabs.com/xpdf/</A>
|
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
|
||||||
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
||||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.easysw.com/htmldoc/" TARGET="_blank">https://www.easysw.com/htmldoc/</A>
|
<A HREF="http://www.easysw.com/htmldoc/" TARGET="_blank">http://www.easysw.com/htmldoc/</A>
|
||||||
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
||||||
No. But some free tools exist to perform this task:<BR>
|
No. But some free tools exist to perform this task:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
||||||
<A HREF="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
https://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
php|architect by Marco Tabini.
|
php|architect by Marco Tabini.
|
||||||
|
|
||||||
This software contains code derived from Oliver Plathey - The author of
|
This software contains code derived from Oliver Plathey - The author of
|
||||||
FPDF. FPDF is available from: https://www.fpdf.org
|
FPDF. FPDF is available from: http://www.fpdf.org
|
||||||
|
|
||||||
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
||||||
https://www.lowagie.com/iText/
|
http://www.lowagie.com/iText/
|
@ -3,21 +3,21 @@
|
|||||||
__________ *********
|
__________ *********
|
||||||
Thanks to:
|
Thanks to:
|
||||||
¯¯¯¯¯¯¯¯¯¯
|
¯¯¯¯¯¯¯¯¯¯
|
||||||
-Olivier Plathey for the fpdf.php class [https://www.fpdf.org]
|
-Olivier Plathey for the fpdf.php class [http://www.fpdf.org]
|
||||||
-Damon Kohler for the Flowing Block script [mailto:damonkohler@yahoo.com]
|
-Damon Kohler for the Flowing Block script [mailto:damonkohler@yahoo.com]
|
||||||
-Clément Lavoillotte for HTML-oriented FPDF idea
|
-Clément Lavoillotte for HTML-oriented FPDF idea
|
||||||
-Yamasoft for the gif.php class [https://www.yamasoft.com/]
|
-Yamasoft for the gif.php class [http://www.yamasoft.com/]
|
||||||
-Jérôme Fenal for the _parsegif() function
|
-Jérôme Fenal for the _parsegif() function
|
||||||
-"VIETCOM" for the PDFTable code [https://www.freepgs.com/vietcom/tool/pdftable/] [mailto:vncommando@yahoo.com]
|
-"VIETCOM" for the PDFTable code [http://www.freepgs.com/vietcom/tool/pdftable/] [mailto:vncommando@yahoo.com]
|
||||||
-Yukihiro O. for the SetDash() function [mailto:yukihiro_o@infoseek.jp]
|
-Yukihiro O. for the SetDash() function [mailto:yukihiro_o@infoseek.jp]
|
||||||
-Ron Korving for the WordWrap() function
|
-Ron Korving for the WordWrap() function
|
||||||
-Michel Poulain for the DisplayPreferences() function
|
-Michel Poulain for the DisplayPreferences() function
|
||||||
-Patrick Benny for the MultiCellBlt() function idea [no longer in use]
|
-Patrick Benny for the MultiCellBlt() function idea [no longer in use]
|
||||||
-Seb for the _SetTextRendering() and SetTextOutline() functions [mailto:captainseb@wanadoo.fr]
|
-Seb for the _SetTextRendering() and SetTextOutline() functions [mailto:captainseb@wanadoo.fr]
|
||||||
-MorphSoft for the colornames list idea
|
-MorphSoft for the colornames list idea
|
||||||
-W3SCHOOLS for HTML-related reference info [https://www.w3schools.com/]
|
-W3SCHOOLS for HTML-related reference info [http://www.w3schools.com/]
|
||||||
__________________
|
__________________
|
||||||
Special Thanks to:
|
Special Thanks to:
|
||||||
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||||
--- Montfort Cultural Association - the site for which I generated this script [https://www.montfort.org.br]
|
--- Montfort Cultural Association - the site for which I generated this script [http://www.montfort.org.br]
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -89,7 +89,7 @@ URL or identifier returned by AddLink().
|
|||||||
<pre><code>// Insert a logo in the top-left corner at 300 dpi
|
<pre><code>// Insert a logo in the top-left corner at 300 dpi
|
||||||
$pdf->Image('logo.png',10,10,-300);
|
$pdf->Image('logo.png',10,10,-300);
|
||||||
// Insert a dynamic image from a URL
|
// Insert a dynamic image from a URL
|
||||||
$pdf->Image('https://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');</code></pre>
|
$pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<h2>See also</h2>
|
<h2>See also</h2>
|
||||||
<a href="addlink.htm">AddLink</a>
|
<a href="addlink.htm">AddLink</a>
|
||||||
|
@ -37,7 +37,7 @@ $pdf->Write(5,'Visit ');
|
|||||||
// Then put a blue underlined link
|
// Then put a blue underlined link
|
||||||
$pdf->SetTextColor(0,0,255);
|
$pdf->SetTextColor(0,0,255);
|
||||||
$pdf->SetFont('','U');
|
$pdf->SetFont('','U');
|
||||||
$pdf->Write(5,'www.fpdf.org','https://www.fpdf.org');</code></pre>
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<h2>See also</h2>
|
<h2>See also</h2>
|
||||||
<a href="setfont.htm">SetFont</a>,
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
BIN
prints2/ex.pdf
BIN
prints2/ex.pdf
Binary file not shown.
@ -31,7 +31,7 @@ $ttxt[2] = "<p>
|
|||||||
<t3>Description</t3>
|
<t3>Description</t3>
|
||||||
|
|
||||||
\tThis method allows printing <t4><TAG></t4> formatted text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the <pb>\\n</pb> character). As many cells as necessary are output, one below the other.
|
\tThis method allows printing <t4><TAG></t4> formatted text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the <pb>\\n</pb> character). As many cells as necessary are output, one below the other.
|
||||||
Text can be <hh>aligned</hh>, <hh>cente~~~red</hh> or <hh>justified</hh>. Different <font>Font</font>, <size>Sizes</size>, <style>Styles</style>, <color>Colors</color> can be used. The cell block can be framed and the background painted. The behavior/paramaters of the method are the same as to the <t2 href='https://www.fpdf.org/en/doc/multicell.htm'>FPDF Multicell method</t2>. <style href='www.fpdf.org'>Links</style> can be used in any tag.
|
Text can be <hh>aligned</hh>, <hh>cente~~~red</hh> or <hh>justified</hh>. Different <font>Font</font>, <size>Sizes</size>, <style>Styles</style>, <color>Colors</color> can be used. The cell block can be framed and the background painted. The behavior/paramaters of the method are the same as to the <t2 href='http://www.fpdf.org/en/doc/multicell.htm'>FPDF Multicell method</t2>. <style href='www.fpdf.org'>Links</style> can be used in any tag.
|
||||||
\t<t4>TAB</t4> spaces (<pb>\\t</pb>) can be used. The <t4>ttags</t4> tag name is reserved for the TAB SPACES.
|
\t<t4>TAB</t4> spaces (<pb>\\t</pb>) can be used. The <t4>ttags</t4> tag name is reserved for the TAB SPACES.
|
||||||
\tVariable Y relative positions can be used for <ss ypos='-0.8'>Subscript</ss> or <ss ypos='1.1'>Superscript</ss>.</p>
|
\tVariable Y relative positions can be used for <ss ypos='-0.8'>Subscript</ss> or <ss ypos='1.1'>Superscript</ss>.</p>
|
||||||
<style>
|
<style>
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -293,8 +293,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* See FPDF/TCPDF documentation.
|
* See FPDF/TCPDF documentation.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/setfont.htm
|
* @see http://fpdf.org/en/doc/setfont.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#afd56e360c43553830d543323e81bc045
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#afd56e360c43553830d543323e81bc045
|
||||||
*/
|
*/
|
||||||
public function SetFont($family, $style = '', $size = null, $fontfile = '', $subset = 'default', $out = true)
|
public function SetFont($family, $style = '', $size = null, $fontfile = '', $subset = 'default', $out = true)
|
||||||
{
|
{
|
||||||
@ -319,8 +319,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* See FPDF/TCPDF documentation.
|
* See FPDF/TCPDF documentation.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/image.htm
|
* @see http://fpdf.org/en/doc/image.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a714c2bee7d6b39d4d6d304540c761352
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a714c2bee7d6b39d4d6d304540c761352
|
||||||
*/
|
*/
|
||||||
public function Image(
|
public function Image(
|
||||||
$file, $x = '', $y = '', $w = 0, $h = 0, $type = '', $link = '', $align = '', $resize = false,
|
$file, $x = '', $y = '', $w = 0, $h = 0, $type = '', $link = '', $align = '', $resize = false,
|
||||||
@ -350,8 +350,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* This method cannot be used if you'd started a template.
|
* This method cannot be used if you'd started a template.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/addpage.htm
|
* @see http://fpdf.org/en/doc/addpage.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a5171e20b366b74523709d84c349c1ced
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a5171e20b366b74523709d84c349c1ced
|
||||||
*/
|
*/
|
||||||
public function AddPage($orientation = '', $format = '', $rotationOrKeepmargins = false, $tocpage = false)
|
public function AddPage($orientation = '', $format = '', $rotationOrKeepmargins = false, $tocpage = false)
|
||||||
{
|
{
|
||||||
@ -372,8 +372,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* Overwritten because adding links in a template will not work.
|
* Overwritten because adding links in a template will not work.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/link.htm
|
* @see http://fpdf.org/en/doc/link.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#ab87bf1826384fbfe30eb499d42f1d994
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ab87bf1826384fbfe30eb499d42f1d994
|
||||||
*/
|
*/
|
||||||
public function Link($x, $y, $w, $h, $link, $spaces = 0)
|
public function Link($x, $y, $w, $h, $link, $spaces = 0)
|
||||||
{
|
{
|
||||||
@ -394,8 +394,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* Overwritten because adding links in a template will not work.
|
* Overwritten because adding links in a template will not work.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/addlink.htm
|
* @see http://fpdf.org/en/doc/addlink.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a749522038ed7786c3e1701435dcb891e
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a749522038ed7786c3e1701435dcb891e
|
||||||
*/
|
*/
|
||||||
public function AddLink()
|
public function AddLink()
|
||||||
{
|
{
|
||||||
@ -416,8 +416,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* Overwritten because adding links in a template will not work.
|
* Overwritten because adding links in a template will not work.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/setlink.htm
|
* @see http://fpdf.org/en/doc/setlink.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#ace5be60e7857953ea5e2b89cb90df0ae
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ace5be60e7857953ea5e2b89cb90df0ae
|
||||||
*/
|
*/
|
||||||
public function SetLink($link, $y = 0, $page = -1)
|
public function SetLink($link, $y = 0, $page = -1)
|
||||||
{
|
{
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?
|
<?
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// GIF Util - (C) 2003 Yamasoft (S/C)
|
// GIF Util - (C) 2003 Yamasoft (S/C)
|
||||||
// https://www.yamasoft.com
|
// http://www.yamasoft.com
|
||||||
// All Rights Reserved
|
// All Rights Reserved
|
||||||
// This file can be frelly copied, distributed, modified, updated by anyone under the only
|
// This file can be frelly copied, distributed, modified, updated by anyone under the only
|
||||||
// condition to leave the original address (Yamasoft, https://www.yamasoft.com) and this header.
|
// condition to leave the original address (Yamasoft, http://www.yamasoft.com) and this header.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// <gif> = gif_loadFile(filename, [index])
|
// <gif> = gif_loadFile(filename, [index])
|
||||||
// <bool> = gif_getSize(<gif> or filename, &width, &height)
|
// <bool> = gif_getSize(<gif> or filename, &width, &height)
|
||||||
|
@ -23,7 +23,7 @@ These 2 attributes do the same thing?!?:
|
|||||||
TODO (in the future...):
|
TODO (in the future...):
|
||||||
- Make font-family, font-size, lineheight customizable
|
- Make font-family, font-size, lineheight customizable
|
||||||
- Increase number of HTML/CSS tags/properties, Image/Font Types, recognized/supported
|
- Increase number of HTML/CSS tags/properties, Image/Font Types, recognized/supported
|
||||||
- allow BMP support? (tried with https://phpthumb.sourceforge.net/ but failed)
|
- allow BMP support? (tried with http://phpthumb.sourceforge.net/ but failed)
|
||||||
- Improve CSS support
|
- Improve CSS support
|
||||||
- support image side-by-side or one-below-another or both?
|
- support image side-by-side or one-below-another or both?
|
||||||
- Improve code clarity even more (modularize and get better var names like on textbuffer array's indexes for example)
|
- Improve code clarity even more (modularize and get better var names like on textbuffer array's indexes for example)
|
||||||
@ -231,7 +231,7 @@ function HTML2FPDF($orientation='P',$unit='mm',$format='A4')
|
|||||||
|
|
||||||
function setBasePath($str)
|
function setBasePath($str)
|
||||||
{
|
{
|
||||||
//! @desc Inform the script where the html file is (full path - e.g. https://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
//! @desc Inform the script where the html file is (full path - e.g. http://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
||||||
//! @return void
|
//! @return void
|
||||||
$this->basepath = dirname($str) . "/";
|
$this->basepath = dirname($str) . "/";
|
||||||
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
||||||
@ -675,7 +675,7 @@ function OpenTag($tag,$attr)
|
|||||||
case 'H4': // 1 * fontsize
|
case 'H4': // 1 * fontsize
|
||||||
case 'H5': // 0.83 * fontsize
|
case 'H5': // 0.83 * fontsize
|
||||||
case 'H6': // 0.67 * fontsize
|
case 'H6': // 0.67 * fontsize
|
||||||
//Values obtained from: https://www.w3.org/TR/REC-CSS2/sample.html
|
//Values obtained from: http://www.w3.org/TR/REC-CSS2/sample.html
|
||||||
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
||||||
$this->buffer_on = true;
|
$this->buffer_on = true;
|
||||||
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
||||||
@ -2158,7 +2158,7 @@ function ReadMetaTags($html)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Comercial do Aplicativo usado (no caso um script):
|
//Comercial do Aplicativo usado (no caso um script):
|
||||||
$this->SetCreator("HTML2FPDF >> https://html2fpdf.sf.net");
|
$this->SetCreator("HTML2FPDF >> http://html2fpdf.sf.net");
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
@ -2355,7 +2355,7 @@ function setCSS($arrayaux)
|
|||||||
$v = strtoupper($v);
|
$v = strtoupper($v);
|
||||||
switch($v)
|
switch($v)
|
||||||
{
|
{
|
||||||
//Values obtained from https://www.w3schools.com/html/html_reference.asp
|
//Values obtained from http://www.w3schools.com/html/html_reference.asp
|
||||||
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
||||||
break;
|
break;
|
||||||
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
||||||
@ -2627,7 +2627,7 @@ function _tableWidth(&$table){
|
|||||||
{
|
{
|
||||||
if (!count($list))
|
if (!count($list))
|
||||||
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
||||||
//https://www.ksvn.com/anhviet_new.htm - translating comments...
|
//http://www.ksvn.com/anhviet_new.htm - translating comments...
|
||||||
//bent shrink essence move size measure automatic => divide against give as a whole
|
//bent shrink essence move size measure automatic => divide against give as a whole
|
||||||
//$wi = $table['w'] - $wis;
|
//$wi = $table['w'] - $wis;
|
||||||
$wi = ($table['w'] - $wis)/$numcols;
|
$wi = ($table['w'] - $wis)/$numcols;
|
||||||
|
@ -11,7 +11,7 @@ function ConvertColor($color="#000000"){
|
|||||||
//static $common_colors = array('black'=>'#000000','silver'=>'#C0C0C0','gray'=>'#808080', 'white'=>'#FFFFFF','maroon'=>'#800000','red'=>'#FF0000','purple'=>'#800080','fuchsia'=>'#FF00FF','green'=>'#008000','lime'=>'#00FF00','olive'=>'#808000','yellow'=>'#FFFF00','navy'=>'#000080', 'blue'=>'#0000FF','teal'=>'#008080','aqua'=>'#00FFFF');
|
//static $common_colors = array('black'=>'#000000','silver'=>'#C0C0C0','gray'=>'#808080', 'white'=>'#FFFFFF','maroon'=>'#800000','red'=>'#FF0000','purple'=>'#800080','fuchsia'=>'#FF00FF','green'=>'#008000','lime'=>'#00FF00','olive'=>'#808000','yellow'=>'#FFFF00','navy'=>'#000080', 'blue'=>'#0000FF','teal'=>'#008080','aqua'=>'#00FFFF');
|
||||||
//All color names array
|
//All color names array
|
||||||
static $common_colors = array('antiquewhite'=>'#FAEBD7','aquamarine'=>'#7FFFD4','beige'=>'#F5F5DC','black'=>'#000000','blue'=>'#0000FF','brown'=>'#A52A2A','cadetblue'=>'#5F9EA0','chocolate'=>'#D2691E','cornflowerblue'=>'#6495ED','crimson'=>'#DC143C','darkblue'=>'#00008B','darkgoldenrod'=>'#B8860B','darkgreen'=>'#006400','darkmagenta'=>'#8B008B','darkorange'=>'#FF8C00','darkred'=>'#8B0000','darkseagreen'=>'#8FBC8F','darkslategray'=>'#2F4F4F','darkviolet'=>'#9400D3','deepskyblue'=>'#00BFFF','dodgerblue'=>'#1E90FF','firebrick'=>'#B22222','forestgreen'=>'#228B22','gainsboro'=>'#DCDCDC','gold'=>'#FFD700','gray'=>'#808080','green'=>'#008000','greenyellow'=>'#ADFF2F','hotpink'=>'#FF69B4','indigo'=>'#4B0082','khaki'=>'#F0E68C','lavenderblush'=>'#FFF0F5','lemonchiffon'=>'#FFFACD','lightcoral'=>'#F08080','lightgoldenrodyellow'=>'#FAFAD2','lightgreen'=>'#90EE90','lightsalmon'=>'#FFA07A','lightskyblue'=>'#87CEFA','lightslategray'=>'#778899','lightyellow'=>'#FFFFE0','limegreen'=>'#32CD32','magenta'=>'#FF00FF','mediumaquamarine'=>'#66CDAA','mediumorchid'=>'#BA55D3','mediumseagreen'=>'#3CB371','mediumspringgreen'=>'#00FA9A','mediumvioletred'=>'#C71585','mintcream'=>'#F5FFFA','moccasin'=>'#FFE4B5','navy'=>'#000080','olive'=>'#808000','orange'=>'#FFA500','orchid'=>'#DA70D6','palegreen'=>'#98FB98','palevioletred'=>'#D87093','peachpuff'=>'#FFDAB9','pink'=>'#FFC0CB','powderblue'=>'#B0E0E6','red'=>'#FF0000','royalblue'=>'#4169E1','salmon'=>'#FA8072','seagreen'=>'#2E8B57','sienna'=>'#A0522D','skyblue'=>'#87CEEB','slategray'=>'#708090','springgreen'=>'#00FF7F','tan'=>'#D2B48C','thistle'=>'#D8BFD8','turquoise'=>'#40E0D0','violetred'=>'#D02090','white'=>'#FFFFFF','yellow'=>'#FFFF00');
|
static $common_colors = array('antiquewhite'=>'#FAEBD7','aquamarine'=>'#7FFFD4','beige'=>'#F5F5DC','black'=>'#000000','blue'=>'#0000FF','brown'=>'#A52A2A','cadetblue'=>'#5F9EA0','chocolate'=>'#D2691E','cornflowerblue'=>'#6495ED','crimson'=>'#DC143C','darkblue'=>'#00008B','darkgoldenrod'=>'#B8860B','darkgreen'=>'#006400','darkmagenta'=>'#8B008B','darkorange'=>'#FF8C00','darkred'=>'#8B0000','darkseagreen'=>'#8FBC8F','darkslategray'=>'#2F4F4F','darkviolet'=>'#9400D3','deepskyblue'=>'#00BFFF','dodgerblue'=>'#1E90FF','firebrick'=>'#B22222','forestgreen'=>'#228B22','gainsboro'=>'#DCDCDC','gold'=>'#FFD700','gray'=>'#808080','green'=>'#008000','greenyellow'=>'#ADFF2F','hotpink'=>'#FF69B4','indigo'=>'#4B0082','khaki'=>'#F0E68C','lavenderblush'=>'#FFF0F5','lemonchiffon'=>'#FFFACD','lightcoral'=>'#F08080','lightgoldenrodyellow'=>'#FAFAD2','lightgreen'=>'#90EE90','lightsalmon'=>'#FFA07A','lightskyblue'=>'#87CEFA','lightslategray'=>'#778899','lightyellow'=>'#FFFFE0','limegreen'=>'#32CD32','magenta'=>'#FF00FF','mediumaquamarine'=>'#66CDAA','mediumorchid'=>'#BA55D3','mediumseagreen'=>'#3CB371','mediumspringgreen'=>'#00FA9A','mediumvioletred'=>'#C71585','mintcream'=>'#F5FFFA','moccasin'=>'#FFE4B5','navy'=>'#000080','olive'=>'#808000','orange'=>'#FFA500','orchid'=>'#DA70D6','palegreen'=>'#98FB98','palevioletred'=>'#D87093','peachpuff'=>'#FFDAB9','pink'=>'#FFC0CB','powderblue'=>'#B0E0E6','red'=>'#FF0000','royalblue'=>'#4169E1','salmon'=>'#FA8072','seagreen'=>'#2E8B57','sienna'=>'#A0522D','skyblue'=>'#87CEEB','slategray'=>'#708090','springgreen'=>'#00FF7F','tan'=>'#D2B48C','thistle'=>'#D8BFD8','turquoise'=>'#40E0D0','violetred'=>'#D02090','white'=>'#FFFFFF','yellow'=>'#FFFF00');
|
||||||
//https://www.w3schools.com/css/css_colornames.asp
|
//http://www.w3schools.com/css/css_colornames.asp
|
||||||
if ( ($color{0} != '#') and ( strstr($color,'(') === false ) ) $color = $common_colors[strtolower($color)];
|
if ( ($color{0} != '#') and ( strstr($color,'(') === false ) ) $color = $common_colors[strtolower($color)];
|
||||||
|
|
||||||
if ($color{0} == '#') //case of #nnnnnn or #nnn
|
if ($color{0} == '#') //case of #nnnnnn or #nnn
|
||||||
|
@ -18,7 +18,7 @@ H2 {color:#4000A0}
|
|||||||
<LI>The style can be overriden for every cell
|
<LI>The style can be overriden for every cell
|
||||||
<LI>Columns can be spanned
|
<LI>Columns can be spanned
|
||||||
<LI>The cell content wraps if necessary
|
<LI>The cell content wraps if necessary
|
||||||
<LI>Every cell has the <A HREF='https://www.fpdf.org/?go=script&id=81' TARGET='_blank'>MultiCellTag</A> method functionality
|
<LI>Every cell has the <A HREF='http://www.fpdf.org/?go=script&id=81' TARGET='_blank'>MultiCellTag</A> method functionality
|
||||||
</UL>
|
</UL>
|
||||||
See the class and example for details on the methods and parameters.
|
See the class and example for details on the methods and parameters.
|
||||||
</BODY>
|
</BODY>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
More info can be found on the site: [https://html2fpdf.sourceforge.net]
|
More info can be found on the site: [http://html2fpdf.sourceforge.net]
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
############## DO NOT MODIFY THE CONTENTS OF THIS BOX ########################
|
############## DO NOT MODIFY THE CONTENTS OF THIS BOX ########################
|
||||||
@ -21,4 +21,4 @@ This library is distributed in the hope that it will be useful,
|
|||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
Lesser General Public License for more details.
|
Lesser General Public License for more details.
|
||||||
[https://www.opensource.org/licenses/lgpl-license.php]
|
[http://www.opensource.org/licenses/lgpl-license.php]
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
@ -824,7 +824,7 @@ class own2 extends own {
|
|||||||
|
|
||||||
// Bis hierher fpdi, die letzte Klasse von fpdi, wird der ersten Klasse von Table vererbt:
|
// Bis hierher fpdi, die letzte Klasse von fpdi, wird der ersten Klasse von Table vererbt:
|
||||||
// --> extends own2 hieß ursprünglich extends fpdf. fpdf ist die erste vererbung ganz oben
|
// --> extends own2 hieß ursprünglich extends fpdf. fpdf ist die erste vererbung ganz oben
|
||||||
// daher ist hier die schnittstelle, wo man die zwei Pakete vererben kann: https://www.cix88.de/cix_fpdf/fpdf_allgemein/cix_tut_052.php
|
// daher ist hier die schnittstelle, wo man die zwei Pakete vererben kann: http://www.cix88.de/cix_fpdf/fpdf_allgemein/cix_tut_052.php
|
||||||
|
|
||||||
|
|
||||||
require_once("class.string_tags.php");
|
require_once("class.string_tags.php");
|
||||||
@ -2241,7 +2241,7 @@ function HTML2FPDF($orientation='P',$unit='mm',$format='A4')
|
|||||||
|
|
||||||
function setBasePath($str)
|
function setBasePath($str)
|
||||||
{
|
{
|
||||||
//! @desc Inform the script where the html file is (full path - e.g. https://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
//! @desc Inform the script where the html file is (full path - e.g. http://www.google.com/dir1/dir2/dir3/file.html ) in order to adjust HREF and SRC links. No-Parameter: The directory where this script is.
|
||||||
//! @return void
|
//! @return void
|
||||||
$this->basepath = dirname($str) . "/";
|
$this->basepath = dirname($str) . "/";
|
||||||
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
||||||
@ -2685,7 +2685,7 @@ function OpenTag($tag,$attr)
|
|||||||
case 'H4': // 1 * fontsize
|
case 'H4': // 1 * fontsize
|
||||||
case 'H5': // 0.83 * fontsize
|
case 'H5': // 0.83 * fontsize
|
||||||
case 'H6': // 0.67 * fontsize
|
case 'H6': // 0.67 * fontsize
|
||||||
//Values obtained from: https://www.w3.org/TR/REC-CSS2/sample.html
|
//Values obtained from: http://www.w3.org/TR/REC-CSS2/sample.html
|
||||||
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
if(isset($attr['ALIGN'])) $this->divalign = $align[strtolower($attr['ALIGN'])];
|
||||||
$this->buffer_on = true;
|
$this->buffer_on = true;
|
||||||
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
||||||
@ -4168,7 +4168,7 @@ function ReadMetaTags($html)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Comercial do Aplicativo usado (no caso um script):
|
//Comercial do Aplicativo usado (no caso um script):
|
||||||
$this->SetCreator("HTML2FPDF >> https://html2fpdf.sf.net");
|
$this->SetCreator("HTML2FPDF >> http://html2fpdf.sf.net");
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
@ -4365,7 +4365,7 @@ function setCSS($arrayaux)
|
|||||||
$v = strtoupper($v);
|
$v = strtoupper($v);
|
||||||
switch($v)
|
switch($v)
|
||||||
{
|
{
|
||||||
//Values obtained from https://www.w3schools.com/html/html_reference.asp
|
//Values obtained from http://www.w3schools.com/html/html_reference.asp
|
||||||
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
case 'XX-SMALL': $this->SetFontSize( (0.7)* 11);
|
||||||
break;
|
break;
|
||||||
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
||||||
@ -4637,7 +4637,7 @@ function _tableWidth(&$table){
|
|||||||
{
|
{
|
||||||
if (!count($list))
|
if (!count($list))
|
||||||
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
{//Khong co cot nao co kich thuoc auto => chia deu phan du cho tat ca
|
||||||
//https://www.ksvn.com/anhviet_new.htm - translating comments...
|
//http://www.ksvn.com/anhviet_new.htm - translating comments...
|
||||||
//bent shrink essence move size measure automatic => divide against give as a whole
|
//bent shrink essence move size measure automatic => divide against give as a whole
|
||||||
//$wi = $table['w'] - $wis;
|
//$wi = $table['w'] - $wis;
|
||||||
$wi = ($table['w'] - $wis)/$numcols;
|
$wi = ($table['w'] - $wis)/$numcols;
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Binary file not shown.
@ -194,7 +194,7 @@ Header('Pragma: public');
|
|||||||
|
|
||||||
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
<P><A NAME='7'></A><B>7.</B> <FONT CLASS='st'>When I execute a script I get the message "FPDF error: Don't alter the locale before including class file".</FONT></P>
|
||||||
When the decimal separator is configured as a comma before including a file, there is a
|
When the decimal separator is configured as a comma before including a file, there is a
|
||||||
<A HREF="https://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
<A HREF="http://bugs.php.net/bug.php?id=17105" TARGET="_blank">bug</A> in some PHP versions and decimal
|
||||||
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
numbers get truncated. Therefore you shouldn't make a call to setlocale() before including the class.
|
||||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||||
setlocale() call.
|
setlocale() call.
|
||||||
@ -270,20 +270,20 @@ Remark: even when the browser goes in time-out, the script may continue to run o
|
|||||||
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
<P><A NAME='17'></A><B>17.</B> <FONT CLASS='st'>Can I modify a PDF with FPDF?</FONT></P>
|
||||||
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
You can import an existing PDF document thanks to the FPDI extension:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://fpdi.setasign.de" TARGET="_blank">https://fpdi.setasign.de</A>
|
<A HREF="http://fpdi.setasign.de" TARGET="_blank">http://fpdi.setasign.de</A>
|
||||||
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
<P><A NAME='18'></A><B>18.</B> <FONT CLASS='st'>I'd like to make a search engine in PHP and index PDF files. Can I do it with FPDF?</FONT></P>
|
||||||
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
No. But a GPL C utility does exist, pdftotext, which is able to extract the textual content from
|
||||||
a PDF. It is provided with the Xpdf package:<BR>
|
a PDF. It is provided with the Xpdf package:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.foolabs.com/xpdf/" TARGET="_blank">https://www.foolabs.com/xpdf/</A>
|
<A HREF="http://www.foolabs.com/xpdf/" TARGET="_blank">http://www.foolabs.com/xpdf/</A>
|
||||||
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
<P><A NAME='19'></A><B>19.</B> <FONT CLASS='st'>Can I convert an HTML page to PDF with FPDF?</FONT></P>
|
||||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://www.easysw.com/htmldoc/" TARGET="_blank">https://www.easysw.com/htmldoc/</A>
|
<A HREF="http://www.easysw.com/htmldoc/" TARGET="_blank">http://www.easysw.com/htmldoc/</A>
|
||||||
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
<P><A NAME='20'></A><B>20.</B> <FONT CLASS='st'>Can I concatenate PDF files with FPDF?</FONT></P>
|
||||||
No. But some free tools exist to perform this task:<BR>
|
No. But some free tools exist to perform this task:<BR>
|
||||||
<BR>
|
<BR>
|
||||||
<A HREF="https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">https://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
<A HREF="http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html" TARGET="_blank">http://thierry.schmit.free.fr/dev/mbtPdfAsm/enMbtPdfAsm2.html</A><BR STYLE="font-height:2em">
|
||||||
<A HREF="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
<A HREF="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
https://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
php|architect by Marco Tabini.
|
php|architect by Marco Tabini.
|
||||||
|
|
||||||
This software contains code derived from Oliver Plathey - The author of
|
This software contains code derived from Oliver Plathey - The author of
|
||||||
FPDF. FPDF is available from: https://www.fpdf.org
|
FPDF. FPDF is available from: http://www.fpdf.org
|
||||||
|
|
||||||
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
The LZW- and the ASCII85-Decoder are adapted from the iText-Library
|
||||||
https://www.lowagie.com/iText/
|
http://www.lowagie.com/iText/
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@ -89,7 +89,7 @@ URL or identifier returned by AddLink().
|
|||||||
<pre><code>// Insert a logo in the top-left corner at 300 dpi
|
<pre><code>// Insert a logo in the top-left corner at 300 dpi
|
||||||
$pdf->Image('logo.png',10,10,-300);
|
$pdf->Image('logo.png',10,10,-300);
|
||||||
// Insert a dynamic image from a URL
|
// Insert a dynamic image from a URL
|
||||||
$pdf->Image('https://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');</code></pre>
|
$pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World',60,30,90,0,'PNG');</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<h2>See also</h2>
|
<h2>See also</h2>
|
||||||
<a href="addlink.htm">AddLink</a>
|
<a href="addlink.htm">AddLink</a>
|
||||||
|
@ -37,7 +37,7 @@ $pdf->Write(5,'Visit ');
|
|||||||
// Then put a blue underlined link
|
// Then put a blue underlined link
|
||||||
$pdf->SetTextColor(0,0,255);
|
$pdf->SetTextColor(0,0,255);
|
||||||
$pdf->SetFont('','U');
|
$pdf->SetFont('','U');
|
||||||
$pdf->Write(5,'www.fpdf.org','https://www.fpdf.org');</code></pre>
|
$pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<h2>See also</h2>
|
<h2>See also</h2>
|
||||||
<a href="setfont.htm">SetFont</a>,
|
<a href="setfont.htm">SetFont</a>,
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -293,8 +293,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* See FPDF/TCPDF documentation.
|
* See FPDF/TCPDF documentation.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/setfont.htm
|
* @see http://fpdf.org/en/doc/setfont.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#afd56e360c43553830d543323e81bc045
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#afd56e360c43553830d543323e81bc045
|
||||||
*/
|
*/
|
||||||
public function SetFont($family, $style = '', $size = null, $fontfile = '', $subset = 'default', $out = true)
|
public function SetFont($family, $style = '', $size = null, $fontfile = '', $subset = 'default', $out = true)
|
||||||
{
|
{
|
||||||
@ -319,8 +319,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* See FPDF/TCPDF documentation.
|
* See FPDF/TCPDF documentation.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/image.htm
|
* @see http://fpdf.org/en/doc/image.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a714c2bee7d6b39d4d6d304540c761352
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a714c2bee7d6b39d4d6d304540c761352
|
||||||
*/
|
*/
|
||||||
public function Image(
|
public function Image(
|
||||||
$file, $x = '', $y = '', $w = 0, $h = 0, $type = '', $link = '', $align = '', $resize = false,
|
$file, $x = '', $y = '', $w = 0, $h = 0, $type = '', $link = '', $align = '', $resize = false,
|
||||||
@ -350,8 +350,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* This method cannot be used if you'd started a template.
|
* This method cannot be used if you'd started a template.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/addpage.htm
|
* @see http://fpdf.org/en/doc/addpage.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a5171e20b366b74523709d84c349c1ced
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a5171e20b366b74523709d84c349c1ced
|
||||||
*/
|
*/
|
||||||
public function AddPage($orientation = '', $format = '', $rotationOrKeepmargins = false, $tocpage = false)
|
public function AddPage($orientation = '', $format = '', $rotationOrKeepmargins = false, $tocpage = false)
|
||||||
{
|
{
|
||||||
@ -372,8 +372,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* Overwritten because adding links in a template will not work.
|
* Overwritten because adding links in a template will not work.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/link.htm
|
* @see http://fpdf.org/en/doc/link.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#ab87bf1826384fbfe30eb499d42f1d994
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ab87bf1826384fbfe30eb499d42f1d994
|
||||||
*/
|
*/
|
||||||
public function Link($x, $y, $w, $h, $link, $spaces = 0)
|
public function Link($x, $y, $w, $h, $link, $spaces = 0)
|
||||||
{
|
{
|
||||||
@ -394,8 +394,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* Overwritten because adding links in a template will not work.
|
* Overwritten because adding links in a template will not work.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/addlink.htm
|
* @see http://fpdf.org/en/doc/addlink.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a749522038ed7786c3e1701435dcb891e
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a749522038ed7786c3e1701435dcb891e
|
||||||
*/
|
*/
|
||||||
public function AddLink()
|
public function AddLink()
|
||||||
{
|
{
|
||||||
@ -416,8 +416,8 @@ class FPDF_TPL extends fpdi_bridge
|
|||||||
*
|
*
|
||||||
* Overwritten because adding links in a template will not work.
|
* Overwritten because adding links in a template will not work.
|
||||||
*
|
*
|
||||||
* @see https://fpdf.org/en/doc/setlink.htm
|
* @see http://fpdf.org/en/doc/setlink.htm
|
||||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#ace5be60e7857953ea5e2b89cb90df0ae
|
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ace5be60e7857953ea5e2b89cb90df0ae
|
||||||
*/
|
*/
|
||||||
public function SetLink($link, $y = 0, $page = -1)
|
public function SetLink($link, $y = 0, $page = -1)
|
||||||
{
|
{
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
* This file is part of FPDI
|
* This file is part of FPDI
|
||||||
*
|
*
|
||||||
* @package FPDI
|
* @package FPDI
|
||||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||||
* @version 1.6.1
|
* @version 1.6.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Binary file not shown.
@ -8,7 +8,7 @@
|
|||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
// https://www.apache.org/licenses/LICENSE-2.0
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
//
|
//
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user