FPDF Class Reference

Inheritance diagram for FPDF:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 FPDF ($orientation=P', $unit=mm', $format=A4')
 SetMargins ($left, $top, $right=-1)
 SetLeftMargin ($margin)
 SetTopMargin ($margin)
 SetRightMargin ($margin)
 SetAutoPageBreak ($auto, $margin=0)
 SetDisplayMode ($zoom, $layout=continuous')
 SetCompression ($compress)
 SetTitle ($title)
 SetSubject ($subject)
 SetAuthor ($author)
 SetKeywords ($keywords)
 SetCreator ($creator)
 AliasNbPages ($alias={nb}')
 Error ($msg)
 Open ()
 Close ()
 AddPage ($orientation=')
 Header ()
 Footer ()
 PageNo ()
 SetDrawColor ($r, $g=-1, $b=-1)
 SetFillColor ($r, $g=-1, $b=-1)
 SetTextColor ($r, $g=-1, $b=-1)
 GetStringWidth ($s)
 SetLineWidth ($width)
 Line ($x1, $y1, $x2, $y2)
 Rect ($x, $y, $w, $h, $style=')
 AddFont ($family, $style=', $file=')
 SetFont ($family, $style=', $size=0)
 SetFontSize ($size)
 AddLink ()
 SetLink ($link, $y=0, $page=-1)
 Link ($x, $y, $w, $h, $link)
 Text ($x, $y, $txt)
 AcceptPageBreak ()
 Cell ($w, $h=0, $txt=', $border=0, $ln=0, $align=', $fill=0, $link=')
 MultiCell ($w, $h, $txt, $border=0, $align=J', $fill=0)
 Write ($h, $txt, $link=')
 Image ($file, $x, $y, $w=0, $h=0, $type=', $link=')
 Ln ($h=')
 GetX ()
 SetX ($x)
 GetY ()
 SetY ($y)
 SetXY ($x, $y)
 Output ($name=', $dest=')
 _dochecks ()
 _begindoc ()
 _strreplace ($what, $to, $where)
 _putpages ()
 _putfonts ()
 _putimages ()
 _putresources ()
 _putinfo ()
 _putcatalog ()
 _puttrailer ()
 _enddoc ()
 _beginpage ($orientation)
 _endpage ()
 _newobj ()
 _dounderline ($x, $y, $txt)
 _parsejpg ($file)
 _parsepng ($file)
 _freadint ($f)
 _textstring ($s)
 _escape ($s)
 _putstream ($s)
 _out ($s)

Public Attributes

 $page
 $n
 $offsets
 $buffer
 $pages
 $state
 $compress
 $DefOrientation
 $CurOrientation
 $OrientationChanges
 $k
 $fwPt
 $fhPt
 $fw
 $fh
 $wPt
 $hPt
 $w
 $h
 $lMargin
 $tMargin
 $rMargin
 $bMargin
 $cMargin
 $x
 $y
 $lasth
 $LineWidth
 $CoreFonts
 $fonts
 $FontFiles
 $diffs
 $images
 $PageLinks
 $links
 $FontFamily
 $FontStyle
 $underline
 $CurrentFont
 $FontSizePt
 $FontSize
 $DrawColor
 $FillColor
 $TextColor
 $ColorFlag
 $ws
 $AutoPageBreak
 $PageBreakTrigger
 $InFooter
 $ZoomMode
 $LayoutMode
 $title
 $subject
 $author
 $keywords
 $creator
 $AliasNbPages

Detailed Description

Definition at line 16 of file fpdf.php.


Constructor & Destructor Documentation

FPDF::FPDF orientation = P',
unit = mm',
format = A4'
 

Definition at line 77 of file fpdf.php.

References _dochecks(), Courier, Error(), fw(), Helvetica, margin, pages, SetAutoPageBreak(), SetCompression(), SetDisplayMode(), and SetMargins().

Referenced by UFPDF::UFPDF().


Member Function Documentation

FPDF::_begindoc  ) 
 

Definition at line 1079 of file fpdf.php.

References _out().

Referenced by Open().

FPDF::_beginpage orientation  ) 
 

Definition at line 1410 of file fpdf.php.

References fw(), and pages.

Referenced by AddPage().

FPDF::_dochecks  ) 
 

Definition at line 1069 of file fpdf.php.

References Error().

Referenced by FPDF().

FPDF::_dounderline x,
y,
txt
 

Definition at line 1463 of file fpdf.php.

References $up, $ut, $w, and GetStringWidth().

FPDF::_enddoc  ) 
 

Definition at line 1376 of file fpdf.php.

References $i, _newobj(), _out(), _putcatalog(), _putinfo(), _putpages(), _putresources(), and _puttrailer().

Referenced by Close().

FPDF::_endpage  ) 
 

Definition at line 1449 of file fpdf.php.

Referenced by AddPage(), and Close().

FPDF::_escape s  ) 
 

Definition at line 1595 of file fpdf.php.

FPDF::_freadint f  ) 
 

Definition at line 1579 of file fpdf.php.

References $i.

Referenced by _parsepng().

FPDF::_newobj  ) 
 

Definition at line 1455 of file fpdf.php.

References _out().

Referenced by _enddoc(), _putfonts(), _putimages(), _putpages(), and UFPDF::_puttruetypeunicode().

FPDF::_out s  ) 
 

Definition at line 1608 of file fpdf.php.

References pages.

Referenced by _begindoc(), _enddoc(), _newobj(), _putcatalog(), _putfonts(), _putimages(), UFPDF::_putinfo(), _putinfo(), _putpages(), _putresources(), _putstream(), _puttrailer(), UFPDF::_puttruetypeunicode(), AddPage(), UFPDF::Cell(), Cell(), Image(), Line(), MultiCell(), Rect(), SetDrawColor(), SetFillColor(), SetFont(), SetFontSize(), SetLineWidth(), UFPDF::Text(), and Text().

FPDF::_parsejpg file  ) 
 

