Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: com-tecnick-tcpdf

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Element index for package com-tecnick-tcpdf

Other package element indexes


a b c d e f g h i k l m n o p r s t u w x y z _
_
Method _begindoc
TCPDF::_begindoc() in tcpdf.php
Start document
Method _beginpage
TCPDF::_beginpage() in tcpdf.php
_beginpage
Method _dochecks
TCPDF::_dochecks() in tcpdf.php
Check for locale-related bug
Method _dounderline
Underline text
Method _enddoc
TCPDF::_enddoc() in tcpdf.php
_enddoc
Method _endpage
TCPDF::_endpage() in tcpdf.php
End of page contents
Method _escape
TCPDF::_escape() in tcpdf.php
Add \ before \, ( and )
Method _escapetext
Format a text string
Method _freadint
TCPDF::_freadint() in tcpdf.php
Read a 4-byte integer from file
Method _getfontpath
Return fonts path
Method _newobj
TCPDF::_newobj() in tcpdf.php
Begin a new object
Method _out
TCPDF::_out() in tcpdf.php
Add a line to the document
Method _parsejpg
TCPDF::_parsejpg() in tcpdf.php
Extract info from a JPEG file
Method _parsepng
TCPDF::_parsepng() in tcpdf.php
Extract info from a PNG file
Method _putcatalog
_putcatalog
Method _putfonts
TCPDF::_putfonts() in tcpdf.php
Adds fonts
Method _putheader
TCPDF::_putheader() in tcpdf.php
_putheader
Method _putimages
TCPDF::_putimages() in tcpdf.php
_putimages
Method _putinfo
TCPDF::_putinfo() in tcpdf.php
_putinfo
Method _putpages
TCPDF::_putpages() in tcpdf.php
_putpages
Method _putresourcedict
_putresourcedict
Method _putresources
_putresources
Method _putstream
TCPDF::_putstream() in tcpdf.php
Method _puttrailer
_puttrailer
Method _puttruetypeunicode
Adds unicode fonts.
Method _putxobjectdict
_putxobjectdict
Method _textstring
Format a text string
a
Variable $AliasNbPages
Variable $author
TCPDF::$author in tcpdf.php
Variable $AutoPageBreak
Method AcceptPageBreak
Whenever a page break condition is met, the method is called, and the break is issued or not depending on the returned value. The default implementation returns a value according to the mode selected by SetAutoPageBreak().
Method AddFont
TCPDF::AddFont() in tcpdf.php
Imports a TrueType or Type1 font and makes it available. It is necessary to generate a font definition file first with the makefont.php utility. The definition file (and the font file itself when embedding) must be present either in the current directory or in the one indicated by FPDF_FONTPATH if the constant is defined. If it could not be found, the error "Could not include font definition file" is generated.
Method addHtmlLink
Output anchor link.
Method AddLink
TCPDF::AddLink() in tcpdf.php
Creates a new internal link and returns its identifier. An internal link is a clickable area which directs to another place within the document.
The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is defined with SetLink().
Method AddPage
TCPDF::AddPage() in tcpdf.php
Adds a new page to the document. If a page is already present, the Footer() method is called first to output the footer. Then the page is added, the current position set to the top-left corner according to the left and top margins, and Header() is called to display the header.
Method AliasNbPages
Defines an alias for the total number of pages. It will be substituted as the document is closed.
b
Variable $bMargin
TCPDF::$bMargin in tcpdf.php
Variable $buffer
TCPDF::$buffer in tcpdf.php
c
Variable $cMargin
TCPDF::$cMargin in tcpdf.php
Variable $ColorFlag
TCPDF::$ColorFlag in tcpdf.php
Variable $compress
TCPDF::$compress in tcpdf.php
Variable $CoreFonts
TCPDF::$CoreFonts in tcpdf.php
Variable $creator
TCPDF::$creator in tcpdf.php
Variable $CurOrientation
Variable $CurrentFont
TCPDF::$CurrentFont in tcpdf.php
Method Cell
TCPDF::Cell() in tcpdf.php
Prints a cell (rectangular area) with optional borders, background color and character string. The upper-left corner of the cell corresponds to the current position. The text can be aligned or centered. After the call, the current position moves to the right or to the next line. It is possible to put a link on the text.
If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
Method Close
TCPDF::Close() in tcpdf.php
Terminates the PDF document. It is not necessary to call this method explicitly because Output() does it automatically. If the document contains no page, AddPage() is called to prevent from getting an invalid document.
d
Variable $DefOrientation
Variable $diffs
TCPDF::$diffs in tcpdf.php
Variable $DrawColor
TCPDF::$DrawColor in tcpdf.php
e
Method Error
TCPDF::Error() in tcpdf.php
This method is automatically called in case of fatal error; it simply outputs the message and halts the execution. An inherited class may override it to customize the error handling but should always halt the script, or the resulting document would probably be invalid.
File eng.php
eng.php in eng.php
f
Variable $fh
TCPDF::$fh in tcpdf.php
Variable $fhPt
TCPDF::$fhPt in tcpdf.php
Variable $FillColor
TCPDF::$FillColor in tcpdf.php
Variable $FontFamily
TCPDF::$FontFamily in tcpdf.php
Variable $FontFiles
TCPDF::$FontFiles in tcpdf.php
Variable $fonts
TCPDF::$fonts in tcpdf.php
Variable $FontSize
TCPDF::$FontSize in tcpdf.php
Variable $FontSizePt
TCPDF::$FontSizePt in tcpdf.php
Variable $FontStyle
TCPDF::$FontStyle in tcpdf.php
Variable $fw
TCPDF::$fw in tcpdf.php
Variable $fwPt
TCPDF::$fwPt in tcpdf.php
Method Footer
TCPDF::Footer() in tcpdf.php
This method is used to render the page footer.
Constant FPDF_FONTPATH
FPDF_FONTPATH in tcpdf_config.php
path for PDF fonts
g
Method getBreakMargin
Returns the page break margin.
Method getImageScale
Returns the image scale.
Method getPageHeight
Returns the page height in units.
Method getPageWidth
Returns the page width in units.
Method getPDFData
TCPDF::getPDFData() in tcpdf.php
Returns the PDF data.
Method getScaleFactor
Returns the scale factor (number of points in user unit).
Method GetStringWidth
Returns the length of a string in user unit. A font must be selected.
Method GetX
TCPDF::GetX() in tcpdf.php
Returns the abscissa of the current position.
Method GetY
TCPDF::GetY() in tcpdf.php
Returns the ordinate of the current position.
h
Variable $h
TCPDF::$h in tcpdf.php
Variable $hPt
TCPDF::$hPt in tcpdf.php
Method Header
TCPDF::Header() in tcpdf.php
This method is used to render the page header.
Constant HEAD_MAGNIFICATION
HEAD_MAGNIFICATION in tcpdf_config.php
magnification factor for titles
i
Variable $images
TCPDF::$images in tcpdf.php
Variable $imgscale
TCPDF::$imgscale in tcpdf.php
Variable $img_rb_x
TCPDF::$img_rb_x in tcpdf.php
Variable $img_rb_y
TCPDF::$img_rb_y in tcpdf.php
Variable $InFooter
TCPDF::$InFooter in tcpdf.php
Variable $isunicode
TCPDF::$isunicode in tcpdf.php
Method Image
TCPDF::Image() in tcpdf.php
Puts an image in the page. The upper-left corner must be given. The dimensions can be specified in different ways:
  • explicit width and height (expressed in user unit)
  • one explicit dimension, the other being calculated automatically in order to keep the original proportions
  • no explicit dimension, in which case the image is put at 72 dpi
