Änderungen https Andy Müller rückgängig gemacht
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -2209,7 +2209,7 @@ function _parsepng($file)
|
||||
function _parsegif($file) //EDITEI - GIF support is now included
|
||||
{
|
||||
//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;
|
||||
$w=0;
|
||||
|
@ -9,7 +9,7 @@
|
||||
* You may use and modify this software as you wish as stated in original *
|
||||
* FPDF package. *
|
||||
* *
|
||||
* Thanks: Cpdf (https://www.ros.co.nz/pdf) was my working sample of how to *
|
||||
* Thanks: Cpdf (http://www.ros.co.nz/pdf) was my working sample of how to *
|
||||
* implement protection in pdf. *
|
||||
****************************************************************************/
|
||||
|
||||
|
@ -23,7 +23,7 @@ These 2 attributes do the same thing?!?:
|
||||
TODO (in the future...):
|
||||
- Make font-family, font-size, lineheight customizable
|
||||
- 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
|
||||
- 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)
|
||||
@ -231,7 +231,7 @@ function HTML2FPDF($orientation='P',$unit='mm',$format='A4')
|
||||
|
||||
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
|
||||
$this->basepath = dirname($str) . "/";
|
||||
$this->basepath = str_replace("\\","/",$this->basepath); //If on Windows
|
||||
@ -675,7 +675,7 @@ function OpenTag($tag,$attr)
|
||||
case 'H4': // 1 * fontsize
|
||||
case 'H5': // 0.83 * 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'])];
|
||||
$this->buffer_on = true;
|
||||
if ($this->x != $this->lMargin) $this->Ln(2*$this->lineheight);
|
||||
@ -2162,7 +2162,7 @@ function ReadMetaTags($html)
|
||||
}
|
||||
}
|
||||
//Comercial do Aplicativo usado (no caso um script):
|
||||
$this->SetCreator("HTML2FPDF >> https://html2fpdf.sf.net");
|
||||
$this->SetCreator("HTML2FPDF >> http://html2fpdf.sf.net");
|
||||
}
|
||||
|
||||
//////////////////
|
||||
@ -2359,7 +2359,7 @@ function setCSS($arrayaux)
|
||||
$v = strtoupper($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);
|
||||
break;
|
||||
case 'X-SMALL': $this->SetFontSize( (0.77) * 11);
|
||||
@ -2631,7 +2631,7 @@ function _tableWidth(&$table){
|
||||
{
|
||||
if (!count($list))
|
||||
{//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
|
||||
//$wi = $table['w'] - $wis;
|
||||
$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');
|
||||
//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');
|
||||
//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} == '#') //case of #nnnnnn or #nnn
|
||||
|
Reference in New Issue
Block a user