Definition at line 1472 of file fpdf.php.

References $data, a, and Error().

Referenced by Image().

FPDF::_parsepng file  ) 
 

Definition at line 1496 of file fpdf.php.

References $data, $h, $n, $pos, $type, $w, _freadint(), a, Error(), and pos.

Referenced by Image().

FPDF::_putcatalog  ) 
 

Definition at line 1349 of file fpdf.php.

References _out().

Referenced by _enddoc().

FPDF::_putfonts  ) 
 

Definition at line 1161 of file fpdf.php.

References $cw, $file, $i, $k, $name, $size, $type, _newobj(), _out(), _putstream(), Error(), and size.

Referenced by _putresources().

FPDF::_putimages  ) 
 

Definition at line 1263 of file fpdf.php.

References $file, $i, _newobj(), _out(), _putstream(), and Image().

Referenced by _putresources().

FPDF::_putinfo  ) 
 

Reimplemented in UFPDF.

Definition at line 1333 of file fpdf.php.

References _out().

Referenced by _enddoc().

FPDF::_putpages  ) 
 

Definition at line 1090 of file fpdf.php.

References $h, $hPt, $i, $n, $wPt, _newobj(), _out(), _putstream(), _strreplace(), Link(), pages, and Rect().

Referenced by _enddoc().

FPDF::_putresources  ) 
 

Definition at line 1310 of file fpdf.php.

References _out(), _putfonts(), _putimages(), and Text().

Referenced by _enddoc().

FPDF::_putstream s  ) 
 

Definition at line 1601 of file fpdf.php.

References _out().

Referenced by _putfonts(), _putimages(), _putpages(), and UFPDF::_puttruetypeunicode().

FPDF::_puttrailer  ) 
 

Definition at line 1369 of file fpdf.php.

References _out().

Referenced by _enddoc().

FPDF::_strreplace what,
to,
where
 

Reimplemented in UFPDF.

Definition at line 1086 of file fpdf.php.

Referenced by _putpages().

FPDF::_textstring s  ) 
 

Reimplemented in UFPDF.

Definition at line 1589 of file fpdf.php.

FPDF::AcceptPageBreak  ) 
 

Reimplemented in UFPDF.

Definition at line 616 of file fpdf.php.

Referenced by Cell().