Supported formats are JPEG and PNG.
k
Variable $k
TCPDF::$k in tcpdf.php
Variable $keywords
TCPDF::$keywords in tcpdf.php
Constant K_BLANK_IMAGE
K_BLANK_IMAGE in tcpdf_config.php
blank image
Constant K_CELL_HEIGHT_RATIO
K_CELL_HEIGHT_RATIO in tcpdf_config.php
height of cell repect font height
Constant K_PATH_CACHE
K_PATH_CACHE in tcpdf_config.php
cache directory for temporary files (full path)
Constant K_PATH_IMAGES
K_PATH_IMAGES in tcpdf_config.php
images directory
Constant K_PATH_MAIN
K_PATH_MAIN in tcpdf_config.php
installation path
Constant K_PATH_URL
K_PATH_URL in tcpdf_config.php
url path
Constant K_PATH_URL_CACHE
K_PATH_URL_CACHE in tcpdf_config.php
cache directory for temporary files (url path)
Constant K_SMALL_RATIO
K_SMALL_RATIO in tcpdf_config.php
reduction factor for small font
Constant K_TITLE_MAGNIFICATION
K_TITLE_MAGNIFICATION in tcpdf_config.php
title magnification respect main font size
l
Variable $lasth
TCPDF::$lasth in tcpdf.php
Variable $LayoutMode
TCPDF::$LayoutMode in tcpdf.php
Variable $LineWidth
TCPDF::$LineWidth in tcpdf.php
Variable $links
TCPDF::$links in tcpdf.php
Variable $lMargin
TCPDF::$lMargin in tcpdf.php
Method Line
TCPDF::Line() in tcpdf.php
Draws a line between two points.
Method Link
TCPDF::Link() in tcpdf.php
Puts a link on a rectangular area of the page. Text or image links are generally put via Cell(), Write() or Image(), but this method can be useful for instance to define a clickable area inside an image.
Method Ln
TCPDF::Ln() in tcpdf.php
Performs a line break. The current abscissa goes back to the left margin and the ordinate increases by the amount passed in parameter.
m
Method MultiCell
TCPDF::MultiCell() in tcpdf.php
This method allows printing text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the \n character). As many cells as necessary are output, one below the other.
Text can be aligned, centered or justified. The cell block can be framed and the background painted.
n
Variable $n
TCPDF::$n in tcpdf.php
o
Variable $offsets
TCPDF::$offsets in tcpdf.php
Variable $OrientationChanges
Method Open
TCPDF::Open() in tcpdf.php
This method begins the generation of the PDF document. It is not necessary to call it explicitly because AddPage() does it automatically.
Method Output
TCPDF::Output() in tcpdf.php
Send the document to a given destination: string, local file or browser. In the last case, the plug-in may be used (if present) or a download ("Save as" dialog box) may be forced.
The method first calls Close() if necessary to terminate the document.
p
Variable $page
TCPDF::$page in tcpdf.php
Variable $PageBreakTrigger
Variable $PageLinks
TCPDF::$PageLinks in tcpdf.php
Variable $pages
TCPDF::$pages in tcpdf.php
Variable $PDFVersion
TCPDF::$PDFVersion in tcpdf.php
Method PageNo
TCPDF::PageNo() in tcpdf.php
Returns the current page number.
Constant PDF_AUTHOR
PDF_AUTHOR in tcpdf_config.php
document author
Constant PDF_CREATOR
PDF_CREATOR in tcpdf_config.php
document creator
Constant PDF_FONT_NAME_DATA
PDF_FONT_NAME_DATA in tcpdf_config.php
data font name
Constant PDF_FONT_NAME_MAIN
PDF_FONT_NAME_MAIN in tcpdf_config.php
main font name
Constant PDF_FONT_SIZE_DATA
PDF_FONT_SIZE_DATA in tcpdf_config.php
data font size
Constant PDF_FONT_SIZE_MAIN
PDF_FONT_SIZE_MAIN in tcpdf_config.php
main font size
Constant PDF_HEADER_LOGO
PDF_HEADER_LOGO in tcpdf_config.php
image logo
Constant PDF_HEADER_LOGO_WIDTH
PDF_HEADER_LOGO_WIDTH in tcpdf_config.php
header logo image width [mm]
Constant PDF_HEADER_STRING
PDF_HEADER_STRING in tcpdf_config.php
header description string
Constant PDF_HEADER_TITLE
PDF_HEADER_TITLE in tcpdf_config.php
header title
Constant PDF_IMAGE_SCALE_RATIO
PDF_IMAGE_SCALE_RATIO in tcpdf_config.php
scale factor for images (number of points in user unit)
Constant PDF_MARGIN_BOTTOM
PDF_MARGIN_BOTTOM in tcpdf_config.php
bottom margin
Constant PDF_MARGIN_FOOTER
PDF_MARGIN_FOOTER in tcpdf_config.php
footer margin
Constant PDF_MARGIN_HEADER
PDF_MARGIN_HEADER in tcpdf_config.php
header margin
Constant PDF_MARGIN_LEFT
PDF_MARGIN_LEFT in tcpdf_config.php
left margin
Constant PDF_MARGIN_RIGHT
PDF_MARGIN_RIGHT in tcpdf_config.php
right margin
Constant PDF_MARGIN_TOP
PDF_MARGIN_TOP in tcpdf_config.php
top margin
Constant PDF_PAGE_FORMAT
PDF_PAGE_FORMAT in tcpdf_config.php
page format
Constant PDF_PAGE_ORIENTATION
PDF_PAGE_ORIENTATION in tcpdf_config.php
page orientation (P=portrait, L=landscape)
Constant PDF_PRODUCER
PDF_PRODUCER in tcpdf.php
define default PDF document producer
Constant PDF_UNIT
PDF_UNIT in tcpdf_config.php
document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
r
Variable $rMargin
TCPDF::$rMargin in tcpdf.php
Method Rect
TCPDF::Rect() in tcpdf.php
Outputs a rectangle. It can be drawn (border only), filled (with no border) or both.
s
Variable $state
TCPDF::$state in tcpdf.php
Variable $subject
TCPDF::$subject in tcpdf.php
Method SetAuthor
TCPDF::SetAuthor() in tcpdf.php
Defines the author of the document.
Method SetAutoPageBreak
Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.
Method setBarcode
TCPDF::setBarcode() in tcpdf.php
Set document barcode.
Method SetCompression
Activates or deactivates page compression. When activated, the internal representation of each page is compressed, which leads to a compression ratio of about 2 for the resulting document. Compression is on by default.
Method SetCreator
TCPDF::SetCreator() in tcpdf.php
Defines the creator of the document. This is typically the name of the application that generates the PDF.
Method SetDisplayMode
Defines the way the document is to be displayed by the viewer. The zoom level can be set: pages can be displayed entirely on screen, occupy the full width of the window, use real size, be scaled by a specific zooming factor or use viewer default (configured in the Preferences menu of Acrobat). The page layout can be specified too: single at once, continuous display, two columns or viewer default. By default, documents use the full width mode with continuous display.
Method SetDrawColor
Defines the color used for all drawing operations (lines, rectangles and cell borders). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
Method SetFillColor
Defines the color used for all filling operations (filled rectangles and cell backgrounds). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
Method SetFont
TCPDF::SetFont() in tcpdf.php
Sets the font used to print character strings. It is mandatory to call this method at least once before printing text or the resulting document would not be valid.
Method SetFontSize
Defines the size of the current font.
Method setFooterFont
Set footer font.
Method setFooterMargin
Set footer margin.
Method setHeaderData
Set header data.
Method setHeaderFont
Set header font.
Method setHeaderMargin
Set header margin.
Method setImageScale
Set the image scale.
Method SetKeywords
Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'.
Method setLanguageArray
Set language array.
Method SetLeftMargin
Defines the left margin. The method can be called before creating the first page. If the current abscissa gets out of page, it is brought back to the margin.
Method SetLineWidth
Defines the line width. By default, the value equals 0.2 mm. The method can be called before the first page is created and the value is retained from page to page.
Method SetLink
TCPDF::SetLink() in tcpdf.php
Defines the page and position a link points to
Method SetMargins
TCPDF::SetMargins() in tcpdf.php
Defines the left, top and right margins. By default, they equal 1 cm. Call this method to change them.
Method SetRightMargin
Defines the right margin. The method can be called before creating the first page.
Method SetSubject
TCPDF::SetSubject() in tcpdf.php
Defines the subject of the document.
Method SetTextColor
Defines the color used for text. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
Method SetTitle
TCPDF::SetTitle() in tcpdf.php
Defines the title of the document.
Method SetTopMargin
Defines the top margin. The method can be called before creating the first page.
Method SetX
TCPDF::SetX() in tcpdf.php
Defines the abscissa of the current position. If the passed value is negative, it is relative to the right of the page.
Method SetXY
TCPDF::SetXY() in tcpdf.php
Defines the abscissa and ordinate of the current position. If the passed values are negative, they are relative respectively to the right and bottom of the page.
Method SetY
TCPDF::SetY() in tcpdf.php
Moves the current abscissa back to the left margin and sets the ordinate. If the passed value is negative, it is relative to the bottom of the page.
t
Variable $TextColor
TCPDF::$TextColor in tcpdf.php
Variable $title
TCPDF::$title in tcpdf.php
Variable $tMargin
TCPDF::$tMargin in tcpdf.php
Class TCPDF
TCPDF in tcpdf.php
This is a PHP4 class for generating PDF files on-the-fly without requiring external extensions.
Constructor TCPDF
TCPDF::TCPDF() in tcpdf.php
This is the class constructor.
File tcpdf_config.php
tcpdf_config.php in tcpdf_config.php
File tcpdf.php
tcpdf.php in tcpdf.php
Method Text
TCPDF::Text() in tcpdf.php
Prints a character string. The origin is on the left of the first charcter, on the baseline. This method allows to place a string precisely on the page, but it is usually easier to use Cell(), MultiCell() or Write() which are the standard methods to print text.
u
Variable $underline
TCPDF::$underline in tcpdf.php
Method unhtmlentities
Reverse function for htmlentities.
Method unNbsp
TCPDF::unNbsp() in tcpdf.php
Method UTF8StringToArray
Converts UTF-8 strings to codepoints array.
Method UTF8ToUTF16BE
Converts UTF-8 strings to UTF16-BE.
w
Variable $w
TCPDF::$w in tcpdf.php
Variable $wPt
TCPDF::$wPt in tcpdf.php
Variable $ws
TCPDF::$ws in tcpdf.php
Method Write
TCPDF::Write() in tcpdf.php
This method prints text from the current position. When the right margin is reached (or the \n character is met) a line break occurs and text continues from the left margin. Upon method exit, the current position is left just at the end of the text. It is possible to put a link on the text.
Method writeHTML
TCPDF::writeHTML() in tcpdf.php
Allows to preserve some HTML formatting.
Method writeHTMLCell
Prints a cell (rectangular area) with optional borders, background color and html text string. The upper-left corner of the cell corresponds to the current position. After the call, the current position moves to the right or to the next line.
If automatic page breaking is enabled and the cell goes beyond the limit, a page break is done before outputting.
x
Variable $x
TCPDF::$x in tcpdf.php
y
Variable $y
TCPDF::$y in tcpdf.php
z
Variable $ZoomMode
TCPDF::$ZoomMode in tcpdf.php
a b c d e f g h i k l m n o p r s t u w x y z _

Documentation generated on Mon, 05 Mar 2007 20:51:47 +0000 by phpDocumentor 1.3.1