Änderungen https Andy Müller rückgängig gemacht
This commit is contained in:
parent
236d44ba25
commit
90d2c7f970
Binary file not shown.
@ -25,7 +25,7 @@ if(!isset($hist)){
|
||||
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZS' AND admin='$user_admin'");
|
||||
$row_dat = $res_dat->fetch_array();
|
||||
|
||||
$heute_format = $row_dat[datum];
|
||||
$heute_format = $row_dat['datum'];
|
||||
}
|
||||
|
||||
if(isset($hist2)){
|
||||
|
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>
|
||||
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.
|
||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||
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>
|
||||
You can import an existing PDF document thanks to the FPDI extension:<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>
|
||||
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>
|
||||
<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>
|
||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<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>
|
||||
No. But some free tools exist to perform this task:<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="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
||||
<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="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
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 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
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
@ -3,7 +3,7 @@
|
||||
php|architect by Marco Tabini.
|
||||
|
||||
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
|
||||
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 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
|
||||
// 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 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
|
||||
// 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>
|
||||
$pdf->SetTextColor(0,0,255);<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>
|
||||
</TD></TR></TABLE><BR>
|
||||
<H4 CLASS='st'>See also</H4>
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
Binary file not shown.
@ -16,7 +16,7 @@ Let's start with the classic example:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto1.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ Here is a two page example with header, footer and logo:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto2.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ of colors.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto3.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ columns.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto4.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ This tutorial shows how to make tables easily.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto5.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -99,7 +99,7 @@ function PutLink($URL,$txt)
|
||||
$html='You can now easily print text mixing different
|
||||
styles : <B>bold</B>, <I>italic</I>, <U>underlined</U>, or
|
||||
<B><I><U>all at once</U></I></B>!<BR>You can also insert links
|
||||
on text, such as <A HREF="https://www.fpdf.org">www.fpdf.org</A>,
|
||||
on text, such as <A HREF="http://www.fpdf.org">www.fpdf.org</A>,
|
||||
or on an image: click on the logo.';
|
||||
|
||||
$pdf=new PDF();
|
||||
@ -114,7 +114,7 @@ $pdf->SetFont('');
|
||||
//Second page
|
||||
$pdf->AddPage();
|
||||
$pdf->SetLink($link);
|
||||
$pdf->Image('logo.png',10,10,30,0,'','https://www.fpdf.org');
|
||||
$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org');
|
||||
$pdf->SetLeftMargin(45);
|
||||
$pdf->SetFontSize(14);
|
||||
$pdf->WriteHTML($html);
|
||||
|
@ -26,11 +26,11 @@ Adding a new font requires three steps for TrueTypes:
|
||||
</UL>
|
||||
For Type1, the first one is theoretically not necessary because the AFM file is usually shipped
|
||||
with the font. In case you have only a metric file in PFM format, use the convertor available
|
||||
<A HREF="https://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<A HREF="http://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<H4 CLASS='st'>Generation of the metric file</H4>
|
||||
The first step for a TrueType consists in generating the AFM file. A utility exists to do this
|
||||
task: <A HREF="https://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="https://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
task: <A HREF="http://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="http://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
the following:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -76,7 +76,7 @@ Type of the font (<TT>TrueType</TT> or <TT>Type1</TT>). Default value: <TT>TrueT
|
||||
<BR>
|
||||
The first parameter is the name of the font file. The extension must be either .ttf or .pfb and
|
||||
determines the font type. If you own a Type1 font in ASCII format (.pfa), you can convert it to
|
||||
binary format with <A HREF="https://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
binary format with <A HREF="http://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
<BR>
|
||||
If you don't want to embed the font, pass an empty string. In this case, type is given by the
|
||||
<TT>type</TT> parameter.
|
||||
@ -179,7 +179,7 @@ $pdf<font class="kw">-></font>AddFont<font class="kw">(</font><font class="st
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<H4 CLASS='st'>Example</H4>
|
||||
Let's now see a small complete example. The font used is Calligrapher, available at
|
||||
<A HREF="https://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
<A HREF="http://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
offering numerous free TrueType fonts). The first step is the generation of the AFM file:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -218,7 +218,7 @@ We can now copy the two files to the font directory and write the script:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto7.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// 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
|
||||
$pdf->Image('logo.png',10,10,-300);
|
||||
// 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>
|
||||
<h2>See also</h2>
|
||||
<a href="addlink.htm">AddLink</a>
|
||||
|
@ -37,7 +37,7 @@ $pdf->Write(5,'Visit ');
|
||||
// Then put a blue underlined link
|
||||
$pdf->SetTextColor(0,0,255);
|
||||
$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>
|
||||
<h2>See also</h2>
|
||||
<a href="setfont.htm">SetFont</a>,
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
@ -293,8 +293,8 @@ class FPDF_TPL extends fpdi_bridge
|
||||
*
|
||||
* See FPDF/TCPDF documentation.
|
||||
*
|
||||
* @see https://fpdf.org/en/doc/setfont.htm
|
||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#afd56e360c43553830d543323e81bc045
|
||||
* @see http://fpdf.org/en/doc/setfont.htm
|
||||
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#afd56e360c43553830d543323e81bc045
|
||||
*/
|
||||
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 https://fpdf.org/en/doc/image.htm
|
||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a714c2bee7d6b39d4d6d304540c761352
|
||||
* @see http://fpdf.org/en/doc/image.htm
|
||||
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a714c2bee7d6b39d4d6d304540c761352
|
||||
*/
|
||||
public function Image(
|
||||
$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.
|
||||
*
|
||||
* @see https://fpdf.org/en/doc/addpage.htm
|
||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a5171e20b366b74523709d84c349c1ced
|
||||
* @see http://fpdf.org/en/doc/addpage.htm
|
||||
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a5171e20b366b74523709d84c349c1ced
|
||||
*/
|
||||
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.
|
||||
*
|
||||
* @see https://fpdf.org/en/doc/link.htm
|
||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#ab87bf1826384fbfe30eb499d42f1d994
|
||||
* @see http://fpdf.org/en/doc/link.htm
|
||||
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ab87bf1826384fbfe30eb499d42f1d994
|
||||
*/
|
||||
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.
|
||||
*
|
||||
* @see https://fpdf.org/en/doc/addlink.htm
|
||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#a749522038ed7786c3e1701435dcb891e
|
||||
* @see http://fpdf.org/en/doc/addlink.htm
|
||||
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#a749522038ed7786c3e1701435dcb891e
|
||||
*/
|
||||
public function AddLink()
|
||||
{
|
||||
@ -416,8 +416,8 @@ class FPDF_TPL extends fpdi_bridge
|
||||
*
|
||||
* Overwritten because adding links in a template will not work.
|
||||
*
|
||||
* @see https://fpdf.org/en/doc/setlink.htm
|
||||
* @see https://www.tcpdf.org/doc/code/classTCPDF.html#ace5be60e7857953ea5e2b89cb90df0ae
|
||||
* @see http://fpdf.org/en/doc/setlink.htm
|
||||
* @see http://www.tcpdf.org/doc/code/classTCPDF.html#ace5be60e7857953ea5e2b89cb90df0ae
|
||||
*/
|
||||
public function SetLink($link, $y = 0, $page = -1)
|
||||
{
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
* This file is part of FPDI
|
||||
*
|
||||
* @package FPDI
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (https://www.setasign.com)
|
||||
* @license https://opensource.org/licenses/mit-license The MIT License
|
||||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com)
|
||||
* @license http://opensource.org/licenses/mit-license The MIT License
|
||||
* @version 1.6.1
|
||||
*/
|
||||
|
||||
|
Binary file not shown.
@ -103,7 +103,7 @@ function </span>PutLink<span class="kw">(</span>$URL<span class="kw">, </span>$t
|
||||
|
||||
</span>$html <span class="kw">= </span><span class="str">'You can now easily print text mixing different styles: <b>bold</b>, <i>italic</i>,
|
||||
<u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>You can also insert links on
|
||||
text, such as <a href="https://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.'</span><span class="kw">;
|
||||
text, such as <a href="http://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.'</span><span class="kw">;
|
||||
|
||||
</span>$pdf <span class="kw">= new </span>PDF<span class="kw">();
|
||||
</span><span class="cmt">// First page
|
||||
@ -117,7 +117,7 @@ text, such as <a href="https://www.fpdf.org">www.fpdf.org</a>, or on
|
||||
</span><span class="cmt">// Second page
|
||||
</span>$pdf<span class="kw">-></span>AddPage<span class="kw">();
|
||||
</span>$pdf<span class="kw">-></span>SetLink<span class="kw">(</span>$link<span class="kw">);
|
||||
</span>$pdf<span class="kw">-></span>Image<span class="kw">(</span><span class="str">'logo.png'</span><span class="kw">,</span>10<span class="kw">,</span>12<span class="kw">,</span>30<span class="kw">,</span>0<span class="kw">,</span><span class="str">''</span><span class="kw">,</span><span class="str">'https://www.fpdf.org'</span><span class="kw">);
|
||||
</span>$pdf<span class="kw">-></span>Image<span class="kw">(</span><span class="str">'logo.png'</span><span class="kw">,</span>10<span class="kw">,</span>12<span class="kw">,</span>30<span class="kw">,</span>0<span class="kw">,</span><span class="str">''</span><span class="kw">,</span><span class="str">'http://www.fpdf.org'</span><span class="kw">);
|
||||
</span>$pdf<span class="kw">-></span>SetLeftMargin<span class="kw">(</span>45<span class="kw">);
|
||||
</span>$pdf<span class="kw">-></span>SetFontSize<span class="kw">(</span>14<span class="kw">);
|
||||
</span>$pdf<span class="kw">-></span>WriteHTML<span class="kw">(</span>$html<span class="kw">);
|
||||
|
@ -91,7 +91,7 @@ function PutLink($URL, $txt)
|
||||
|
||||
$html = 'You can now easily print text mixing different styles: <b>bold</b>, <i>italic</i>,
|
||||
<u>underlined</u>, or <b><i><u>all at once</u></i></b>!<br><br>You can also insert links on
|
||||
text, such as <a href="https://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.';
|
||||
text, such as <a href="http://www.fpdf.org">www.fpdf.org</a>, or on an image: click on the logo.';
|
||||
|
||||
$pdf = new PDF();
|
||||
// First page
|
||||
@ -105,7 +105,7 @@ $pdf->SetFont('');
|
||||
// Second page
|
||||
$pdf->AddPage();
|
||||
$pdf->SetLink($link);
|
||||
$pdf->Image('logo.png',10,12,30,0,'','https://www.fpdf.org');
|
||||
$pdf->Image('logo.png',10,12,30,0,'','http://www.fpdf.org');
|
||||
$pdf->SetLeftMargin(45);
|
||||
$pdf->SetFontSize(14);
|
||||
$pdf->WriteHTML($html);
|
||||
|
@ -49,7 +49,7 @@ directory of the package: makefont.php. It contains the following function:
|
||||
</dl>
|
||||
The first parameter is the name of the font file. The extension must be either .ttf, .otf or .pfb and
|
||||
determines the font type. If your Type1 font is in ASCII format (.pfa), you can convert it to binary
|
||||
(.pfb) with the help of <a href="https://www.lcdf.org/~eddietwo/type/#t1utils" target="_blank">t1utils</a>.
|
||||
(.pfb) with the help of <a href="http://www.lcdf.org/~eddietwo/type/#t1utils" target="_blank">t1utils</a>.
|
||||
<br>
|
||||
<br>
|
||||
For Type1 fonts, the corresponding .afm file must be present in the same directory.
|
||||
@ -124,7 +124,7 @@ Another way to call MakeFont() is through the command line:
|
||||
<br>
|
||||
<br>
|
||||
Finally, for TrueType and OpenType fonts, you can also generate the files
|
||||
<a href="https://www.fpdf.org/makefont/">online</a> instead of doing it manually.
|
||||
<a href="http://www.fpdf.org/makefont/">online</a> instead of doing it manually.
|
||||
|
||||
<h2>Declaration of the font in the script</h2>
|
||||
The second step is simple. You just need to call the <a href='../doc/addfont.htm'>AddFont()</a> method:
|
||||
@ -140,7 +140,7 @@ had worked with Comic Sans MS Bold (comicbd.ttf), we would have written:
|
||||
</div>
|
||||
|
||||
<h2>Example</h2>
|
||||
Let's now see a complete example. We will use the font <a href="https://www.abstractfonts.com/font/52" target="_blank">Calligrapher</a>.
|
||||
Let's now see a complete example. We will use the font <a href="http://www.abstractfonts.com/font/52" target="_blank">Calligrapher</a>.
|
||||
The first step is the generation of the font files:
|
||||
<div class="source">
|
||||
<pre><code><?php
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
Binary file not shown.
8
fancybox/jquery-1.5.1.min.js
vendored
8
fancybox/jquery-1.5.1.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* jQuery Easing v1.3 - https://gsgd.co.uk/sandbox/jquery/easing/
|
||||
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*
|
||||
* Uses the built in easing capabilities added In jQuery 1.1
|
||||
* to offer multiple easing options
|
||||
|
@ -2,7 +2,7 @@
|
||||
* FancyBox - jQuery Plugin
|
||||
* Simple and fancy lightbox alternative
|
||||
*
|
||||
* Examples and documentation at: https://fancybox.net
|
||||
* Examples and documentation at: http://fancybox.net
|
||||
*
|
||||
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
||||
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
||||
@ -11,8 +11,8 @@
|
||||
* Requires: jQuery v1.3+
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* https://www.opensource.org/licenses/mit-license.php
|
||||
* https://www.gnu.org/licenses/gpl.html
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
#fancybox-loading {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* FancyBox - jQuery Plugin
|
||||
* Simple and fancy lightbox alternative
|
||||
*
|
||||
* Examples and documentation at: https://fancybox.net
|
||||
* Examples and documentation at: http://fancybox.net
|
||||
*
|
||||
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
||||
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
||||
@ -11,8 +11,8 @@
|
||||
* Requires: jQuery v1.3+
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* https://www.opensource.org/licenses/mit-license.php
|
||||
* https://www.gnu.org/licenses/gpl.html
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
;(function($) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* FancyBox - jQuery Plugin
|
||||
* Simple and fancy lightbox alternative
|
||||
*
|
||||
* Examples and documentation at: https://fancybox.net
|
||||
* Examples and documentation at: http://fancybox.net
|
||||
*
|
||||
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
||||
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
||||
@ -11,8 +11,8 @@
|
||||
* Requires: jQuery v1.3+
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* https://www.opensource.org/licenses/mit-license.php
|
||||
* https://www.gnu.org/licenses/gpl.html
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
|
||||
|
@ -1,10 +1,10 @@
|
||||
/*! Copyright (c) 2008 Brandon Aaron (https://brandonaaron.net)
|
||||
* Dual licensed under the MIT (https://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (https://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
/*! Copyright (c) 2008 Brandon Aaron (http://brandonaaron.net)
|
||||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||||
*
|
||||
* Version: 1.0.3
|
||||
* Requires jQuery 1.1.3+
|
||||
* Docs: https://docs.jquery.com/Plugins/livequery
|
||||
* Docs: http://docs.jquery.com/Plugins/livequery
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*! Copyright (c) 2010 Brandon Aaron (https://brandonaaron.net)
|
||||
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Thanks to: https://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(https://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||
*
|
||||
* Version: 3.0.4
|
||||
|
@ -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>
|
||||
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.
|
||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||
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>
|
||||
You can import an existing PDF document thanks to the FPDI extension:<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>
|
||||
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>
|
||||
<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>
|
||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<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>
|
||||
No. But some free tools exist to perform this task:<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="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
||||
<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="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
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 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
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
@ -3,7 +3,7 @@
|
||||
php|architect by Marco Tabini.
|
||||
|
||||
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
|
||||
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 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
|
||||
// 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 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
|
||||
// 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>
|
||||
$pdf->SetTextColor(0,0,255);<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>
|
||||
</TD></TR></TABLE><BR>
|
||||
<H4 CLASS='st'>See also</H4>
|
||||
|
Binary file not shown.
@ -31,7 +31,7 @@ $ttxt[2] = "<p>
|
||||
<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.
|
||||
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.
|
||||
\tVariable Y relative positions can be used for <ss ypos='-0.8'>Subscript</ss> or <ss ypos='1.1'>Superscript</ss>.</p>
|
||||
<style>
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
@ -18,7 +18,7 @@ H2 {color:#4000A0}
|
||||
<LI>The style can be overriden for every cell
|
||||
<LI>Columns can be spanned
|
||||
<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>
|
||||
See the class and example for details on the methods and parameters.
|
||||
</BODY>
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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:
|
||||
// --> 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");
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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 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
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
Binary file not shown.
@ -16,7 +16,7 @@ Let's start with the classic example:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto1.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ Here is a two page example with header, footer and logo:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto2.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ of colors.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto3.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ columns.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto4.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ This tutorial shows how to make tables easily.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto5.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -99,7 +99,7 @@ function PutLink($URL,$txt)
|
||||
$html='You can now easily print text mixing different
|
||||
styles : <B>bold</B>, <I>italic</I>, <U>underlined</U>, or
|
||||
<B><I><U>all at once</U></I></B>!<BR>You can also insert links
|
||||
on text, such as <A HREF="https://www.fpdf.org">www.fpdf.org</A>,
|
||||
on text, such as <A HREF="http://www.fpdf.org">www.fpdf.org</A>,
|
||||
or on an image: click on the logo.';
|
||||
|
||||
$pdf=new PDF();
|
||||
@ -114,7 +114,7 @@ $pdf->SetFont('');
|
||||
//Second page
|
||||
$pdf->AddPage();
|
||||
$pdf->SetLink($link);
|
||||
$pdf->Image('logo.png',10,10,30,0,'','https://www.fpdf.org');
|
||||
$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org');
|
||||
$pdf->SetLeftMargin(45);
|
||||
$pdf->SetFontSize(14);
|
||||
$pdf->WriteHTML($html);
|
||||
|
@ -26,11 +26,11 @@ Adding a new font requires three steps for TrueTypes:
|
||||
</UL>
|
||||
For Type1, the first one is theoretically not necessary because the AFM file is usually shipped
|
||||
with the font. In case you have only a metric file in PFM format, use the convertor available
|
||||
<A HREF="https://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<A HREF="http://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<H4 CLASS='st'>Generation of the metric file</H4>
|
||||
The first step for a TrueType consists in generating the AFM file. A utility exists to do this
|
||||
task: <A HREF="https://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="https://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
task: <A HREF="http://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="http://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
the following:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -76,7 +76,7 @@ Type of the font (<TT>TrueType</TT> or <TT>Type1</TT>). Default value: <TT>TrueT
|
||||
<BR>
|
||||
The first parameter is the name of the font file. The extension must be either .ttf or .pfb and
|
||||
determines the font type. If you own a Type1 font in ASCII format (.pfa), you can convert it to
|
||||
binary format with <A HREF="https://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
binary format with <A HREF="http://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
<BR>
|
||||
If you don't want to embed the font, pass an empty string. In this case, type is given by the
|
||||
<TT>type</TT> parameter.
|
||||
@ -179,7 +179,7 @@ $pdf<font class="kw">-></font>AddFont<font class="kw">(</font><font class="st
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<H4 CLASS='st'>Example</H4>
|
||||
Let's now see a small complete example. The font used is Calligrapher, available at
|
||||
<A HREF="https://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
<A HREF="http://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
offering numerous free TrueType fonts). The first step is the generation of the AFM file:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -218,7 +218,7 @@ We can now copy the two files to the font directory and write the script:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto7.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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>
|
||||
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.
|
||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||
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>
|
||||
You can import an existing PDF document thanks to the FPDI extension:<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>
|
||||
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>
|
||||
<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>
|
||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<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>
|
||||
No. But some free tools exist to perform this task:<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="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
||||
<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="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
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 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
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
@ -3,7 +3,7 @@
|
||||
php|architect by Marco Tabini.
|
||||
|
||||
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
|
||||
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 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
|
||||
// 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 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
|
||||
// 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>
|
||||
$pdf->SetTextColor(0,0,255);<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>
|
||||
</TD></TR></TABLE><BR>
|
||||
<H4 CLASS='st'>See also</H4>
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// 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 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
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
Binary file not shown.
@ -16,7 +16,7 @@ Let's start with the classic example:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto1.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ Here is a two page example with header, footer and logo:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto2.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ of colors.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto3.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ columns.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto4.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ This tutorial shows how to make tables easily.
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto5.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -99,7 +99,7 @@ function PutLink($URL,$txt)
|
||||
$html='You can now easily print text mixing different
|
||||
styles : <B>bold</B>, <I>italic</I>, <U>underlined</U>, or
|
||||
<B><I><U>all at once</U></I></B>!<BR>You can also insert links
|
||||
on text, such as <A HREF="https://www.fpdf.org">www.fpdf.org</A>,
|
||||
on text, such as <A HREF="http://www.fpdf.org">www.fpdf.org</A>,
|
||||
or on an image: click on the logo.';
|
||||
|
||||
$pdf=new PDF();
|
||||
@ -114,7 +114,7 @@ $pdf->SetFont('');
|
||||
//Second page
|
||||
$pdf->AddPage();
|
||||
$pdf->SetLink($link);
|
||||
$pdf->Image('logo.png',10,10,30,0,'','https://www.fpdf.org');
|
||||
$pdf->Image('logo.png',10,10,30,0,'','http://www.fpdf.org');
|
||||
$pdf->SetLeftMargin(45);
|
||||
$pdf->SetFontSize(14);
|
||||
$pdf->WriteHTML($html);
|
||||
|
@ -26,11 +26,11 @@ Adding a new font requires three steps for TrueTypes:
|
||||
</UL>
|
||||
For Type1, the first one is theoretically not necessary because the AFM file is usually shipped
|
||||
with the font. In case you have only a metric file in PFM format, use the convertor available
|
||||
<A HREF="https://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<A HREF="http://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<H4 CLASS='st'>Generation of the metric file</H4>
|
||||
The first step for a TrueType consists in generating the AFM file. A utility exists to do this
|
||||
task: <A HREF="https://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="https://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
task: <A HREF="http://ttf2pt1.sourceforge.net" TARGET="_blank">ttf2pt1</A>. The Windows binary
|
||||
is available <A HREF="http://www.fpdf.org/fr/dl.php?id=22">here</A>. The command line to use is
|
||||
the following:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -76,7 +76,7 @@ Type of the font (<TT>TrueType</TT> or <TT>Type1</TT>). Default value: <TT>TrueT
|
||||
<BR>
|
||||
The first parameter is the name of the font file. The extension must be either .ttf or .pfb and
|
||||
determines the font type. If you own a Type1 font in ASCII format (.pfa), you can convert it to
|
||||
binary format with <A HREF="https://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
binary format with <A HREF="http://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
<BR>
|
||||
If you don't want to embed the font, pass an empty string. In this case, type is given by the
|
||||
<TT>type</TT> parameter.
|
||||
@ -179,7 +179,7 @@ $pdf<font class="kw">-></font>AddFont<font class="kw">(</font><font class="st
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<H4 CLASS='st'>Example</H4>
|
||||
Let's now see a small complete example. The font used is Calligrapher, available at
|
||||
<A HREF="https://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
<A HREF="http://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
offering numerous free TrueType fonts). The first step is the generation of the AFM file:
|
||||
<BR>
|
||||
<BR>
|
||||
@ -218,7 +218,7 @@ We can now copy the two files to the font directory and write the script:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto7.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// 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
|
||||
// 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>
|
||||
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.
|
||||
On Unix, you shouldn't set the LC_ALL environment variable neither, for it is equivalent to a
|
||||
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>
|
||||
You can import an existing PDF document thanks to the FPDI extension:<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>
|
||||
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>
|
||||
<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>
|
||||
Not real pages. But a GPL C utility does exist, htmldoc, which allows to do it and gives good results:<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>
|
||||
No. But some free tools exist to perform this task:<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="https://www.accesspdf.com/pdftk/">https://www.accesspdf.com/pdftk/</A>
|
||||
<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="http://www.accesspdf.com/pdftk/">http://www.accesspdf.com/pdftk/</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
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