FPDF::AddFont family,
style = ',
file = '
 

Reimplemented in UFPDF.

Definition at line 460 of file fpdf.php.

References $diff, $file, $i, $type, Error(), family, and style.

FPDF::AddLink  ) 
 

Definition at line 581 of file fpdf.php.

References $n.

FPDF::AddPage orientation = '  ) 
 

Definition at line 306 of file fpdf.php.

References $size, _beginpage(), _endpage(), _out(), family, Footer(), Header(), Open(), SetFont(), size, and style.

Referenced by UFPDF::Cell(), Cell(), and Close().

FPDF::AliasNbPages  ) 
 

Definition at line 270 of file fpdf.php.

References $alias.

FPDF::Cell w,
h = 0,
txt = ',
border = 0,
ln = 0,
align = ',
fill = 0,
link = '
 

Reimplemented in UFPDF.

Definition at line 622 of file fpdf.php.

References $h, $k, $w, $ws, $x, $y, _out(), AcceptPageBreak(), AddPage(), GetStringWidth(), and Link().

Referenced by MultiCell(), and Write().

FPDF::Close  ) 
 

Definition at line 289 of file fpdf.php.

References _enddoc(), _endpage(), AddPage(), and Footer().

Referenced by Output().

FPDF::Error msg  ) 
 

Definition at line 276 of file fpdf.php.

Referenced by _dochecks(), _parsejpg(), _parsepng(), _putfonts(), UFPDF::_puttruetypeunicode(), UFPDF::AddFont(), AddFont(), FPDF(), Image(), Output(), SetDisplayMode(), and SetFont().

FPDF::Footer  ) 
 

Definition at line 378 of file fpdf.php.

Referenced by AddPage(), and Close().

FPDF::GetStringWidth s  ) 
 

Reimplemented in UFPDF.

Definition at line 422 of file fpdf.php.

References $cw, $i, and $w.

Referenced by _dounderline(), and Cell().

FPDF::GetX  ) 
 

Definition at line 955 of file fpdf.php.

FPDF::GetY  ) 
 

Definition at line 970 of file fpdf.php.

FPDF::Header  ) 
 

Definition at line 373 of file fpdf.php.

Referenced by AddPage(), and Output().

FPDF::Image file,
x,
y,
w = 0,
h = 0,
type = ',
link = '
 

Definition at line 895 of file fpdf.php.

References $file, $h, $pos, $type, $w, _out(), _parsejpg(), _parsepng(), Error(), Link(), and pos.

Referenced by _putimages().

FPDF::Line x1,
y1,
x2,
y2
 

Definition at line 442 of file fpdf.php.

References _out().

FPDF::Link x,
y,
w,
h,
link
 

Definition at line 599 of file fpdf.php.

Referenced by _putpages(), UFPDF::Cell(), Cell(), and Image().

FPDF::Ln h = '  ) 
 

Definition at line 945 of file fpdf.php.

References $h.

FPDF::MultiCell w,
h,
txt,
border = 0,
align = J',
fill = 0
 

Definition at line 701 of file fpdf.php.

References $b, $cw, $i, $j, $w, _out(), and Cell().

FPDF::Open  ) 
 

Definition at line 282 of file fpdf.php.

References _begindoc().

Referenced by AddPage().

FPDF::Output name = ',
dest = '
 

Definition at line 993 of file fpdf.php.

References $name, Close(), Error(), and Header().

FPDF::PageNo  ) 
 

Definition at line 383 of file fpdf.php.

FPDF::Rect x,
y,
w,
h,
style = '
 

Definition at line 448 of file fpdf.php.

References _out(), and style.

Referenced by _putpages().

FPDF::SetAuthor author  ) 
 

Definition at line 252 of file fpdf.php.

References $author.

FPDF::SetAutoPageBreak auto,
margin = 0
 

Definition at line 210 of file fpdf.php.

Referenced by FPDF().

FPDF::SetCompression compress  ) 
 

Definition at line 231 of file fpdf.php.

References $compress.

Referenced by FPDF().

FPDF::SetCreator creator  ) 
 

Definition at line 264 of file fpdf.php.

