SafeFPDF
MMO\pdf · 1 symbole · générée le 30 Nov 2026
SafeFPDF
SafeFPDF.php:16FPDF, reading only what Resources allows: an image (Image()) of an allowed folder or address, a font (AddFont(), a php file FPDF includes) of FPDF's font folder or an allowed one. What SimplePdf draws with; an application making its PDF with FPDF itself uses this class rather than \FPDF.
- Espace de noms
MMO\pdf- Étend
FPDF
Index
| AddFont($family, $style, $file, $dir) | FPDF's, once the font's definition is checked: FPDF includes it, a php file | |
| Image($file, $x, $y, $w, $h, $type, $link) | FPDF's, once $file is checked (FPDF types none of its parameters: neither can this override) |
Méthodes2
AddFont($family, $style, $file, $dir)
SafeFPDF.php:43FPDF's, once the font's definition is checked: FPDF includes it, a php file
| $family | ||
| $style = '' | ||
| $file = '' | the definition's name, in $dir (no /) | |
| $dir = '' | FPDF's font folder by default | |
| retourne | void | |
| lève | (403) if the font's definition is neither in FPDF's font folder nor in an allowed one |
Image($file, $x, $y, $w, $h, $type, $link)
SafeFPDF.php:28FPDF's, once $file is checked (FPDF types none of its parameters: neither can this override)
Membres hérités (146)
| Constantes | Déclaré par | Description | |
|---|---|---|---|
VERSION | FPDF |
| Propriétés | Déclaré par | Description | |
|---|---|---|---|
AliasNbPages | FPDF | ||
AutoPageBreak | FPDF | ||
bMargin | FPDF | ||
buffer | FPDF | ||
cmaps | FPDF | ||
cMargin | FPDF | ||
ColorFlag | FPDF | ||
compress | FPDF | ||
CoreFonts | FPDF | ||
CreationDate | FPDF | ||
CurOrientation | FPDF | ||
CurPageSize | FPDF | ||
CurrentFont | FPDF | ||
CurRotation | FPDF | ||
DefOrientation | FPDF | ||
DefPageSize | FPDF | ||
DrawColor | FPDF | ||
encodings | FPDF | ||
FillColor | FPDF | ||
FontFamily | FPDF | ||
FontFiles | FPDF | ||
fontpath | FPDF | ||
fonts | FPDF | ||
FontSize | FPDF | ||
FontSizePt | FPDF | ||
FontStyle | FPDF | ||
h | FPDF | ||
hPt | FPDF | ||
iconv | FPDF | ||
images | FPDF | ||
InFooter | FPDF | ||
InHeader | FPDF | ||
k | FPDF | ||
lasth | FPDF | ||
LayoutMode | FPDF | ||
LineWidth | FPDF | ||
links | FPDF | ||
lMargin | FPDF | ||
metadata | FPDF | ||
n | FPDF | ||
offsets | FPDF | ||
page | FPDF | ||
PageBreakTrigger | FPDF | ||
PageInfo | FPDF | ||
PageLinks | FPDF | ||
pages | FPDF | ||
PDFVersion | FPDF | ||
rMargin | FPDF | ||
state | FPDF | ||
StdPageSizes | FPDF | ||
TextColor | FPDF | ||
tMargin | FPDF | ||
underline | FPDF | ||
w | FPDF | ||
WithAlpha | FPDF | ||
wPt | FPDF | ||
ws | FPDF | ||
x | FPDF | ||
y | FPDF | ||
ZoomMode | FPDF |
| Méthodes | Déclaré par | Description | |
|---|---|---|---|
AcceptPageBreak() | FPDF | ||
AddLink() | FPDF | ||
AddPage($orientation, $size, $rotation) | FPDF | ||
AliasNbPages($alias) | FPDF | ||
Cell($w, $h, $txt, $border, $ln, $align, $fill, $link) | FPDF | ||
Close() | FPDF | ||
Error($msg) | FPDF | ||
Footer() | FPDF | ||
GetPageHeight() | FPDF | ||
GetPageWidth() | FPDF | ||
GetStringWidth($s) | FPDF | ||
GetX() | FPDF | ||
GetY() | FPDF | ||
Header() | FPDF | ||
Line($x1, $y1, $x2, $y2) | FPDF | ||
Link($x, $y, $w, $h, $link) | FPDF | ||
Ln($h) | FPDF | ||
MultiCell($w, $h, $txt, $border, $align, $fill) | FPDF | ||
Output($dest, $name, $isUTF8) | FPDF | ||
PageNo() | FPDF | ||
Rect($x, $y, $w, $h, $style) | FPDF | ||
SetAuthor($author, $isUTF8) | FPDF | ||
SetAutoPageBreak($auto, $margin) | FPDF | ||
SetCompression($compress) | FPDF | ||
SetCreator($creator, $isUTF8) | FPDF | ||
SetDisplayMode($zoom, $layout) | FPDF | ||
SetDrawColor($r, $g, $b) | FPDF | ||
SetFillColor($r, $g, $b) | FPDF | ||
SetFont($family, $style, $size) | FPDF | ||
SetFontSize($size) | FPDF | ||
SetKeywords($keywords, $isUTF8) | FPDF | ||
SetLeftMargin($margin) | FPDF | ||
SetLineWidth($width) | FPDF | ||
SetLink($link, $y, $page) | FPDF | ||
SetMargins($left, $top, $right) | FPDF | ||
SetRightMargin($margin) | FPDF | ||
SetSubject($subject, $isUTF8) | FPDF | ||
SetTextColor($r, $g, $b) | FPDF | ||
SetTitle($title, $isUTF8) | FPDF | ||
SetTopMargin($margin) | FPDF | ||
SetX($x) | FPDF | ||
SetXY($x, $y) | FPDF | ||
SetY($y, $resetX) | FPDF | ||
Text($x, $y, $txt) | FPDF | ||
Write($h, $txt, $link) | FPDF | ||
_beginpage($orientation, $size, $rotation) | FPDF | ||
_checkoutput() | FPDF | ||
_dounderline($x, $y, $txt) | FPDF | ||
_enddoc() | FPDF | ||
_endpage() | FPDF | ||
_escape($s) | FPDF | ||
_getoffset() | FPDF | ||
_getpagesize($size) | FPDF | ||
_httpencode($param, $value, $isUTF8) | FPDF | ||
_isascii($s) | FPDF | ||
_loadfont($path) | FPDF | ||
_newobj($n) | FPDF | ||
_out($s) | FPDF | ||
_parsegif($file) | FPDF | ||
_parsejpg($file) | FPDF | ||
_parsepng($file) | FPDF | ||
_parsepngstream($f, $file) | FPDF | ||
_put($s) | FPDF | ||
_putcatalog() | FPDF | ||
_putfonts() | FPDF | ||
_putheader() | FPDF | ||
_putimage($info) | FPDF | ||
_putimages() | FPDF | ||
_putinfo() | FPDF | ||
_putlinks($n) | FPDF | ||
_putpage($n) | FPDF | ||
_putpages() | FPDF | ||
_putresourcedict() | FPDF | ||
_putresources() | FPDF | ||
_putstream($data) | FPDF | ||
_putstreamobject($data) | FPDF | ||
_puttrailer() | FPDF | ||
_putxobjectdict() | FPDF | ||
_readint($f) | FPDF | ||
_readstream($f, $n) | FPDF | ||
_textstring($s) | FPDF | ||
_tounicodecmap($uv) | FPDF | ||
_UTF8encode($s) | FPDF | ||
_UTF8toUTF16($s) | FPDF | ||
__construct($orientation, $unit, $size) | FPDF |