Server geändert
This commit is contained in:
@ -16,7 +16,7 @@ Let's start with the classic example:
|
||||
</code></NOBR></TD></TR></TABLE><P></P>
|
||||
<SCRIPT>
|
||||
<!--
|
||||
if(document.location.href.indexOf('http:')==0)
|
||||
if(document.location.href.indexOf('https:')==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('http:')==0)
|
||||
if(document.location.href.indexOf('https:')==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('http:')==0)
|
||||
if(document.location.href.indexOf('https:')==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('http:')==0)
|
||||
if(document.location.href.indexOf('https:')==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('http:')==0)
|
||||
if(document.location.href.indexOf('https:')==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="http://www.fpdf.org">www.fpdf.org</A>,
|
||||
on text, such as <A HREF="https://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,'','http://www.fpdf.org');
|
||||
$pdf->Image('logo.png',10,10,30,0,'','https://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="http://www.fpdf.org/fr/dl.php?id=34">here</A>.
|
||||
<A HREF="https://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="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
|
||||
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
|
||||
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="http://www.lcdf.org/~eddietwo/type/#t1utils" TARGET="_blank">t1utils</A>.
|
||||
binary format with <A HREF="https://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="http://www.abstractfonts.com/fonts/" TARGET="_blank">www.abstractfonts.com</A> (a site
|
||||
<A HREF="https://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('http:')==0)
|
||||
if(document.location.href.indexOf('https:')==0)
|
||||
{
|
||||
document.write("<P CLASS='demo'><A HREF='tuto7.php' TARGET='_blank' CLASS='demo'>[Demo]</A></P>");
|
||||
}
|
||||
|
Reference in New Issue
Block a user