References $creator.

FPDF::SetDisplayMode zoom,
layout = continuous'
 

Definition at line 218 of file fpdf.php.

References Error().

Referenced by FPDF().

FPDF::SetDrawColor r,
g = -1,
b = -1
 

Definition at line 389 of file fpdf.php.

References $b, and _out().

FPDF::SetFillColor r,
g = -1,
b = -1
 

Definition at line 400 of file fpdf.php.

References $b, and _out().

FPDF::SetFont family,
style = ',
size = 0
 

Definition at line 507 of file fpdf.php.

References $file, $fpdf_charwidths, $i, $size, _out(), Error(), family, and style.

Referenced by AddPage().

FPDF::SetFontSize size  ) 
 

Definition at line 570 of file fpdf.php.

References $size, and _out().

FPDF::SetKeywords keywords  ) 
 

Definition at line 258 of file fpdf.php.

References $keywords.

FPDF::SetLeftMargin margin  ) 
 

Definition at line 190 of file fpdf.php.

FPDF::SetLineWidth width  ) 
 

Definition at line 434 of file fpdf.php.

References _out().

FPDF::SetLink link,
y = 0,
page = -1
 

Definition at line 589 of file fpdf.php.

References $page, and $y.

FPDF::SetMargins left,
top,
right = -1
 

Definition at line 180 of file fpdf.php.

Referenced by FPDF().

FPDF::SetRightMargin margin  ) 
 

Definition at line 204 of file fpdf.php.

FPDF::SetSubject subject  ) 
 

Definition at line 246 of file fpdf.php.

References $subject.

FPDF::SetTextColor r,
g = -1,
b = -1
 

Definition at line 412 of file fpdf.php.

References $b.

FPDF::SetTitle title  ) 
 

Definition at line 240 of file fpdf.php.

References $title.

FPDF::SetTopMargin margin  ) 
 

Definition at line 198 of file fpdf.php.

FPDF::SetX x  ) 
 

Definition at line 961 of file fpdf.php.

References $x.

Referenced by SetXY().

FPDF::SetXY x,
y
 

Definition at line 986 of file fpdf.php.

References SetX(), and SetY().

FPDF::SetY y  ) 
 

Definition at line 976 of file fpdf.php.

References $y.

Referenced by SetXY().

FPDF::Text x,
y,
txt
 

Reimplemented in UFPDF.

Definition at line 605 of file fpdf.php.

References _out().

Referenced by _putresources().

FPDF::Write h,
txt,
link = '
 

Definition at line 814 of file fpdf.php.

References $cw, $h, $i, $j, $w, and Cell().


Member Data Documentation

FPDF::$AliasNbPages
 

Definition at line 70 of file fpdf.php.

FPDF::$author
 

Definition at line 67 of file fpdf.php.

Referenced by SetAuthor().

FPDF::$AutoPageBreak
 

Definition at line 60 of file fpdf.php.

FPDF::$bMargin
 

Definition at line 37 of file fpdf.php.

FPDF::$buffer
 

Definition at line 22 of file fpdf.php.

FPDF::$cMargin
 

Definition at line 38 of file fpdf.php.

FPDF::$ColorFlag
 

Definition at line 58 of file fpdf.php.

FPDF::$compress
 

Definition at line 25 of file fpdf.php.

Referenced by SetCompression().

FPDF::$CoreFonts
 

Definition at line 42 of file fpdf.php.

FPDF::$creator
 

Definition at line 69 of file fpdf.php.

Referenced by SetCreator().

FPDF::$CurOrientation
 

Definition at line 27 of file fpdf.php.

FPDF::$CurrentFont
 

Definition at line 52 of file fpdf.php.

FPDF::$DefOrientation
 

Definition at line 26 of file fpdf.php.

FPDF::$diffs
 

Definition at line 45 of file fpdf.php.

FPDF::$DrawColor
 

Definition at line 55 of file fpdf.php.

FPDF::$fh
 

Definition at line 31 of file fpdf.php.

FPDF::$fhPt
 

Definition at line 30 of file fpdf.php.

FPDF::$FillColor
 

Definition at line 56 of file fpdf.php.

FPDF::$FontFamily
 

Definition at line 49 of file fpdf.php.

FPDF::$FontFiles
 

Definition at line 44 of file fpdf.php.

FPDF::$fonts
 

Definition at line 43 of file fpdf.php.

FPDF::$FontSize
 

Definition at line 54 of file fpdf.php.

FPDF::$FontSizePt
 

Definition at line 53 of file fpdf.php.

FPDF::$FontStyle
 

Definition at line 50 of file fpdf.php.

FPDF::$fw
 

Definition at line 31 of file fpdf.php.

FPDF::$fwPt
 

Definition at line 30 of file fpdf.php.

FPDF::$h
 

Definition at line 33 of file fpdf.php.

Referenced by _parsepng(), _putpages(), UFPDF::Cell(), Cell(), Image(), Ln(), and Write().

FPDF::$hPt
 

Definition at line 32 of file fpdf.php.

Referenced by _putpages().

FPDF::$images
 

Definition at line 46 of file fpdf.php.

FPDF::$InFooter
 

Definition at line 62 of file fpdf.php.

FPDF::$k
 

Definition at line 29 of file fpdf.php.

Referenced by _putfonts(), UFPDF::_puttruetypeunicode(), UFPDF::Cell(), and Cell().

FPDF::$keywords
 

Definition at line 68 of file fpdf.php.

Referenced by SetKeywords().

FPDF::$lasth
 

Definition at line 40 of file fpdf.php.

FPDF::$LayoutMode
 

Definition at line 64 of file fpdf.php.

FPDF::$LineWidth
 

Definition at line 41 of file fpdf.php.

FPDF::$links
 

Definition at line 48 of file fpdf.php.

FPDF::$lMargin
 

Definition at line 34 of file fpdf.php.

FPDF::$n
 

Definition at line 20 of file fpdf.php.

Referenced by _parsepng(), _putpages(), and AddLink().

FPDF::$offsets
 

Definition at line 21 of file fpdf.php.

FPDF::$OrientationChanges
 

Definition at line 28 of file fpdf.php.

FPDF::$page
 

Definition at line 19 of file fpdf.php.

Referenced by SetLink().

FPDF::$PageBreakTrigger
 

Definition at line 61 of file fpdf.php.

FPDF::$PageLinks
 

Definition at line 47 of file fpdf.php.

FPDF::$pages
 

Definition at line 23 of file fpdf.php.

FPDF::$rMargin
 

Definition at line 36 of file fpdf.php.

FPDF::$state
 

Definition at line 24 of file fpdf.php.

FPDF::$subject
 

Definition at line 66 of file fpdf.php.

Referenced by SetSubject().

FPDF::$TextColor
 

Definition at line 57 of file fpdf.php.

FPDF::$title
 

Definition at line 65 of file fpdf.php.

Referenced by SetTitle().

FPDF::$tMargin
 

Definition at line 35 of file fpdf.php.

FPDF::$underline
 

Definition at line 51 of file fpdf.php.

FPDF::$w
 

Definition at line 33 of file fpdf.php.

Referenced by UFPDF::_dounderline(), _dounderline(), _parsepng(), UFPDF::_puttruetypeunicode(), UFPDF::Cell(), Cell(), UFPDF::GetStringWidth(), GetStringWidth(), Image(), MultiCell(), and Write().

FPDF::$wPt
 

Definition at line 32 of file fpdf.php.

Referenced by _putpages().

FPDF::$ws
 

Definition at line 59 of file fpdf.php.

Referenced by UFPDF::Cell(), and Cell().

FPDF::$x
 

Definition at line 39 of file fpdf.php.

Referenced by UFPDF::Cell(), Cell(), and SetX().

FPDF::$y
 

Definition at line 39 of file fpdf.php.

Referenced by UFPDF::Cell(), Cell(), SetLink(), and SetY().

FPDF::$ZoomMode
 

Definition at line 63 of file fpdf.php.


The documentation for this class was generated from the following file:
Generated on Wed Aug 10 07:56:46 2005 for TYPO3 3.8.0 by  doxygen 1.4.3-20050530