Moodle  2.2.1
http://www.collinsharper.com
TCPDF Class Reference
Inheritance diagram for TCPDF:

Public Member Functions

 __construct ($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding='UTF-8', $diskcache=false, $pdfa=false)
 __destruct ()
 getTCPDFVersion ()
 setPageUnit ($unit)
 getPageSizeFromFormat ($format)
 setPageBoxes ($page, $type, $llx, $lly, $urx, $ury, $points=false)
 setPageOrientation ($orientation, $autopagebreak='', $bottommargin='')
 setSpacesRE ($re='/[^\S\xa0]/')
 setRTL ($enable, $resetx=true)
 getRTL ()
 setTempRTL ($mode)
 isRTLTextDir ()
 setLastH ($h)
 resetLastH ()
 getLastH ()
 setImageScale ($scale)
 getImageScale ()
 getPageDimensions ($pagenum='')
 getPageWidth ($pagenum='')
 getPageHeight ($pagenum='')
 getBreakMargin ($pagenum='')
 getScaleFactor ()
 SetMargins ($left, $top, $right=-1, $keepmargins=false)
 SetLeftMargin ($margin)
 SetTopMargin ($margin)
 SetRightMargin ($margin)
 SetCellPadding ($pad)
 setCellPaddings ($left='', $top='', $right='', $bottom='')
 getCellPaddings ()
 setCellMargins ($left='', $top='', $right='', $bottom='')
 getCellMargins ()
 SetAutoPageBreak ($auto, $margin=0)
 getAutoPageBreak ()
 SetDisplayMode ($zoom, $layout='SinglePage', $mode='UseNone')
 SetCompression ($compress=true)
 setSRGBmode ($mode=false)
 SetDocInfoUnicode ($unicode=true)
 SetTitle ($title)
 SetSubject ($subject)
 SetAuthor ($author)
 SetKeywords ($keywords)
 SetCreator ($creator)
 Error ($msg)
 Open ()
 Close ()
 setPage ($pnum, $resetmargins=false)
 lastPage ($resetmargins=false)
 getPage ()
 getNumPages ()
 addTOCPage ($orientation='', $format='', $keepmargins=false)
 endTOCPage ()
 AddPage ($orientation='', $format='', $keepmargins=false, $tocpage=false)
 endPage ($tocpage=false)
 startPage ($orientation='', $format='', $tocpage=false)
 setPageMark ()
 setHeaderData ($ln='', $lw=0, $ht='', $hs='')
 getHeaderData ()
 setHeaderMargin ($hm=10)
 getHeaderMargin ()
 setFooterMargin ($fm=10)
 getFooterMargin ()
 setPrintHeader ($val=true)
 setPrintFooter ($val=true)
 getImageRBX ()
 getImageRBY ()
 resetHeaderTemplate ()
 setHeaderTemplateAutoreset ($val=true)
 Header ()
 Footer ()
 PageNo ()
 AddSpotColor ($name, $c, $m, $y, $k)
 getSpotColor ($name)
 setSpotColor ($type, $name, $tint=100)
 SetDrawSpotColor ($name, $tint=100)
 SetFillSpotColor ($name, $tint=100)
 SetTextSpotColor ($name, $tint=100)
 setColorArray ($type, $color, $ret=false)
 SetDrawColorArray ($color, $ret=false)
 SetFillColorArray ($color, $ret=false)
 SetTextColorArray ($color, $ret=false)
 setColor ($type, $col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='')
 SetDrawColor ($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='')
 SetFillColor ($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='')
 SetTextColor ($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='')
 GetStringWidth ($s, $fontname='', $fontstyle='', $fontsize=0, $getarray=false)
 GetArrStringWidth ($sa, $fontname='', $fontstyle='', $fontsize=0, $getarray=false)
 GetCharWidth ($char, $notlast=true)
 getRawCharWidth ($char)
 GetNumChars ($s)
 AddFont ($family, $style='', $fontfile='', $subset='default')
 SetFont ($family, $style='', $size=0, $fontfile='', $subset='default', $out=true)
 SetFontSize ($size, $out=true)
 getFontDescent ($font, $style='', $size=0)
 getFontAscent ($font, $style='', $size=0)
 SetDefaultMonospacedFont ($font)
 AddLink ()
 SetLink ($link, $y=0, $page=-1)
 Link ($x, $y, $w, $h, $link, $spaces=0)
 Annotation ($x, $y, $w, $h, $text, $opt=array('Subtype'=>'Text'), $spaces=0)
 Text ($x, $y, $txt, $fstroke=false, $fclip=false, $ffill=true, $border=0, $ln=0, $align='', $fill=false, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M', $rtloff=false)
 AcceptPageBreak ()
 removeSHY ($txt='')
 Cell ($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M')
 MultiCell ($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0, $valign='T', $fitcell=false)
 getNumLines ($txt, $w=0, $reseth=false, $autopadding=true, $cellpadding='', $border=0)
 getStringHeight ($w, $txt, $reseth=false, $autopadding=true, $cellpadding='', $border=0)
 Write ($h, $txt, $link='', $fill=false, $align='', $ln=false, $stretch=0, $firstline=false, $firstblock=false, $maxh=0, $wadj=0, $margin='')
 UTF8ArrSubString ($strarr, $start='', $end='')
 UniArrSubString ($uniarr, $start='', $end='')
 UTF8ArrayToUniArray ($ta)
 unichr ($c)
 getImageFileType ($imgfile, $iminfo=array())
 Image ($file, $x='', $y='', $w=0, $h=0, $type='', $link='', $align='', $resize=false, $dpi=300, $palign='', $ismask=false, $imgmask=false, $border=0, $fitbox=false, $hidden=false, $fitonpage=false, $alt=false, $altimgs=array())
 set_mqr ($mqr)
 get_mqr ()
 Ln ($h='', $cell=false)
 GetX ()
 GetAbsX ()
 GetY ()
 SetX ($x, $rtloff=false)
 SetY ($y, $resetx=true, $rtloff=false)
 SetXY ($x, $y, $rtloff=false)
 Output ($name='doc.pdf', $dest='I')
 _destroy ($destroyall=false, $preserve_objcopy=false)
 addTTFfont ($fontfile, $fonttype='', $enc='', $flags=32, $outpath='')
 setExtraXMP ($xmp)
 setHeaderFont ($font)
 getHeaderFont ()
 setFooterFont ($font)
 getFooterFont ()
 setLanguageArray ($language)
 getPDFData ()
 addHtmlLink ($url, $name, $fill=false, $firstline=false, $color='', $style=-1, $firstblock=false)
 convertHTMLColorToDec ($hcolor='#FFFFFF', $defcol=array(128, 128, 128))
 pixelsToUnits ($px)
 unhtmlentities ($text_to_convert)
 SetProtection ($permissions=array('print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high'), $user_pass='', $owner_pass=null, $mode=0, $pubkeys=null)
 StartTransform ()
 StopTransform ()
 ScaleX ($s_x, $x='', $y='')
 ScaleY ($s_y, $x='', $y='')
 ScaleXY ($s, $x='', $y='')
 Scale ($s_x, $s_y, $x='', $y='')
 MirrorH ($x='')
 MirrorV ($y='')
 MirrorP ($x='', $y='')
 MirrorL ($angle=0, $x='', $y='')
 TranslateX ($t_x)
 TranslateY ($t_y)
 Translate ($t_x, $t_y)
 Rotate ($angle, $x='', $y='')
 SkewX ($angle_x, $x='', $y='')
 SkewY ($angle_y, $x='', $y='')
 Skew ($angle_x, $angle_y, $x='', $y='')
 SetLineWidth ($width)
 GetLineWidth ()
 SetLineStyle ($style, $ret=false)
 Line ($x1, $y1, $x2, $y2, $style=array())
 Rect ($x, $y, $w, $h, $style='', $border_style=array(), $fill_color=array())
 Curve ($x0, $y0, $x1, $y1, $x2, $y2, $x3, $y3, $style='', $line_style=array(), $fill_color=array())
 Polycurve ($x0, $y0, $segments, $style='', $line_style=array(), $fill_color=array())
 Ellipse ($x0, $y0, $rx, $ry='', $angle=0, $astart=0, $afinish=360, $style='', $line_style=array(), $fill_color=array(), $nc=2)
 Circle ($x0, $y0, $r, $angstr=0, $angend=360, $style='', $line_style=array(), $fill_color=array(), $nc=2)
 PolyLine ($p, $style='', $line_style=array(), $fill_color=array())
 Polygon ($p, $style='', $line_style=array(), $fill_color=array(), $closed=true)
 RegularPolygon ($x0, $y0, $r, $ns, $angle=0, $draw_circle=false, $style='', $line_style=array(), $fill_color=array(), $circle_style='', $circle_outLine_style=array(), $circle_fill_color=array())
 StarPolygon ($x0, $y0, $r, $nv, $ng, $angle=0, $draw_circle=false, $style='', $line_style=array(), $fill_color=array(), $circle_style='', $circle_outLine_style=array(), $circle_fill_color=array())
 RoundedRect ($x, $y, $w, $h, $r, $round_corner='1111', $style='', $border_style=array(), $fill_color=array())
 RoundedRectXY ($x, $y, $w, $h, $rx, $ry, $round_corner='1111', $style='', $border_style=array(), $fill_color=array())
 Arrow ($x0, $y0, $x1, $y1, $head_style=0, $arm_size=5, $arm_angle=15)
 setDestination ($name, $y=-1, $page='')
 getDestination ()
 setBookmark ($txt, $level=0, $y=-1, $page='', $style='', $color=array(0, 0, 0))
 Bookmark ($txt, $level=0, $y=-1, $page='', $style='', $color=array(0, 0, 0))
 IncludeJS ($script)
 addJavascriptObject ($script, $onload=false)
 setFormDefaultProp ($prop=array())
 getFormDefaultProp ()
 TextField ($name, $w, $h, $prop=array(), $opt=array(), $x='', $y='', $js=false)
 RadioButton ($name, $w, $prop=array(), $opt=array(), $onvalue='On', $checked=false, $x='', $y='', $js=false)
 ListBox ($name, $w, $h, $values, $prop=array(), $opt=array(), $x='', $y='', $js=false)
 ComboBox ($name, $w, $h, $values, $prop=array(), $opt=array(), $x='', $y='', $js=false)
 CheckBox ($name, $w, $checked=false, $prop=array(), $opt=array(), $onvalue='Yes', $x='', $y='', $js=false)
 Button ($name, $w, $h, $caption, $action, $prop=array(), $opt=array(), $x='', $y='', $js=false)
 setUserRights ($enable=true, $document='/FullSave', $annots='/Create/Delete/Modify/Copy/Import/Export', $form='/Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate', $signature='/Modify', $ef='/Create/Delete/Modify/Import', $formex='')
 setSignature ($signing_cert='', $private_key='', $private_key_password='', $extracerts='', $cert_type=2, $info=array())
 setSignatureAppearance ($x=0, $y=0, $w=0, $h=0, $page=-1)
 addEmptySignatureAppearance ($x=0, $y=0, $w=0, $h=0, $page=-1)
 startPageGroup ($page='')
 AliasNbPages ($s='')
 AliasNumPage ($s='')
 setStartingPageNumber ($num=1)
 getAliasRightShift ()
 getAliasNbPages ()
 getAliasNumPage ()
 getPageGroupAlias ()
 getPageNumGroupAlias ()
 getGroupPageNo ()
 getGroupPageNoFormatted ()
 PageNoFormatted ()
 startLayer ($name='', $print=true, $view=true)
 endLayer ()
 setVisibility ($v)
 setAlpha ($alpha, $bm='Normal')
 setJPEGQuality ($quality)
 setDefaultTableColumns ($cols=4)
 setCellHeightRatio ($h)
 getCellHeightRatio ()
 setPDFVersion ($version='1.7')
 setViewerPreferences ($preferences)
 colorRegistrationBar ($x, $y, $w, $h, $transition=true, $vertical=false, $colors='A, R, G, B, C, M, Y, K')
 cropMark ($x, $y, $w, $h, $type='A, B, C, D', $color=array(0, 0, 0))
 registrationMark ($x, $y, $r, $double=false, $cola=array(0, 0, 0), $colb=array(255, 255, 255))
 LinearGradient ($x, $y, $w, $h, $col1=array(), $col2=array(), $coords=array(0, 0, 1, 0))
 RadialGradient ($x, $y, $w, $h, $col1=array(), $col2=array(), $coords=array(0.5, 0.5, 0.5, 0.5, 1))
 CoonsPatchMesh ($x, $y, $w, $h, $col1=array(), $col2=array(), $col3=array(), $col4=array(), $coords=array(0.00, 0.0, 0.33, 0.00, 0.67, 0.00, 1.00, 0.00, 1.00, 0.33, 1.00, 0.67, 1.00, 1.00, 0.67, 1.00, 0.33, 1.00, 0.00, 1.00, 0.00, 0.67, 0.00, 0.33), $coords_min=0, $coords_max=1, $antialias=false)
 Gradient ($type, $coords, $stops, $background=array(), $antialias=false)
 PieSector ($xc, $yc, $r, $a, $b, $style='FD', $cw=true, $o=90)
 PieSectorXY ($xc, $yc, $rx, $ry, $a, $b, $style='FD', $cw=false, $o=0, $nc=2)
 ImageEps ($file, $x='', $y='', $w=0, $h=0, $link='', $useBoundingBox=true, $align='', $palign='', $border=0, $fitonpage=false, $fixoutvals=false)
 setBarcode ($bc='')
 getBarcode ()
 write1DBarcode ($code, $type, $x='', $y='', $w='', $h='', $xres='', $style='', $align='')
 writeBarcode ($x, $y, $w, $h, $type, $style, $font, $xres, $code)
 write2DBarcode ($code, $type, $x='', $y='', $w='', $h='', $style='', $align='', $distort=false)
 getMargins ()
 getOriginalMargins ()
 getFontSize ()
 getFontSizePt ()
 getFontFamily ()
 getFontStyle ()
 fixHTMLCode ($html, $default_css='', $tagvs='', $tidy_options='')
 getCSSPadding ($csspadding, $width=0)
 getCSSMargin ($cssmargin, $width=0)
 getCSSBorderMargin ($cssbspace, $width=0)
 writeHTMLCell ($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=false, $reseth=true, $align='', $autopadding=true)
 writeHTML ($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='')
 setLIsymbol ($symbol='!')
 SetBooklet ($booklet=true, $inner=-1, $outer=-1)
 setHtmlVSpace ($tagvs)
 setListIndentWidth ($width)
 setOpenCell ($isopen)
 setHtmlLinksStyle ($color=array(0, 0, 255), $fontstyle='U')
 getHTMLUnitToUnits ($htmlval, $refsize=1, $defaultunit='px', $points=false)
 intToRoman ($number)
 movePage ($frompage, $topage)
 deletePage ($page)
 copyPage ($page=0)
 addTOC ($page='', $numbersfont='', $filler='.', $toc_name='TOC', $style='', $color=array(0, 0, 0))
 addHTMLTOC ($page='', $toc_name='TOC', $templates=array(), $correct_align=true, $style='', $color=array(0, 0, 0))
 startTransaction ()
 commitTransaction ()
 rollbackTransaction ($self=false)
 objclone ($object)
 empty_string ($str)
 revstrpos ($haystack, $needle, $offset=0)
 setEqualColumns ($numcols=0, $width=0, $y='')
 resetColumns ()
 setColumnsArray ($columns)
 selectColumn ($col='')
 getColumn ()
 getNumberOfColumns ()
 serializeTCPDFtagParameters ($pararray)
 setTextRenderingMode ($stroke=0, $fill=true, $clip=false)
 getHyphenPatternsFromTEX ($file)
 hyphenateText ($text, $patterns, $dictionary=array(), $leftmin=1, $rightmin=2, $charmin=1, $charmax=8)
 setRasterizeVectorImages ($mode)
 setFontSubsetting ($enable=true)
 getFontSubsetting ()
 stringLeftTrim ($str, $replace='')
 stringRightTrim ($str, $replace='')
 stringTrim ($str, $replace='')
 isUnicodeFont ()
 getFontFamilyName ($fontfamily)
 startTemplate ($w=0, $h=0, $group=false)
 endTemplate ()
 printTemplate ($id, $x='', $y='', $w=0, $h=0, $align='', $palign='', $fitonpage=false)
 setFontStretching ($perc=100)
 getFontStretching ()
 setFontSpacing ($spacing=0)
 getFontSpacing ()
 getPageRegions ()
 setPageRegions ($regions=array())
 addPageRegion ($region)
 removePageRegion ($key)
 ImageSVG ($file, $x='', $y='', $w=0, $h=0, $link='', $align='', $palign='', $border=0, $fitonpage=false)

Protected Member Functions

 setPageFormat ($format, $orientation='P')
 swapPageBoxCoordinates ($page)
 adjustCellPadding ($brd=0)
 setContentMark ($page=0)
 setHeader ()
 setFooter ()
 inPageBody ()
 setTableHeader ()
 getFontsList ()
 _putEmbeddedFiles ()
 checkPageBreak ($h=0, $y='', $addpage=true)
 getCellCode ($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M')
 getCellBorder ($x, $y, $w, $h, $brd)
 getBorderMode ($brd, $position='start')
 getRemainingWidth ()
 fitBlock ($w, $h, $x, $y, $fitonpage=false)
 _toJPEG ($image)
 _toPNG ($image)
 _setGDImageTransparency ($new_image, $image)
 _parsejpeg ($file)
 _parsepng ($file)
 rfread ($handle, $length)
 ImagePngAlpha ($file, $x, $y, $wpx, $hpx, $w, $h, $type, $link, $align, $resize, $dpi, $palign, $filehash='')
 getGDgamma ($v)
 sendOutputData ($data, $length)
 _dochecks ()
 _getfontpath ()
 getInternalPageNumberAliases ($a= '')
 getAllInternalPageNumberAliases ()
 replacePageNumAliases ($page, $replace, $diff=0)
 replaceRightShiftPageNumAliases ($page, $aliases, $diff)
 _putpages ()
 _putannotsrefs ($n)
 _getannotsrefs ($n)
 _putannotsobjs ()
 _putAPXObject ($w=0, $h=0, $stream='')
 _getULONG ($str, $offset)
 _getUSHORT ($str, $offset)
 _getSHORT ($str, $offset)
 _getFWORD ($str, $offset)
 _getUFWORD ($str, $offset)
 _getFIXED ($str, $offset)
 _getBYTE ($str, $offset)
 updateCIDtoGIDmap ($map, $cid, $gid)
 _getTrueTypeFontSubset ($font, $subsetchars)
 _getTTFtableChecksum ($table, $length)
 _putfontwidths ($font, $cidoffset=0)
 _putfonts ()
 _puttruetypeunicode ($font)
 _putcidfont0 ($font)
 _putimages ()
 _putxobjects ()
 _putspotcolors ()
 _getxobjectdict ()
 _putresourcedict ()
 _putresources ()
 _putinfo ()
 _putXMP ()
 _putcatalog ()
 _putviewerpreferences ()
 _putheader ()
 _enddoc ()
 _beginpage ($orientation='', $format='')
 _endpage ()
 _newobj ()
 _getobj ($objid='')
 _dounderline ($x, $y, $txt)
 _dounderlinew ($x, $y, $w)
 _dolinethrough ($x, $y, $txt)
 _dolinethroughw ($x, $y, $w)
 _dooverline ($x, $y, $txt)
 _dooverlinew ($x, $y, $w)
 _freadint ($f)
 _escape ($s)
 _datastring ($s, $n=0)
 _datestring ($n=0)
 _textstring ($s, $n=0)
 _escapetext ($s)
 _escapeXML ($str)
 _getrawstream ($s, $n=0)
 _getstream ($s, $n=0)
 _putstream ($s, $n=0)
 _out ($s)
 UTF8StringToArray ($str)
 UTF8ToUTF16BE ($str, $setbom=false)
 UTF8ToLatin1 ($str)
 UTF8ArrToLatin1 ($unicode)
 arrUTF8ToUTF16BE ($unicode, $setbom=false)
 getRandomSeed ($seed='')
 _objectkey ($n)
 _encrypt_data ($n, $s)
 _putencryption ()
 _RC4 ($key, $text)
 _AES ($key, $text)
 _md5_16 ($str)
 _Uvalue ()
 _UEvalue ()
 _Ovalue ()
 _OEvalue ()
 _fixAES256Password ($password)
 _generateencryptionkey ()
 getUserPermissionCode ($permissions, $mode=0)
 convertHexStringToString ($bs)
 convertStringToHexString ($s)
 getEncPermissionsString ($protection)
 Transform ($tm)
 _outPoint ($x, $y)
 _outLine ($x, $y)
 _outRect ($x, $y, $w, $h, $op)
 _outCurve ($x1, $y1, $x2, $y2, $x3, $y3)
 _outCurveV ($x2, $y2, $x3, $y3)
 _outCurveY ($x1, $y1, $x3, $y3)
 _outellipticalarc ($xc, $yc, $rx, $ry, $xang=0, $angs=0, $angf=360, $pie=false, $nc=2, $startpoint=true, $ccw=true, $svg=false)
 utf8StrRev ($str, $setbom=false, $forcertl=false)
 utf8StrArrRev ($arr, $str='', $setbom=false, $forcertl=false)
 utf8Bidi ($ta, $str='', $forcertl=false)
 encodeNameObject ($name)
 _putdests ()
 sortBookmarks ()
 _putbookmarks ()
 _putjavascript ()
 _JScolor ($color)
 _addfield ($type, $name, $x, $y, $w, $h, $prop)
 getAnnotOptFromJSProp ($prop)
 _putsignature ()
 getSignatureAppearanceArray ($x=0, $y=0, $w=0, $h=0, $page=-1)
 formatPageNumber ($num)
 formatTOCPageNumber ($num)
 _putocg ()
 addExtGState ($parms)
 setExtGState ($gs)
 _putextgstates ()
 Clip ($x, $y, $w, $h)
 _putshaders ()
 extractCSSproperties ($cssdata)
 isValidCSSSelectorForTag ($dom, $key, $selector)
 getCSSdataArray ($dom, $key, $css)
 getTagStyleFromCSSarray ($css)
 getCSSBorderWidth ($width)
 getCSSBorderDashStyle ($style)
 getCSSBorderStyle ($cssborder)
 getCSSFontSpacing ($spacing, $parent=0)
 getCSSFontStretching ($stretch, $parent=100)
 getHtmlDomArray ($html)
 getSpaceString ()
 openHTMLTagHandler ($dom, $key, $cell)
 closeHTMLTagHandler ($dom, $key, $cell, $maxbottomliney=0)
 addHTMLVertSpace ($hbz=0, $hb=0, $cell=false, $firsttag=false, $lasttag=false)
 getBorderStartPosition ()
 drawHTMLTagBorder ($tag, $xmax)
 swapMargins ($reverse=true)
 putHtmlListBullet ($listdepth, $listtype='', $size=10)
 getGraphicVars ()
 setGraphicVars ($gvars, $extended=false)
 getObjFilename ($name)
 writeDiskCache ($filename, $data, $append=false)
 readDiskCache ($filename)
 setBuffer ($data)
 replaceBuffer ($data)
 getBuffer ()
 setPageBuffer ($page, $data, $append=false)
 getPageBuffer ($page)
 setImageBuffer ($image, $data)
 setImageSubBuffer ($image, $key, $data)
 getImageBuffer ($image)
 setFontBuffer ($font, $data)
 setFontSubBuffer ($font, $key, $data)
 getFontBuffer ($font)
 hyphenateWord ($word, $patterns, $dictionary=array(), $leftmin=1, $rightmin=2, $charmin=1, $charmax=8)
 getPathPaintOperator ($style, $default='S')
 checkPageRegions ($h, $x, $y)
 getSVGTransformMatrix ($attribute)
 getTransformationMatrixProduct ($ta, $tb)
 convertSVGtMatrix ($tm)
 SVGTransform ($tm)
 setSVGStyles ($svgstyle, $prevsvgstyle, $x=0, $y=0, $w=1, $h=1, $clip_function='', $clip_params=array())
 SVGPath ($d, $style='')
 getVectorsAngle ($x1, $y1, $x2, $y2)
 startSVGElementHandler ($parser, $name, $attribs, $ctm=array())
 endSVGElementHandler ($parser, $name)
 segSVGContentHandler ($parser, $data)

Protected Attributes

 $page
 $n
 $offsets
 $buffer
 $pages = array()
 $state
 $compress
 $CurOrientation
 $pagedim = array()
 $k
 $fwPt
 $fhPt
 $wPt
 $hPt
 $w
 $h
 $lMargin
 $tMargin
 $rMargin
 $bMargin
 $cell_padding = array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0)
 $cell_margin = array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0)
 $x
 $y
 $lasth
 $LineWidth
 $CoreFonts
 $fonts = array()
 $FontFiles = array()
 $diffs = array()
 $images = array()
 $PageAnnots = array()
 $links = array()
 $FontFamily
 $FontStyle
 $FontAscent
 $FontDescent
 $underline
 $overline
 $CurrentFont
 $FontSizePt
 $FontSize
 $DrawColor
 $FillColor
 $TextColor
 $ColorFlag
 $AutoPageBreak
 $PageBreakTrigger
 $InHeader = false
 $InFooter = false
 $ZoomMode
 $LayoutMode
 $docinfounicode = true
 $title = ''
 $subject = ''
 $author = ''
 $keywords = ''
 $creator = ''
 $starting_page_number = 1
 $alias_tot_pages = '{:ptp:}'
 $alias_num_page = '{:pnp:}'
 $alias_group_tot_pages = '{:ptg:}'
 $alias_group_num_page = '{:png:}'
 $alias_right_shift = '{rsc:'
 $img_rb_x
 $img_rb_y
 $imgscale = 1
 $isunicode = false
 $unicode
 $encmaps
 $PDFVersion = '1.7'
 $header_xobjid = -1
 $header_xobj_autoreset = false
 $header_margin
 $footer_margin
 $original_lMargin
 $original_rMargin
 $header_font
 $footer_font
 $l
 $barcode = false
 $print_header = true
 $print_footer = true
 $header_logo = ''
 $header_logo_width = 30
 $header_title = ''
 $header_string = ''
 $default_table_columns = 4
 $HREF = array()
 $fontlist = array()
 $fgcolor
 $listordered = array()
 $listcount = array()
 $listnum = 0
 $listindent = 0
 $listindentlevel = 0
 $bgcolor
 $tempfontsize = 10
 $lispacer = ''
 $encoding = 'UTF-8'
 $internal_encoding
 $rtl = false
 $tmprtl = false
 $encrypted
 $encryptdata = array()
 $last_enc_key
 $last_enc_key_c
 $enc_padding = "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A"
 $file_id
 $outlines = array()
 $OutlineRoot
 $javascript = ''
 $n_js
 $linethrough
 $ur = array()
 $dpi = 72
 $newpagegroup = array()
 $pagegroups = array()
 $currpagegroup = 0
 $extgstates
 $jpeg_quality
 $cell_height_ratio = K_CELL_HEIGHT_RATIO
 $viewer_preferences
 $PageMode
 $gradients = array()
 $intmrk = array()
 $bordermrk = array()
 $emptypagemrk = array()
 $cntmrk = array()
 $footerpos = array()
 $footerlen = array()
 $newline = true
 $endlinex = 0
 $linestyleWidth = ''
 $linestyleCap = '0 J'
 $linestyleJoin = '0 j'
 $linestyleDash = '[] 0 d'
 $openMarkedContent = false
 $htmlvspace = 0
 $spot_colors = array()
 $lisymbol = ''
 $epsmarker = 'x#!#EPS#!#x'
 $transfmatrix = array()
 $transfmatrix_key = 0
 $booklet = false
 $feps = 0.005
 $tagvspaces = array()
 $customlistindent = -1
 $opencell = true
 $embeddedfiles = array()
 $premode = false
 $transfmrk = array()
 $htmlLinkColorArray = array(0, 0, 255)
 $htmlLinkFontStyle = 'U'
 $numpages = 0
 $pagelen = array()
 $numimages = 0
 $imagekeys = array()
 $bufferlen = 0
 $diskcache = false
 $numfonts = 0
 $fontkeys = array()
 $font_obj_ids = array()
 $pageopen = array()
 $default_monospaced_font = 'courier'
 $objcopy
 $cache_file_length = array()
 $thead = ''
 $theadMargins = array()
 $cache_UTF8StringToArray = array()
 $cache_maxsize_UTF8StringToArray = 8
 $cache_size_UTF8StringToArray = 0
 $sign = false
 $signature_data = array()
 $signature_max_length = 11742
 $signature_appearance = array('page' => 1, 'rect' => '0 0 0 0')
 $empty_signature_appearance = array()
 $re_spaces = '/[^\S\xa0]/'
 $re_space = array('p' => '[^\S\xa0]', 'm' => '')
 $sig_obj_id = 0
 $byterange_string = '/ByteRange[0 ********** ********** **********]'
 $sig_annot_ref = '***SIGANNREF*** 0 R'
 $page_obj_id = array()
 $form_obj_id = array()
 $default_form_prop = array('lineWidth'=>1, 'borderStyle'=>'solid', 'fillColor'=>array(255, 255, 255), 'strokeColor'=>array(128, 128, 128))
 $js_objects = array()
 $form_action = ''
 $form_enctype = 'application/x-www-form-urlencoded'
 $form_mode = 'post'
 $annotation_fonts = array()
 $radiobutton_groups = array()
 $radio_groups = array()
 $textindent = 0
 $start_transaction_page = 0
 $start_transaction_y = 0
 $inthead = false
 $columns = array()
 $num_columns = 1
 $current_column = 0
 $column_start_page = 0
 $maxselcol = array('page' => 0, 'column' => 0)
 $colxshift = array('x' => 0, 's' => array('H' => 0, 'V' => 0), 'p' => array('L' => 0, 'T' => 0, 'R' => 0, 'B' => 0))
 $textrendermode = 0
 $textstrokewidth = 0
 $strokecolor
 $pdfunit = 'mm'
 $tocpage = false
 $rasterize_vector_images = false
 $font_subsetting = true
 $default_graphic_vars = array()
 $xobjects = array()
 $inxobj = false
 $xobjid = ''
 $font_stretching = 100
 $font_spacing = 0
 $page_regions = array()
 $webcolor = array()
 $spotcolor = array()
 $pdflayers = array()
 $dests = array()
 $n_dests
 $svgdir = ''
 $svgunit = 'px'
 $svggradients = array()
 $svggradientid = 0
 $svgdefsmode = false
 $svgdefs = array()
 $svgclipmode = false
 $svgclippaths = array()
 $svgcliptm = array()
 $svgclipid = 0
 $svgtext = ''
 $svgtextmode = array()
 $svginheritprop = array('clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cursor', 'direction', 'fill', 'fill-opacity', 'fill-rule', 'font', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'image-rendering', 'kerning', 'letter-spacing', 'marker', 'marker-end', 'marker-mid', 'marker-start', 'pointer-events', 'shape-rendering', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-rendering', 'visibility', 'word-spacing', 'writing-mode')
 $svgstyles
 $force_srgb = false
 $pdfa_mode = false
 $doc_date
 $custom_xmp = ''

Detailed Description

PHP class for generating PDF documents without requiring external extensions. TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.

Definition at line 155 of file tcpdf.php.


Constructor & Destructor Documentation

__construct ( orientation = 'P',
unit = 'mm',
format = 'A4',
unicode = true,
encoding = 'UTF-8',
diskcache = false,
pdfa = false 
)

This is the class constructor. It allows to set up the page format, the orientation and the measure unit used in all the methods (except for the font sizes).

Parameters:
$orientation(string) page orientation. Possible values are (case insensitive):
  • P or Portrait (default)
  • L or Landscape
  • '' (empty string) for automatic orientation
$unit(string) User measure unit. Possible values are:
  • pt: point
  • mm: millimeter (default)
  • cm: centimeter
  • in: inch

A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
$format(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
$unicode(boolean) TRUE means that the input text is unicode (default = true)
$encoding(string) Charset encoding; default is UTF-8.
$diskcache(boolean) If TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).
$pdfa(boolean) If TRUE set the document to PDF/A mode.
See also:
getPageSizeFromFormat(), setPageFormat()

Definition at line 1849 of file tcpdf.php.

Here is the call graph for this function:

Default destructor.

Since:
1.53.0.TC016

Definition at line 2008 of file tcpdf.php.

Here is the call graph for this function:


Member Function Documentation

_addfield ( type,
name,
x,
y,
w,
h,
prop 
) [protected]

Adds a javascript form field.

Parameters:
$type(string) field type
$name(string) field name
$x(int) horizontal position
$y(int) vertical position
$w(int) width
$h(int) height
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
Author:
Denis Van Nuffelen, Nicola Asuni
Since:
2.1.002 (2008-02-12)

Definition at line 16441 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_AES ( key,
text 
) [protected]

Returns the input text exrypted using AES algorithm and the specified key. This method requires mcrypt.

Parameters:
$key(string) encryption key
$text(String) input text to be encrypted
Returns:
String encrypted text
Author:
Nicola Asuni
Since:
5.0.005 (2010-05-11)

Definition at line 13823 of file tcpdf.php.

Here is the caller graph for this function:

_beginpage ( orientation = '',
format = '' 
) [protected]

Initialize a new page.

Parameters:
$orientation(string) page orientation. Possible values are (case insensitive):
  • P or PORTRAIT (default)
  • L or LANDSCAPE
$format(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
See also:
getPageSizeFromFormat(), setPageFormat()

Definition at line 12712 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_datastring ( s,
n = 0 
) [protected]

Format a data string for meta information

Parameters:
$s(string) data string to escape.
$n(int) object ID
Returns:
string escaped string.

Definition at line 12891 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_datestring ( n = 0) [protected]

Returns a formatted date for meta information

Parameters:
$n(int) object ID
Returns:
string escaped date string.
Since:
4.6.028 (2009-08-25)

Definition at line 12906 of file tcpdf.php.

Here is the call graph for this function:

_destroy ( destroyall = false,
preserve_objcopy = false 
)

Unset all class variables except the following critical variables: internal_encoding, state, bufferlen, buffer and diskcache.

Parameters:
$destroyall(boolean) if true destroys all class variables, otherwise preserves critical variables.
$preserve_objcopy(boolean) if true preserves the objcopy variable
Since:
4.5.016 (2009-02-24)

Definition at line 8664 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_dochecks ( ) [protected]

Check for locale-related bug

Definition at line 8692 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_dolinethrough ( x,
y,
txt 
) [protected]

Line through text.

Parameters:
$x(int) X coordinate
$y(int) Y coordinate
$txt(string) text to linethrough

Definition at line 12817 of file tcpdf.php.

Here is the call graph for this function:

_dolinethroughw ( x,
y,
w 
) [protected]

Line through for rectangular text area.

Parameters:
$x(int) X coordinate
$y(int) Y coordinate
$w(int) line length (width)
Since:
4.9.008 (2009-09-29)

Definition at line 12830 of file tcpdf.php.

Here is the caller graph for this function:

_dooverline ( x,
y,
txt 
) [protected]

Overline text.

Parameters:
$x(int) X coordinate
$y(int) Y coordinate
$txt(string) text to overline
Since:
4.9.015 (2010-04-19)

Definition at line 12843 of file tcpdf.php.

Here is the call graph for this function:

_dooverlinew ( x,
y,
w 
) [protected]

Overline for rectangular text area.

Parameters:
$x(int) X coordinate
$y(int) Y coordinate
$w(int) width to overline
Since:
4.9.015 (2010-04-19)

Definition at line 12856 of file tcpdf.php.

Here is the caller graph for this function:

_dounderline ( x,
y,
txt 
) [protected]

Underline text.

Parameters:
$x(int) X coordinate
$y(int) Y coordinate
$txt(string) text to underline

Definition at line 12792 of file tcpdf.php.

Here is the call graph for this function:

_dounderlinew ( x,
y,
w 
) [protected]

Underline for rectangular text area.

Parameters:
$x(int) X coordinate
$y(int) Y coordinate
$w(int) width to underline
Since:
4.8.008 (2009-09-29)

Definition at line 12805 of file tcpdf.php.

Here is the caller graph for this function:

_encrypt_data ( n,
s 
) [protected]

Encrypt the input string.

Parameters:
$n(int) object number
$s(string) data string to encrypt
Returns:
encrypted string
Author:
Nicola Asuni
Since:
5.0.005 (2010-05-11)

Definition at line 13626 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_enddoc ( ) [protected]

Output end of document (EOF).

Definition at line 12617 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_endpage ( ) [protected]

Mark end of page.

Definition at line 12754 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_escape ( s) [protected]

Add "\" before "\", "(" and ")"

Parameters:
$s(string) string to escape.
Returns:
string escaped string.

Definition at line 12879 of file tcpdf.php.

Here is the caller graph for this function:

_escapetext ( s) [protected]

THIS METHOD IS DEPRECATED Format a text string

Parameters:
$s(string) string to escape.
Returns:
string escaped string.
Deprecated:

Definition at line 12933 of file tcpdf.php.

Here is the call graph for this function:

_escapeXML ( str) [protected]

Escape some special characters (< > &) for XML output.

Parameters:
$str(string) Input string to convert.
Returns:
converted string
Since:
5.9.121 (2011-09-28)

Definition at line 12952 of file tcpdf.php.

Here is the caller graph for this function:

_fixAES256Password ( password) [protected]

Convert password for AES-256 encryption mode

Parameters:
$password(string) password
Returns:
string password
Since:
5.9.006 (2010-10-19)
Author:
Nicola Asuni

Definition at line 13950 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_freadint ( f) [protected]

Read a 4-byte (32 bit) integer from file.

Parameters:
$f(string) file name.
Returns:
4-byte integer

Definition at line 12868 of file tcpdf.php.

Here is the caller graph for this function:

_generateencryptionkey ( ) [protected]

Compute encryption key

Since:
2.0.000 (2008-01-02)
Author:
Nicola Asuni

Definition at line 13965 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_getannotsrefs ( n) [protected]

Get references to page annotations.

Parameters:
$n(int) page number
Returns:
string
Author:
Nicola Asuni
Since:
5.0.010 (2010-05-17)

Definition at line 8990 of file tcpdf.php.

Here is the caller graph for this function:

_getBYTE ( str,
offset 
) [protected]

Get BYTE from string (8-bit unsigned integer).

Parameters:
$str(string) String from where to extract value.
$offset(int) Point from where to read the data.
Returns:
int 8 bit value
Author:
Nicola Asuni
Since:
5.2.000 (2010-06-02)

Definition at line 9788 of file tcpdf.php.

Here is the caller graph for this function:

_getFIXED ( str,
offset 
) [protected]

Get FIXED from string (32-bit signed fixed-point number (16.16).

Parameters:
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns:
int 16 bit value
Author:
Nicola Asuni
Since:
5.9.123 (2011-09-30)

Definition at line 9770 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_getfontpath ( ) [protected]

Return fonts path

Returns:
string

Reimplemented in pdf, and testable_pdf.

Definition at line 8708 of file tcpdf.php.

Here is the caller graph for this function:

_getFWORD ( str,
offset 
) [protected]

Get FWORD from string (Big Endian 16-bit signed integer).

Parameters:
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns:
int 16 bit value
Author:
Nicola Asuni
Since:
5.9.123 (2011-09-30)

Definition at line 9739 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_getobj ( objid = '') [protected]

Return the starting object string for the selected object ID.

Parameters:
$objid(int) Object ID (leave empty to get a new ID).
Returns:
string the starting object string
Since:
5.8.009 (2010-08-20)

Definition at line 12776 of file tcpdf.php.

Here is the caller graph for this function:

_getrawstream ( s,
n = 0 
) [protected]

get raw output stream.

Parameters:
$s(string) string to output.
$n(int) object reference for encryption mode
Author:
Nicola Asuni
Since:
5.5.000 (2010-06-22)

Definition at line 12966 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_getSHORT ( str,
offset 
) [protected]

Get SHORT from string (Big Endian 16-bit signed integer).

Parameters:
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns:
int 16 bit value
Author:
Nicola Asuni
Since:
5.2.000 (2010-06-02)

Definition at line 9725 of file tcpdf.php.

Here is the caller graph for this function:

_getstream ( s,
n = 0 
) [protected]

Format output stream (DEPRECATED).

Parameters:
$s(string) string to output.
$n(int) object reference for encryption mode
Deprecated:

Definition at line 12981 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_getTrueTypeFontSubset ( font,
subsetchars 
) [protected]

Returns a subset of the TrueType font data without the unused glyphs.

Parameters:
$font(string) TrueType font data.
$subsetchars(array) Array of used characters (the glyphs to keep).
Returns:
(string) A subset of TrueType font data without the unused glyphs.
Author:
Nicola Asuni
Since:
5.2.000 (2010-06-02)

Definition at line 10653 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_getTTFtableChecksum ( table,
length 
) [protected]

Returs the checksum of a TTF table.

Parameters:
$table(string) table to check
$length(int) length of table in bytes
Returns:
int checksum
Author:
Nicola Asuni
Since:
5.2.000 (2010-06-02)

Definition at line 11104 of file tcpdf.php.

Here is the caller graph for this function:

_getUFWORD ( str,
offset 
) [protected]

Get UFWORD from string (Big Endian 16-bit unsigned integer).

Parameters:
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns:
int 16 bit value
Author:
Nicola Asuni
Since:
5.9.123 (2011-09-30)

Definition at line 9756 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_getULONG ( str,
offset 
) [protected]

Get ULONG from string (Big Endian 32-bit unsigned integer).

Parameters:
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns:
int 32 bit value
Author:
Nicola Asuni
Since:
5.2.000 (2010-06-02)

Definition at line 9697 of file tcpdf.php.

Here is the caller graph for this function:

_getUSHORT ( str,
offset 
) [protected]

Get USHORT from string (Big Endian 16-bit unsigned integer).

Parameters:
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns:
int 16 bit value
Author:
Nicola Asuni
Since:
5.2.000 (2010-06-02)

Definition at line 9711 of file tcpdf.php.

Here is the caller graph for this function:

_getxobjectdict ( ) [protected]

Return XObjects Dictionary.

Returns:
string XObjects dictionary
Since:
5.8.014 (2010-08-23)

Definition at line 12072 of file tcpdf.php.

Here is the caller graph for this function:

_JScolor ( color) [protected]

Convert color to javascript color.

Parameters:
$color(string) color name or "#RRGGBB"
Author:
Denis Van Nuffelen, Nicola Asuni
Since:
2.1.002 (2008-02-12)

Definition at line 16417 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_md5_16 ( str) [protected]

Encrypts a string using MD5 and returns it's value as a binary string.

Parameters:
$str(string) input string
Returns:
String MD5 encrypted binary string
Since:
2.0.000 (2008-01-02)
Author:
Klemen Vodopivec

Definition at line 13841 of file tcpdf.php.

Here is the caller graph for this function:

_newobj ( ) [protected]

Begin a new object and return the object number.

Returns:
int object number

Definition at line 12764 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_objectkey ( n) [protected]

Compute encryption key depending on object number where the encrypted data is stored. This is used for all strings and streams without crypt filter specifier.

Parameters:
$n(int) object number
Returns:
int object key
Author:
Nicola Asuni
Since:
2.0.000 (2008-01-02)

Definition at line 13606 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_OEvalue ( ) [protected]

Compute OE value (used for encryption)

Returns:
string OE value
Since:
5.9.006 (2010-10-19)
Author:
Nicola Asuni

Definition at line 13936 of file tcpdf.php.

Here is the caller graph for this function:

_out ( s) [protected]

Output a string to the document.

Parameters:
$s(string) string to output.

Definition at line 13001 of file tcpdf.php.

Here is the call graph for this function:

_outCurve ( x1,
y1,
x2,
y2,
x3,
y3 
) [protected]

Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x3, y3), using (x1, y1) and (x2, y2) as the Bézier control points. The new current point shall be (x3, y3).

Parameters:
$x1(float) Abscissa of control point 1.
$y1(float) Ordinate of control point 1.
$x2(float) Abscissa of control point 2.
$y2(float) Ordinate of control point 2.
$x3(float) Abscissa of end point.
$y3(float) Ordinate of end point.
Since:
2.1.000 (2008-01-08)

Definition at line 14755 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_outCurveV ( x2,
y2,
x3,
y3 
) [protected]

Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x3, y3), using the current point and (x2, y2) as the Bézier control points. The new current point shall be (x3, y3).

Parameters:
$x2(float) Abscissa of control point 2.
$y2(float) Ordinate of control point 2.
$x3(float) Abscissa of end point.
$y3(float) Ordinate of end point.
Since:
4.9.019 (2010-04-26)

Definition at line 14769 of file tcpdf.php.

Here is the call graph for this function:

_outCurveY ( x1,
y1,
x3,
y3 
) [protected]

Append a cubic Bézier curve to the current path. The curve shall extend from the current point to the point (x3, y3), using (x1, y1) and (x3, y3) as the Bézier control points. The new current point shall be (x3, y3).

Parameters:
$x1(float) Abscissa of control point 1.
$y1(float) Ordinate of control point 1.
$x3(float) Abscissa of end point.
$y3(float) Ordinate of end point.
Since:
2.1.000 (2008-01-08)

Definition at line 14783 of file tcpdf.php.

Here is the call graph for this function:

_outellipticalarc ( xc,
yc,
rx,
ry,
xang = 0,
angs = 0,
angf = 360,
pie = false,
nc = 2,
startpoint = true,
ccw = true,
svg = false 
) [protected]

Append an elliptical arc to the current path. An ellipse is formed from n Bezier curves.

Parameters:
$xc(float) Abscissa of center point.
$yc(float) Ordinate of center point.
$rx(float) Horizontal radius.
$ry(float) Vertical radius (if ry = 0 then is a circle, see Circle()). Default value: 0.
$xang,:(float) Angle between the X-axis and the major axis of the ellipse. Default value: 0.
$angs,:(float) Angle start of draw line. Default value: 0.
$angf,:(float) Angle finish of draw line. Default value: 360.
$pie(boolean) if true do not mark the border point (used to draw pie sectors).
$nc(integer) Number of curves used to draw a 90 degrees portion of ellipse.
$startpoint(boolean) if true output a starting point.
$ccw(boolean) if true draws in counter-clockwise.
$svg(boolean) if true the angles are in svg mode (already calculated).
Returns:
array bounding box coordinates (x min, y min, x max, y max)
Author:
Nicola Asuni
Since:
4.9.019 (2010-04-26)

Definition at line 14983 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_outLine ( x,
y 
) [protected]

Append a straight line segment from the current point to the point (x, y). The new current point shall be (x, y).

Parameters:
$x(float) Abscissa of end point.
$y(float) Ordinate of end point.
Since:
2.1.000 (2008-01-08)

Definition at line 14725 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_outPoint ( x,
y 
) [protected]

Begin a new subpath by moving the current point to coordinates (x, y), omitting any connecting line segment.

Parameters:
$x(float) Abscissa of point.
$y(float) Ordinate of point.
Since:
2.1.000 (2008-01-08)

Definition at line 14713 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_outRect ( x,
y,
w,
h,
op 
) [protected]

Append a rectangle to the current path as a complete subpath, with lower-left corner (x, y) and dimensions widthand height in user space.

Parameters:
$x(float) Abscissa of upper-left corner.
$y(float) Ordinate of upper-left corner.
$w(float) Width.
$h(float) Height.
$op(string) options
Since:
2.1.000 (2008-01-08)

Definition at line 14739 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_Ovalue ( ) [protected]

Compute O value (used for encryption)

Returns:
string O value
Since:
2.0.000 (2008-01-02)
Author:
Nicola Asuni

Definition at line 13898 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_parsejpeg ( file) [protected]

Extract info from a JPEG file without using the GD library.

Parameters:
$file(string) image file to parse
Returns:
array structure containing the image data

Definition at line 7978 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_parsepng ( file) [protected]

Extract info from a PNG file without using the GD library.

Parameters:
$file(string) image file to parse
Returns:
array structure containing the image data

Definition at line 8051 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putannotsobjs ( ) [protected]

Output annotations objects for all pages. !!! THIS METHOD IS NOT YET COMPLETED !!! See section 12.5 of PDF 32000_2008 reference.

Author:
Nicola Asuni
Since:
4.0.018 (2008-08-06)

Definition at line 9034 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putannotsrefs ( n) [protected]

Output references to page annotations

Parameters:
$n(int) page number
Author:
Nicola Asuni
Since:
4.7.000 (2008-08-29)
Deprecated:

Definition at line 8978 of file tcpdf.php.

Here is the call graph for this function:

_putAPXObject ( w = 0,
h = 0,
stream = '' 
) [protected]

Put appearance streams XObject used to define annotation's appearance states.

Parameters:
$w(int) annotation width
$h(int) annotation height
$stream(string) appearance stream
Returns:
int object ID
Since:
4.8.001 (2009-09-09)

Definition at line 9663 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putbookmarks ( ) [protected]

Create a bookmark PDF string.

Author:
Olivier Plathey, Nicola Asuni
Since:
2.1.002 (2008-02-12)

Definition at line 16235 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putcatalog ( ) [protected]

Output Catalog.

Returns:
int object id

Definition at line 12363 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putcidfont0 ( font) [protected]

Output CID-0 fonts. A Type 0 CIDFont contains glyph descriptions based on the Adobe Type 1 font format

Parameters:
$font(array) font data
Author:
Andrew Whitehead, Nicola Asuni, Yukihiro Nakadaira
Since:
3.2.000 (2008-06-23)

Definition at line 11770 of file tcpdf.php.

Here is the call graph for this function:

_putdests ( ) [protected]

Create a javascript PDF string.

Author:
Johannes Güntert, Nicola Asuni
Since:
5.9.098 (2011-06-23)

Definition at line 16147 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putEmbeddedFiles ( ) [protected]

Embedd the attached files.

Since:
4.4.000 (2008-12-07)
See also:
Annotation()

Definition at line 5462 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putencryption ( ) [protected]

Put encryption on PDF document.

Author:
Nicola Asuni
Since:
2.0.000 (2008-01-02)

Definition at line 13654 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putextgstates ( ) [protected]

Put extgstates for object transparency

Since:
3.0.000 (2008-03-27)

Definition at line 17983 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putfonts ( ) [protected]

Output fonts.

Author:
Nicola Asuni

Definition at line 11225 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putfontwidths ( font,
cidoffset = 0 
) [protected]

Outputs font widths

Parameters:
$font(array) font data
$cidoffset(int) offset for CID values
Returns:
PDF command string for font widths
Author:
Nicola Asuni
Since:
4.4.000 (2008-12-07)

Definition at line 11126 of file tcpdf.php.

_putheader ( ) [protected]

Output PDF File Header (7.5.2).

Definition at line 12608 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putimages ( ) [protected]

Output images.

Definition at line 11840 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putinfo ( ) [protected]

Adds some Metadata information (Document Information Dictionary) (see Chapter 14.3.3 Document Information Dictionary of PDF32000_2008.pdf Reference)

Returns:
int object id

Definition at line 12171 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putjavascript ( ) [protected]

Create a javascript PDF string.

Author:
Johannes Güntert, Nicola Asuni
Since:
2.1.002 (2008-02-12)

Definition at line 16363 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putocg ( ) [protected]

Put pdf layers.

Since:
3.0.000 (2008-03-27)

Definition at line 17851 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putpages ( ) [protected]

Output pages (and replace page number aliases).

Definition at line 8814 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putresourcedict ( ) [protected]

Output Resources Dictionary.

Definition at line 12084 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putresources ( ) [protected]

Output Resources.

Definition at line 12148 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putshaders ( ) [protected]

Output gradient shaders.

Author:
Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18563 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putsignature ( ) [protected]

Add certification signature (DocMDP or UR3) You can set only one signature type

Author:
Nicola Asuni
Since:
4.6.008 (2009-05-07)

Definition at line 17466 of file tcpdf.php.

Here is the caller graph for this function:

_putspotcolors ( ) [protected]

Output Spot Colors Resources.

Since:
4.0.024 (2008-09-12)

Definition at line 12052 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putstream ( s,
n = 0 
) [protected]

Output a stream (DEPRECATED).

Parameters:
$s(string) string to output.
$n(int) object reference for encryption mode
Deprecated:

Definition at line 12992 of file tcpdf.php.

Here is the call graph for this function:

_puttruetypeunicode ( font) [protected]

Adds unicode fonts.
Based on PDF Reference 1.3 (section 5)

Parameters:
$font(array) font data
Author:
Nicola Asuni
Since:
1.52.0.TC005 (2005-01-05)

Definition at line 11383 of file tcpdf.php.

Here is the call graph for this function:

_putviewerpreferences ( ) [protected]

Output viewer preferences.

Returns:
string for viewer preferences
Author:
Nicola asuni
Since:
3.1.000 (2008-06-09)

Definition at line 12537 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putXMP ( ) [protected]

Put XMP data object and return ID.

Returns:
(int) The object ID.
Since:
5.9.121 (2011-09-28)

Definition at line 12232 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_putxobjects ( ) [protected]

Output Form XObjects Templates.

Author:
Nicola Asuni
Since:
5.8.017 (2010-08-24)
See also:
startTemplate(), endTemplate(), printTemplate()

Definition at line 11949 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_RC4 ( key,
text 
) [protected]

Returns the input text encrypted using RC4 algorithm and the specified key. RC4 is the standard encryption algorithm used in PDF format

Parameters:
$key(string) encryption key
$text(String) input text to be encrypted
Returns:
String encrypted text
Since:
2.0.000 (2008-01-02)
Author:
Klemen Vodopivec, Nicola Asuni

Definition at line 13777 of file tcpdf.php.

Here is the caller graph for this function:

_setGDImageTransparency ( new_image,
image 
) [protected]

Set the transparency for the given GD image.

Parameters:
$new_image(image) GD image object
$image(image) GD image object. return GD image object.
Since:
4.9.016 (2010-04-20)

Definition at line 7957 of file tcpdf.php.

Here is the caller graph for this function:

_textstring ( s,
n = 0 
) [protected]

Format a text string for meta information

Parameters:
$s(string) string to escape.
$n(int) object ID
Returns:
string escaped string.

Definition at line 12917 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_toJPEG ( image) [protected]

Convert the loaded image to a JPEG and then return a structure for the PDF creator. This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.

Parameters:
$image(image) Image object. return image JPEG image object.

Definition at line 7915 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_toPNG ( image) [protected]

Convert the loaded image to a PNG and then return a structure for the PDF creator. This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.

Parameters:
$image(image) Image object. return image PNG image object.
Since:
4.9.016 (2010-04-20)

Definition at line 7933 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_UEvalue ( ) [protected]

Compute UE value (used for encryption)

Returns:
string UE value
Since:
5.9.006 (2010-10-19)
Author:
Nicola Asuni

Definition at line 13885 of file tcpdf.php.

Here is the caller graph for this function:

_Uvalue ( ) [protected]

Compute U value (used for encryption)

Returns:
string U value
Since:
2.0.000 (2008-01-02)
Author:
Nicola Asuni

Definition at line 13852 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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().
This method is called automatically and should not be called directly by the application.

Returns:
boolean
Since:
1.4
See also:
SetAutoPageBreak()

Definition at line 5527 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

addEmptySignatureAppearance ( x = 0,
y = 0,
w = 0,
h = 0,
page = -1 
)

Add an empty digital signature appearance (a cliccable rectangle area to get signature properties)

Parameters:
$x(float) Abscissa of the upper-left corner.
$y(float) Ordinate of the upper-left corner.
$w(float) Width of the signature area.
$h(float) Height of the signature area.
$page(int) option page number (if < 0 the current page is used).
Author:
Nicola Asuni
Since:
5.9.101 (2011-07-06)

Definition at line 17639 of file tcpdf.php.

Here is the call graph for this function:

addExtGState ( parms) [protected]

Add transparency parameters to the current extgstate

Parameters:
$parms(array) parameters
Returns:
the number of extgstates
Since:
3.0.000 (2008-03-27)

Definition at line 17939 of file tcpdf.php.

Here is the caller graph for this function:

AddFont ( family,
style = '',
fontfile = '',
subset = 'default' 
)

Imports a TrueType, Type1, core, or CID0 font and makes it available. It is necessary to generate a font definition file first (read /fonts/utils/README.TXT). The definition file (and the font file itself when embedding) must be present either in the current directory or in the one indicated by K_PATH_FONTS if the constant is defined. If it could not be found, the error "Could not include font definition file" is generated.

Parameters:
$family(string) Font family. The name can be chosen arbitrarily. If it is a standard family name, it will override the corresponding font.
$style(string) Font style. Possible values are (case insensitive):
  • empty string: regular (default)
  • B: bold
  • I: italic
  • BI or IB: bold italic
$fontfile(string) The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
Returns:
array containing the font data, or false in case of error.
Parameters:
$subset(mixed) if true embedd only a subset of the font (stores only the information related to the used characters); if false embedd full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
Since:
1.5
See also:
SetFont(), setFontSubsetting()

Definition at line 4933 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

addHtmlLink ( url,
name,
fill = false,
firstline = false,
color = '',
style = -1,
firstblock = false 
)

Output anchor link.

Parameters:
$url(string) link URL or internal link (i.e.: <a href="#23,4.5">link to page 23 at 4.5 Y position</a>)
$name(string) link name
$fill(boolean) Indicates if the cell background must be painted (true) or transparent (false).
$firstline(boolean) if true prints only the first line and return the remaining string.
$color(array) array of RGB text color
$style(string) font style (U, D, B, I)
$firstblock(boolean) if true the string is the starting of a line.
Returns:
the number of cells used or the remaining text if $firstline = true;

Definition at line 13383 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

addHTMLTOC ( page = '',
toc_name = 'TOC',
templates = array(),
correct_align = true,
style = '',
color = array(0,0,0) 
)

Output a Table Of Content Index (TOC) using HTML templates. This method must be called after all Bookmarks were set. Before calling this method you have to open the page using the addTOCPage() method. After calling this method you have to call endTOCPage() to close the TOC page.

Parameters:
$page(int) page number where this TOC should be inserted (leave empty for current page).
$toc_name(string) name to use for TOC bookmark.
$templates(array) array of html templates. Use: "#TOC_DESCRIPTION#" for bookmark title, "#TOC_PAGE_NUMBER#" for page number.
$correct_align(boolean) if true correct the number alignment (numbers must be in monospaced font like courier and right aligned on LTR, or left aligned on RTL)
$style(string) Font style for title: B = Bold, I = Italic, BI = Bold + Italic.
$color(array) RGB color array for title (values from 0 to 255).
Author:
Nicola Asuni
Since:
5.0.001 (2010-05-06)
See also:
addTOCPage(), endTOCPage(), addTOC()

Definition at line 25822 of file tcpdf.php.

Here is the call graph for this function:

addHTMLVertSpace ( hbz = 0,
hb = 0,
cell = false,
firsttag = false,
lasttag = false 
) [protected]

Add vertical spaces if needed.

Parameters:
$hbz(string) Distance between current y and line bottom.
$hb(string) The height of the break.
$cell(boolean) if true add the default left (or right if RTL) padding to each new line (default false).
$firsttag(boolean) set to true when the tag is the first.
$lasttag(boolean) set to true when the tag is the last.

Definition at line 24128 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

addJavascriptObject ( script,
onload = false 
)

Adds a javascript object and return object ID

Parameters:
$script(string) Javascript code
$onload(boolean) if true executes this object when opening the document
Returns:
int internal object ID
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-07)

Definition at line 16347 of file tcpdf.php.

AddLink ( )

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().

Since:
1.5
See also:
Cell(), Write(), Image(), Link(), SetLink()

Definition at line 5316 of file tcpdf.php.

Here is the caller graph for this function:

AddPage ( orientation = '',
format = '',
keepmargins = false,
tocpage = false 
)

Adds a new page to the document. If a page is already present, the Footer() method is called first to output the footer (if enabled). Then the page is added, the current position set to the top-left corner according to the left and top margins (or top-right if in RTL mode), and Header() is called to display the header (if enabled). The origin of the coordinate system is at the top-left corner (or top-right for RTL) and increasing ordinates go downwards.

Parameters:
$orientation(string) page orientation. Possible values are (case insensitive):
  • P or PORTRAIT (default)
  • L or LANDSCAPE
$format(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
$keepmargins(boolean) if true overwrites the default page margins with the current margins
$tocpage(boolean) if true set the tocpage state to true (the added page will be used to display Table Of Content).
Since:
1.0
See also:
startPage(), endPage(), addTOCPage(), endTOCPage(), getPageSizeFromFormat(), setPageFormat()

Definition at line 3885 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

addPageRegion ( region)

Add a single no-write region on selected page. A no-write region is a portion of the page with a rectangular or trapezium shape that will not be covered when writing text or html code. A region is always aligned on the left or right side of the page ad is defined using a vertical segment. You can set multiple regions for the same page.

Parameters:
$region(array) array of a single no-write region array: ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right).
Author:
Nicola Asuni
Since:
5.9.003 (2010-10-13)
See also:
setPageRegions(), getPageRegions()

Definition at line 26944 of file tcpdf.php.

Here is the caller graph for this function:

AddSpotColor ( name,
c,
m,
y,
k 
)

Defines a new spot color. 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.

Parameters:
$name(string) Full name of the spot color.
$c(float) Cyan color for CMYK. Value between 0 and 100.
$m(float) Magenta color for CMYK. Value between 0 and 100.
$y(float) Yellow color for CMYK. Value between 0 and 100.
$k(float) Key (Black) color for CMYK. Value between 0 and 100.
Since:
4.0.024 (2008-09-12)
See also:
SetDrawSpotColor(), SetFillSpotColor(), SetTextSpotColor()

Definition at line 4460 of file tcpdf.php.

Here is the caller graph for this function:

addTOC ( page = '',
numbersfont = '',
filler = '.',
toc_name = 'TOC',
style = '',
color = array(0,0,0) 
)

Output a Table of Content Index (TOC). This method must be called after all Bookmarks were set. Before calling this method you have to open the page using the addTOCPage() method. After calling this method you have to call endTOCPage() to close the TOC page. You can override this method to achieve different styles.

Parameters:
$page(int) page number where this TOC should be inserted (leave empty for current page).
$numbersfont(string) set the font for page numbers (please use monospaced font for better alignment).
$filler(string) string used to fill the space between text and page number.
$toc_name(string) name to use for TOC bookmark.
$style(string) Font style for title: B = Bold, I = Italic, BI = Bold + Italic.
$color(array) RGB color array for bookmark title (values from 0 to 255).
Author:
Nicola Asuni
Since:
4.5.000 (2009-01-02)
See also:
addTOCPage(), endTOCPage(), addHTMLTOC()

Definition at line 25641 of file tcpdf.php.

Here is the call graph for this function:

addTOCPage ( orientation = '',
format = '',
keepmargins = false 
)

Adds a new TOC (Table Of Content) page to the document.

Parameters:
$orientation(string) page orientation.
$format(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
$keepmargins(boolean) if true overwrites the default page margins with the current margins
Since:
5.0.001 (2010-05-06)
See also:
AddPage(), startPage(), endPage(), endTOCPage()

Definition at line 3860 of file tcpdf.php.

Here is the call graph for this function:

addTTFfont ( fontfile,
fonttype = '',
enc = '',
flags = 32,
outpath = '' 
)

Convert and add the selected TrueType or Type1 font to the fonts folder (that must be writeable).

Parameters:
$fontfile(string) TrueType or Type1 font file (full path).
$fonttype(string) Font type. Leave empty for autodetect mode. Valid values are: TrueTypeUnicode, TrueType, Type1, CID0JP = CID-0 Japanese, CID0KR = CID-0 Korean, CID0CS = CID-0 Chinese Simplified, CID0CT = CID-0 Chinese Traditional.
$enc(string) Name of the encoding table to use. Leave empty for default mode. Omit this parameter for TrueType Unicode and symbolic fonts like Symbol or ZapfDingBats.
$flags(int) Unsigned 32-bit integer containing flags specifying various characteristics of the font (PDF32000:2008 - 9.8.2 Font Descriptor Flags): +1 for fixed font; +4 for symbol or +32 for non-symbol; +64 for italic. Fixed and Italic mode are generally autodetected so you have to set it to 32 = non-symbolic font (default) or 4 = symbolic font.
$outpath(string) Output path for generated font files (must be writeable by the web server). Leave empty for default font folder.
Returns:
(string) TCPDF font name.
Author:
Nicola Asuni
Since:
5.9.123 (2010-09-30)

Definition at line 9825 of file tcpdf.php.

Here is the call graph for this function:

adjustCellPadding ( brd = 0) [protected]

Adjust the internal Cell padding array to take account of the line width.

Parameters:
$brd(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
Returns:
array of adjustments
Since:
5.9.000 (2010-10-03)

Definition at line 3443 of file tcpdf.php.

Here is the caller graph for this function:

AliasNbPages ( s = '')

This method is DEPRECATED and doesn't have any effect. Please remove any reference to this method.

Parameters:
$s(string) Empty parameter.
Deprecated:
deprecated since version 5.9.089 (2011-06-13)

Definition at line 17692 of file tcpdf.php.

AliasNumPage ( s = '')

This method is DEPRECATED and doesn't have any effect. Please remove any reference to this method.

Parameters:
$s(string) Empty parameter.
Deprecated:
deprecated since version 5.9.089 (2011-06-13)

Definition at line 17701 of file tcpdf.php.

Annotation ( x,
y,
w,
h,
text,
opt = array('Subtype'=>'Text'),
spaces = 0 
)

Puts a markup annotation on a rectangular area of the page. !!!!THE ANNOTATION SUPPORT IS NOT YET FULLY IMPLEMENTED !!!!

Parameters:
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$w(float) Width of the rectangle
$h(float) Height of the rectangle
$text(string) annotation text or alternate content
$opt(array) array of options (see section 8.4 of PDF reference 1.7).
$spaces(int) number of spaces on the text to link
Since:
4.0.018 (2008-08-06)

Definition at line 5372 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Arrow ( x0,
y0,
x1,
y1,
head_style = 0,
arm_size = 5,
arm_angle = 15 
)

Draws a grahic arrow.

Parameters:
$x0(float) Abscissa of first point.
$y0(float) Ordinate of first point.
$x1(float) Abscissa of second point.
$y1(float) Ordinate of second point.
$head_style(int) (0 = draw only arrowhead arms, 1 = draw closed arrowhead, but no fill, 2 = closed and filled arrowhead, 3 = filled arrowhead)
$arm_size(float) length of arrowhead arms
$arm_angle(int) angle between an arm and the shaft
Author:
Piotr Galecki, Nicola Asuni, Andy Meier
Since:
4.6.018 (2009-07-10)

Definition at line 15422 of file tcpdf.php.

Here is the call graph for this function:

arrUTF8ToUTF16BE ( unicode,
setbom = false 
) [protected]

Converts array of UTF-8 characters to UTF16-BE string.
Based on: http://www.faqs.org/rfcs/rfc2781.html

   Encoding UTF-16:
   Encoding of a single character from an ISO 10646 character value to
    UTF-16 proceeds as follows. Let U be the character number, no greater
    than 0x10FFFF.
    1) If U < 0x10000, encode U as a 16-bit unsigned integer and
       terminate.
    2) Let U' = U - 0x10000. Because U is less than or equal to 0x10FFFF,
       U' must be less than or equal to 0xFFFFF. That is, U' can be
       represented in 20 bits.
    3) Initialize two 16-bit unsigned integers, W1 and W2, to 0xD800 and
       0xDC00, respectively. These integers each have 10 bits free to
       encode the character value, for a total of 20 bits.
    4) Assign the 10 high-order bits of the 20-bit U' to the 10 low-order
       bits of W1 and the 10 low-order bits of U' to the 10 low-order
       bits of W2. Terminate.
    Graphically, steps 2 through 4 look like:
    U' = yyyyyyyyyyxxxxxxxxxx
    W1 = 110110yyyyyyyyyy
    W2 = 110111xxxxxxxxxx
 
Parameters:
$unicode(array) array containing UTF-8 unicode values
$setbom(boolean) if true set the Byte Order Mark (BOM = 0xFEFF)
Returns:
string
Author:
Nicola Asuni
Since:
2.1.000 (2008-01-08)
See also:
UTF8ToUTF16BE()

Definition at line 13278 of file tcpdf.php.

Here is the caller graph for this function:

Bookmark ( txt,
level = 0,
y = -1,
page = '',
style = '',
color = array(0,0,0) 
)

Adds a bookmark.

Parameters:
$txt(string) Bookmark description.
$level(int) Bookmark level (minimum value is 0).
$y(float) Y position in user units of the bookmark on the selected page (default = -1 = current position; 0 = page start;).
$page(int) Target page number (leave empty for current page).
$style(string) Font style: B = Bold, I = Italic, BI = Bold + Italic.
$color(array) RGB color array (values from 0 to 255).
Author:
Olivier Plathey, Nicola Asuni
Since:
2.1.002 (2008-02-12)

Definition at line 16187 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Button ( name,
w,
h,
caption,
action,
prop = array(),
opt = array(),
x = '',
y = '',
js = false 
)

Creates a button field

Parameters:
$name(string) field name
$w(int) width
$h(int) height
$caption(string) caption.
$action(mixed) action triggered by pressing the button. Use a string to specify a javascript action. Use an array to specify a form action options as on section 12.7.5 of PDF32000_2008.
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
$opt(array) annotation parameters. Possible values are described on official PDF32000_2008 reference.
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$js(boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-07)

Definition at line 17299 of file tcpdf.php.

Here is the caller graph for this function:

Cell ( w,
h = 0,
txt = '',
border = 0,
ln = 0,
align = '',
fill = false,
link = '',
stretch = 0,
ignore_min_height = false,
calign = 'T',
valign = 'M' 
)

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.

Parameters:
$w(float) Cell width. If 0, the cell extends up to the right margin.
$h(float) Cell height. Default value: 0.
$txt(string) String to print. Default value: empty string.
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$ln(int) Indicates where the current position should go after the call. Possible values are:
  • 0: to the right (or left for RTL languages)
  • 1: to the beginning of the next line
  • 2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
$align(string) Allows to center or align the text. Possible values are:
  • L or empty string: left align (default value)
  • C: center
  • R: right align
  • J: justify
$fill(boolean) Indicates if the cell background must be painted (true) or transparent (false).
$link(mixed) URL or identifier returned by AddLink().
$stretch(int) font stretch mode:
  • 0 = disabled
  • 1 = horizontal scaling only if text is larger than cell width
  • 2 = forced horizontal scaling to fit cell width
  • 3 = character spacing only if text is larger than cell width
  • 4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
$ignore_min_height(boolean) if true ignore automatic minimum height value.
$calign(string) cell vertical alignment relative to the specified Y value. Possible values are:
  • T : cell top
  • C : center
  • B : cell bottom
  • A : font top
  • L : font baseline
  • D : font bottom
$valign(string) text vertical alignment inside the cell. Possible values are:
  • T : top
  • C : center
  • B : bottom
Since:
1.0
See also:
SetFont(), SetDrawColor(), SetFillColor(), SetTextColor(), SetLineWidth(), AddLink(), Ln(), MultiCell(), Write(), SetAutoPageBreak()

Definition at line 5632 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

CheckBox ( name,
w,
checked = false,
prop = array(),
opt = array(),
onvalue = 'Yes',
x = '',
y = '',
js = false 
)

Creates a CheckBox field

Parameters:
$name(string) field name
$w(int) width
$checked(boolean) define the initial state.
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
$opt(array) annotation parameters. Possible values are described on official PDF32000_2008 reference.
$onvalue(string) value to be returned if selected.
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$js(boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-07)

Definition at line 17226 of file tcpdf.php.

Here is the caller graph for this function:

checkPageBreak ( h = 0,
y = '',
addpage = true 
) [protected]

Add page if needed.

Parameters:
$h(float) Cell height. Default value: 0.
$y(mixed) starting y position, leave empty for current position.
$addpage(boolean) if true add a page, otherwise only return the true/false state
Returns:
boolean true in case of page break, false otherwise.
Since:
3.2.000 (2008-07-01)

Definition at line 5554 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

checkPageRegions ( h,
x,
y 
) [protected]

Check page for no-write regions and adapt current coordinates and page margins if necessary. A no-write region is a portion of the page with a rectangular or trapezium shape that will not be covered when writing text or html code. A region is always aligned on the left or right side of the page ad is defined using a vertical segment.

Parameters:
$h(float) height of the text/image/object to print in user units
$x(float) current X coordinate in user units
$y(float) current Y coordinate in user units
Returns:
array($x, $y)
Author:
Nicola Asuni
Since:
5.9.003 (2010-10-13)

Definition at line 26981 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Circle ( x0,
y0,
r,
angstr = 0,
angend = 360,
style = '',
line_style = array(),
fill_color = array(),
nc = 2 
)

Draws a circle. A circle is formed from n Bezier curves.

Parameters:
$x0(float) Abscissa of center point.
$y0(float) Ordinate of center point.
$r(float) Radius.
$angstr,:(float) Angle start of draw line. Default value: 0.
$angend,:(float) Angle finish of draw line. Default value: 360.
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of circle. Array like for SetLineStyle(). Default value: default line style (empty array).
$fill_color(array) Fill color. Format: array(red, green, blue). Default value: default color (empty array).
$nc(integer) Number of curves used to draw a 90 degrees portion of circle.
Since:
2.1.000 (2008-01-08)

Definition at line 15111 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Clip ( x,
y,
w,
h 
) [protected]

Set a rectangular clipping area.

Parameters:
$x(float) abscissa of the top left corner of the rectangle (or top right corner for RTL mode).
$y(float) ordinate of the top left corner of the rectangle.
$w(float) width of the rectangle.
$h(float) height of the rectangle.
Author:
Andreas Würmser, Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18434 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Close ( )

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.

Since:
1.0
See also:
Open(), Output()

Definition at line 3737 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

closeHTMLTagHandler ( dom,
key,
cell,
maxbottomliney = 0 
) [protected]

Process closing tags.

Parameters:
$dom(array) html dom array
$key(int) current element id
$cell(boolean) if true add the default left (or right if RTL) padding to each new line (default false).
$maxbottomliney(int) maximum y value of current line
Returns:
$dom array

Definition at line 23590 of file tcpdf.php.

Here is the caller graph for this function:

colorRegistrationBar ( x,
y,
w,
h,
transition = true,
vertical = false,
colors = 'A,
,
,
,
,
,
,
K'   
)

Paints color transition registration bars

Parameters:
$x(float) abscissa of the top left corner of the rectangle.
$y(float) ordinate of the top left corner of the rectangle.
$w(float) width of the rectangle.
$h(float) height of the rectangle.
$transition(boolean) if true prints tcolor transitions to white.
$vertical(boolean) if true prints bar vertically.
$colors(string) colors to print, one letter per color separated by comma (for example 'A,W,R,G,B,C,M,Y,K'): A=black, W=white, R=red, G=green, B=blue, C=cyan, M=magenta, Y=yellow, K=black.
Author:
Nicola Asuni
Since:
4.9.000 (2010-03-26)

Definition at line 18102 of file tcpdf.php.

Here is the call graph for this function:

ComboBox ( name,
w,
h,
values,
prop = array(),
opt = array(),
x = '',
y = '',
js = false 
)

Creates a Combo-box field

Parameters:
$name(string) field name
$w(int) width
$h(int) height
$values(array) array containing the list of values.
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
$opt(array) annotation parameters. Possible values are described on official PDF32000_2008 reference.
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$js(boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-07)

Definition at line 17147 of file tcpdf.php.

Delete the copy of the current TCPDF object used for undo operation.

Since:
4.5.029 (2009-03-19)

Definition at line 25949 of file tcpdf.php.

Here is the caller graph for this function:

convertHexStringToString ( bs) [protected]

Convert hexadecimal string to string

Parameters:
$bs(string) byte-string to convert
Returns:
String
Since:
5.0.005 (2010-05-12)
Author:
Nicola Asuni

Definition at line 14223 of file tcpdf.php.

Here is the caller graph for this function:

convertHTMLColorToDec ( hcolor = '#FFFFFF',
defcol = array(128,128,128) 
)

Returns an array (RGB or CMYK) from an html color name or a six-digit (i.e. #3FE5AA) or three-digit (i.e. #7FF) hexadecimal color representation.

Parameters:
$hcolor(string) HTML color.
$defcol(array) Color to return in case of error.
Returns:
array RGB or CMYK color, or false in case of error.

Definition at line 13428 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

convertStringToHexString ( s) [protected]

Convert string to hexadecimal string (byte string)

Parameters:
$s(string) string to convert
Returns:
byte string
Since:
5.0.010 (2010-05-17)
Author:
Nicola Asuni

Definition at line 14245 of file tcpdf.php.

convertSVGtMatrix ( tm) [protected]

Convert SVG transformation matrix to PDF.

Parameters:
$tm(array) original SVG transformation matrix
Returns:
array transformation matrix
Since:
5.0.000 (2010-05-02)

Definition at line 27500 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

CoonsPatchMesh ( x,
y,
w,
h,
col1 = array(),
col2 = array(),
col3 = array(),
col4 = array(),
coords = array(0.00,0.0,0.33,0.00,0.67,0.00,1.00,0.00,1.00,0.33,1.00,0.67,1.00,1.00,0.67,1.00,0.33,1.00,0.00,1.00,0.00,0.67,0.00,0.33),
coords_min = 0,
coords_max = 1,
antialias = false 
)

Paints a coons patch mesh.

Parameters:
$x(float) abscissa of the top left corner of the rectangle.
$y(float) ordinate of the top left corner of the rectangle.
$w(float) width of the rectangle.
$h(float) height of the rectangle.
$col1(array) first color (lower left corner) (RGB components).
$col2(array) second color (lower right corner) (RGB components).
$col3(array) third color (upper right corner) (RGB components).
$col4(array) fourth color (upper left corner) (RGB components).
$coords(array)
  • for one patch mesh: array(float x1, float y1, .... float x12, float y12): 12 pairs of coordinates (normally from 0 to 1) which specify the Bezier control points that define the patch. First pair is the lower left edge point, next is its right control point (control point 2). Then the other points are defined in the order: control point 1, edge point, control point 2 going counter-clockwise around the patch. Last (x12, y12) is the first edge point's left control point (control point 1).
  • for two or more patch meshes: array[number of patches]: arrays with the following keys for each patch: f: where to put that patch (0 = first patch, 1, 2, 3 = right, top and left of precedent patch - I didn't figure this out completely - just try and error ;-) points: 12 pairs of coordinates of the Bezier control points as above for the first patch, 8 pairs of coordinates for the following patches, ignoring the coordinates already defined by the precedent patch (I also didn't figure out the order of these - also: try and see what's happening) colors: must be 4 colors for the first patch, 2 colors for the following patches
$coords_min(array) minimum value used by the coordinates. If a coordinate's value is smaller than this it will be cut to coords_min. default: 0
$coords_max(array) maximum value used by the coordinates. If a coordinate's value is greater than this it will be cut to coords_max. default: 1
$antialias(boolean) A flag indicating whether to filter the shading function to prevent aliasing artifacts.
Author:
Andreas Würmser, Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18342 of file tcpdf.php.

Here is the call graph for this function:

copyPage ( page = 0)

Clone the specified page to a new page.

Parameters:
$page(int) number of page to copy (0 = current page)
Returns:
true in case of success, false in case of error.
Since:
4.9.015 (2010-04-20)

Definition at line 25565 of file tcpdf.php.

Here is the call graph for this function:

cropMark ( x,
y,
w,
h,
type = 'A,
,
,
D'  ,
color = array(0,0,0) 
)

Paints crop mark

Parameters:
$x(float) abscissa of the crop mark center.
$y(float) ordinate of the crop mark center.
$w(float) width of the crop mark.
$h(float) height of the crop mark.
$type(string) type of crop mark, one sybol per type separated by comma: A = top left, B = top right, C = bottom left, D = bottom right.
$color(array) crop mark color (default black).
Author:
Nicola Asuni
Since:
4.9.000 (2010-03-26)

Definition at line 18200 of file tcpdf.php.

Here is the call graph for this function:

Curve ( x0,
y0,
x1,
y1,
x2,
y2,
x3,
y3,
style = '',
line_style = array(),
fill_color = array() 
)

Draws a Bezier curve. The Bezier curve is a tangent to the line between the control points at either end of the curve.

Parameters:
$x0(float) Abscissa of start point.
$y0(float) Ordinate of start point.
$x1(float) Abscissa of control point 1.
$y1(float) Ordinate of control point 1.
$x2(float) Abscissa of control point 2.
$y2(float) Ordinate of control point 2.
$x3(float) Abscissa of end point.
$y3(float) Ordinate of end point.
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of curve. Array like for SetLineStyle(). Default value: default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
See also:
SetLineStyle()
Since:
2.1.000 (2008-01-08)

Definition at line 14881 of file tcpdf.php.

Here is the call graph for this function:

deletePage ( page)

Remove the specified page.

Parameters:
$page(int) page to remove
Returns:
true in case of success, false in case of error.
Since:
4.6.004 (2009-04-23)

Definition at line 25398 of file tcpdf.php.

Here is the call graph for this function:

drawHTMLTagBorder ( tag,
xmax 
) [protected]

Draw an HTML block border and fill

Parameters:
$tag(array) array of tag properties.
$xmax(int) end X coordinate for border.
Since:
5.7.000 (2010-08-03)

Definition at line 24170 of file tcpdf.php.

Here is the call graph for this function:

Ellipse ( x0,
y0,
rx,
ry = '',
angle = 0,
astart = 0,
afinish = 360,
style = '',
line_style = array(),
fill_color = array(),
nc = 2 
)

Draws an ellipse. An ellipse is formed from n Bezier curves.

Parameters:
$x0(float) Abscissa of center point.
$y0(float) Ordinate of center point.
$rx(float) Horizontal radius.
$ry(float) Vertical radius (if ry = 0 then is a circle, see Circle()). Default value: 0.
$angle,:(float) Angle oriented (anti-clockwise). Default value: 0.
$astart,:(float) Angle start of draw line. Default value: 0.
$afinish,:(float) Angle finish of draw line. Default value: 360.
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of ellipse. Array like for SetLineStyle(). Default value: default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
$nc(integer) Number of curves used to draw a 90 degrees portion of ellipse.
Author:
Nicola Asuni
Since:
2.1.000 (2008-01-08)

Definition at line 14945 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

empty_string ( str)

Determine whether a string is empty.

Parameters:
$str(string) string to be checked
Returns:
boolean true if string is empty
Since:
4.5.044 (2009-04-16)

Definition at line 26003 of file tcpdf.php.

Here is the caller graph for this function:

encodeNameObject ( name) [protected]

Encode a name object.

Parameters:
$name(string) Name object to encode.
Returns:
(string) Encoded name object.
Author:
Nicola Asuni
Since:
5.9.097 (2011-06-23)

Definition at line 16086 of file tcpdf.php.

Here is the caller graph for this function:

endLayer ( )

End the current PDF layer.

Since:
5.9.102 (2011-07-13)

Definition at line 17893 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

endPage ( tocpage = false)

Terminate the current page

Parameters:
$tocpage(boolean) if true set the tocpage state to false (end the page used to display Table Of Content).
Since:
4.2.010 (2008-11-14)
See also:
AddPage(), startPage(), addTOCPage(), endTOCPage()

Definition at line 3909 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

endSVGElementHandler ( parser,
name 
) [protected]

Sets the closing SVG element handler function for the XML parser.

Parameters:
$parser(resource) The first parameter, parser, is a reference to the XML parser calling the handler.
$name(string) The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 28665 of file tcpdf.php.

Here is the call graph for this function:

End the current XObject Template started with startTemplate() and restore the previous graphic state. An XObject Template is a PDF block that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images). An XObject Template may be painted multiple times, either on several pages or at several locations on the same page and produces the same results each time, subject only to the graphics state at the time it is invoked.

Returns:
int the XObject Template ID in case of success or false in case of error.
Author:
Nicola Asuni
Since:
5.8.017 (2010-08-24)
See also:
startTemplate(), printTemplate()

Definition at line 26711 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Terminate the current TOC (Table Of Content) page

Since:
5.0.001 (2010-05-06)
See also:
AddPage(), startPage(), endPage(), addTOCPage()

Definition at line 3870 of file tcpdf.php.

Here is the call graph for this function:

Error ( msg)

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. 2004-06-11 :: Nicola Asuni : changed bold tag with strong

Parameters:
$msg(string) The error message
Since:
1.0

Definition at line 3710 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

extractCSSproperties ( cssdata) [protected]

Extracts the CSS properties from a CSS string.

Parameters:
$cssdata(string) string containing CSS definitions.
Returns:
An array where the keys are the CSS selectors and the values are the CSS properties.
Author:
Nicola Asuni
Since:
5.1.000 (2010-05-25)

Definition at line 19923 of file tcpdf.php.

Here is the caller graph for this function:

fitBlock ( w,
h,
x,
y,
fitonpage = false 
) [protected]

Set the block dimensions accounting for page breaks and page/column fitting

Parameters:
$w(float) width
$h(float) height
$x(float) X coordinate
$y(float) Y coodiante
$fitonpage(boolean) if true the block is resized to not exceed page dimensions.
Returns:
array($w, $h, $x, $y)
Since:
5.5.009 (2010-07-05)

Definition at line 7372 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

fixHTMLCode ( html,
default_css = '',
tagvs = '',
tidy_options = '' 
)

Cleanup HTML code (requires HTML Tidy library).

Parameters:
$html(string) htmlcode to fix
$default_css(string) CSS commands to add
$tagvs(array) parameters for setHtmlVSpace method
$tidy_options(array) options for tidy_parse_string function
Returns:
string XHTML code cleaned up
Author:
Nicola Asuni
Since:
5.9.017 (2010-11-16)
See also:
setHtmlVSpace()

Definition at line 19858 of file tcpdf.php.

Here is the call graph for this function:

Footer ( )

This method is used to render the page footer. It is automatically called by AddPage() and could be overwritten in your own inherited class.

Definition at line 4235 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

formatPageNumber ( num) [protected]

Format the page numbers. This method can be overriden for custom formats.

Parameters:
$num(int) page number
Since:
4.2.005 (2008-11-06)

Definition at line 17820 of file tcpdf.php.

Here is the caller graph for this function:

formatTOCPageNumber ( num) [protected]

Format the page numbers on the Table Of Content. This method can be overriden for custom formats.

Parameters:
$num(int) page number
Since:
4.5.001 (2009-01-04)
See also:
addTOC(), addHTMLTOC()

Definition at line 17832 of file tcpdf.php.

Here is the caller graph for this function:

get_mqr ( )

Gets the current active configuration setting of magic_quotes_runtime (if the get_magic_quotes_runtime function exist)

Returns:
Returns 0 if magic quotes runtime is off or get_magic_quotes_runtime doesn't exist, 1 otherwise.
Since:
4.6.025 (2009-08-17)

Definition at line 7897 of file tcpdf.php.

Here is the caller graph for this function:

GetAbsX ( )

Returns the absolute X value of current position.

Returns:
float
Since:
1.2
See also:
SetX(), GetY(), SetY()

Definition at line 8338 of file tcpdf.php.

Returns the string alias used for the total number of pages. If the current font is unicode type, the returned string is surrounded by additional curly braces. This alias will be replaced by the total number of pages in the document.

Returns:
string
Since:
4.0.018 (2008-08-08)

Definition at line 17741 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the string alias used for the page number. If the current font is unicode type, the returned string is surrounded by additional curly braces. This alias will be replaced by the page number.

Returns:
string
Since:
4.5.000 (2009-01-02)

Definition at line 17756 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the string alias used right align page numbers. If the current font is unicode type, the returned string wil contain an additional open curly brace.

Returns:
string
Since:
5.9.099 (2011-06-27)

Definition at line 17720 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Return an array containing all internal page aliases.

Returns:
array of page number aliases

Definition at line 8742 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getAnnotOptFromJSProp ( prop) [protected]

Convert JavaScript form fields properties array to Annotation Properties array.

Parameters:
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
Returns:
array of annotation properties
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-06)

Definition at line 16476 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

GetArrStringWidth ( sa,
fontname = '',
fontstyle = '',
fontsize = 0,
getarray = false 
)

Returns the string length of an array of chars in user unit or an array of characters widths. A font must be selected.

Parameters:
$sa(string) The array of chars whose total length is to be computed
$fontname(string) Family font. It can be either a name defined by AddFont() or one of the standard families. It is also possible to pass an empty string, in that case, the current family is retained.
$fontstyle(string) Font style. Possible values are (case insensitive):
  • empty string: regular
  • B: bold
  • I: italic
  • U: underline
  • D: line trough
  • O: overline
or any combination. The default value is regular.
$fontsize(float) Font size in points. The default value is the current size.
$getarray(boolean) if true returns an array of characters widths, if false returns the total length.
Returns:
mixed int total string length or array of characted widths
Author:
Nicola Asuni
Since:
2.4.000 (2008-03-06)

Definition at line 4813 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Return the auto-page-break mode (true or false).

Returns:
boolean auto-page-break mode
Since:
5.9.088

Definition at line 3530 of file tcpdf.php.

Get current barcode.

Returns:
string
Since:
4.0.012 (2008-07-24)

Definition at line 19143 of file tcpdf.php.

Here is the caller graph for this function:

getBorderMode ( brd,
position = 'start' 
) [protected]

Get the border mode accounting for multicell position (opens bottom side of multicell crossing pages)

Parameters:
$brd(mixed) Indicates if borders must be drawn around the cell block. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$position(string) multicell position: 'start', 'middle', 'end'
Returns:
border mode array
Since:
4.4.002 (2008-12-09)

Definition at line 6614 of file tcpdf.php.

Here is the caller graph for this function:

getBorderStartPosition ( ) [protected]

Return the starting coordinates to draw an html border

Returns:
array containing top-left border coordinates
Since:
5.7.000 (2010-08-03)

Definition at line 24154 of file tcpdf.php.

getBreakMargin ( pagenum = '')

Returns the page break margin.

Parameters:
$pagenum(int) page number (empty = current page)
Returns:
int page break margin.
Author:
Nicola Asuni
Since:
1.5.2
See also:
getPageDimensions()

Definition at line 3261 of file tcpdf.php.

Here is the caller graph for this function:

getBuffer ( ) [protected]

Get buffer content.

Returns:
string buffer content
Since:
4.5.000 (2009-01-02)

Definition at line 25057 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCellBorder ( x,
y,
w,
h,
brd 
) [protected]

Returns the code to draw the cell border

Parameters:
$x(float) X coordinate.
$y(float) Y coordinate.
$w(float) Cell width.
$h(float) Cell height.
$brd(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
Returns:
string containing cell border code
See also:
SetLineStyle()
Since:
5.7.000 (2010-08-02)

Definition at line 6077 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCellCode ( w,
h = 0,
txt = '',
border = 0,
ln = 0,
align = '',
fill = false,
link = '',
stretch = 0,
ignore_min_height = false,
calign = 'T',
valign = 'M' 
) [protected]

Returns the PDF string code to print 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.

Parameters:
$w(float) Cell width. If 0, the cell extends up to the right margin.
$h(float) Cell height. Default value: 0.
$txt(string) String to print. Default value: empty string.
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$ln(int) Indicates where the current position should go after the call. Possible values are:
  • 0: to the right (or left for RTL languages)
  • 1: to the beginning of the next line
  • 2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
$align(string) Allows to center or align the text. Possible values are:
  • L or empty string: left align (default value)
  • C: center
  • R: right align
  • J: justify
$fill(boolean) Indicates if the cell background must be painted (true) or transparent (false).
$link(mixed) URL or identifier returned by AddLink().
$stretch(int) font stretch mode:
  • 0 = disabled
  • 1 = horizontal scaling only if text is larger than cell width
  • 2 = forced horizontal scaling to fit cell width
  • 3 = character spacing only if text is larger than cell width
  • 4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
$ignore_min_height(boolean) if true ignore automatic minimum height value.
$calign(string) cell vertical alignment relative to the specified Y value. Possible values are:
  • T : cell top
  • C : center
  • B : cell bottom
  • A : font top
  • L : font baseline
  • D : font bottom
$valign(string) text vertical alignment inside the cell. Possible values are:
  • T : top
  • M : middle
  • B : bottom
Returns:
string containing cell code
Since:
1.0
See also:
Cell()

Definition at line 5668 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

return the height of cell repect font height.

Since:
4.0.012 (2008-07-24)

Definition at line 18057 of file tcpdf.php.

Get the internal Cell margin array.

Returns:
array of margin values
Since:
5.9.000 (2010-10-03)
See also:
setCellMargins()

Definition at line 3432 of file tcpdf.php.

Get the internal Cell padding array.

Returns:
array of padding values
Since:
5.9.000 (2010-10-03)
See also:
setCellPaddings(), SetCellPadding()

Definition at line 3396 of file tcpdf.php.

GetCharWidth ( char,
notlast = true 
)

Returns the length of the char in user unit for the current font considering current stretching and spacing (tracking/kerning).

Parameters:
$char(int) The char code whose length is to be returned
$notlast(boolean) set to false for the latest character on string, true otherwise (default)
Returns:
float char width
Author:
Nicola Asuni
Since:
2.4.000 (2008-03-06)

Definition at line 4850 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getColumn ( )

Return the current column number

Returns:
int current column number
Since:
5.5.011 (2010-07-08)

Definition at line 26171 of file tcpdf.php.

getCSSBorderDashStyle ( style) [protected]

Returns the border dash style from CSS property

Parameters:
$style(string) border style to convert
Returns:
int sash style (return -1 in case of none or hidden border)
Since:
5.7.000 (2010-08-02)

Definition at line 20271 of file tcpdf.php.

Here is the caller graph for this function:

getCSSBorderMargin ( cssbspace,
width = 0 
)

Get the border-spacing from CSS attribute.

Parameters:
$cssbspace(string) border-spacing CSS properties
$width(float) width of the containing element
Returns:
array of border spacings
Since:
5.9.010 (2010-10-27)

Definition at line 20466 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCSSBorderStyle ( cssborder) [protected]

Returns the border style array from CSS border properties

Parameters:
$cssborder(string) border properties
Returns:
array containing border properties
Since:
5.7.000 (2010-08-02)

Definition at line 20307 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCSSBorderWidth ( width) [protected]

Returns the border width from CSS property

Parameters:
$width(string) border width
Returns:
int with in user units
Since:
5.7.000 (2010-08-02)

Definition at line 20251 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCSSdataArray ( dom,
key,
css 
) [protected]

Returns the styles array that apply for the selected HTML tag.

Parameters:
$dom(array) array of HTML tags and properties
$key(int) key of the current HTML tag
$css(array) array of CSS properties
Returns:
array containing CSS properties
Since:
5.1.000 (2010-05-25)

Definition at line 20175 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCSSFontSpacing ( spacing,
parent = 0 
) [protected]

Returns the letter-spacing value from CSS value

Parameters:
$spacing(string) letter-spacing value
$parent(float) font spacing (tracking/kerning) value of the parent element
Returns:
float quantity to increases or decreases the space between characters in a text.
Since:
5.9.000 (2010-10-02)

Definition at line 20500 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCSSFontStretching ( stretch,
parent = 100 
) [protected]

Returns the percentage of font stretching from CSS value

Parameters:
$stretch(string) stretch mode
$parent(float) stretch value of the parent element
Returns:
float font stretching percentage
Since:
5.9.000 (2010-10-02)

Definition at line 20531 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCSSMargin ( cssmargin,
width = 0 
)

Get the internal Cell margin from CSS attribute.

Parameters:
$cssmargin(string) margin properties
$width(float) width of the containing element
Returns:
array of cell margins
Since:
5.9.000 (2010-10-04)

Definition at line 20412 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCSSPadding ( csspadding,
width = 0 
)

Get the internal Cell padding from CSS attribute.

Parameters:
$csspadding(string) padding properties
$width(float) width of the containing element
Returns:
array of cell paddings
Since:
5.9.000 (2010-10-04)

Definition at line 20358 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Return the Named Destination array.

Returns:
(array) Named Destination array.
Author:
Nicola Asuni
Since:
5.9.097 (2011-06-23)

Definition at line 16137 of file tcpdf.php.

getEncPermissionsString ( protection) [protected]

Convert encryption P value to a string of bytes, low-order byte first.

Parameters:
$protection(string) 32bit encryption permission value (P value)
Returns:
String
Since:
5.0.005 (2010-05-12)
Author:
Nicola Asuni

Definition at line 14262 of file tcpdf.php.

Here is the caller graph for this function:

getFontAscent ( font,
style = '',
size = 0 
)

Return the font ascent value

Parameters:
$font(string) font name
$style(string) font style
$size(float) The size (in points)
Returns:
int font ascent
Author:
Nicola Asuni
Since:
4.9.003 (2010-03-30)

Definition at line 5288 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getFontBuffer ( font) [protected]

Get font buffer content.

Parameters:
$font(string) font key
Returns:
string font buffer content or false in case of error
Since:
4.5.000 (2009-01-02)

Definition at line 25221 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getFontDescent ( font,
style = '',
size = 0 
)

Return the font descent value

Parameters:
$font(string) font name
$style(string) font style
$size(float) The size (in points)
Returns:
int font descent
Author:
Nicola Asuni
Since:
4.9.003 (2010-03-30)

Definition at line 5267 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the current font family name.

Returns:
string current font family name
Since:
4.3.008 (2008-12-05)

Definition at line 19832 of file tcpdf.php.

getFontFamilyName ( fontfamily)

Return normalized font name

Parameters:
$fontfamily(string) property string containing font family names
Returns:
string normalized font name
Author:
Nicola Asuni
Since:
5.8.004 (2010-08-17)

Definition at line 26603 of file tcpdf.php.

Here is the caller graph for this function:

Returns the current font size.

Returns:
current font size
Since:
3.2.000 (2008-06-23)

Definition at line 19812 of file tcpdf.php.

Returns the current font size in points unit.

Returns:
current font size in points unit
Since:
3.2.000 (2008-06-23)

Definition at line 19822 of file tcpdf.php.

getFontsList ( ) [protected]

Fill the list of available fonts ($this->fontlist).

Since:
4.0.013 (2008-07-28)

Definition at line 4910 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Get the amount to increase or decrease the space between characters in a text.

Returns:
int font spacing (tracking/kerning) value
Author:
Nicola Asuni
Since:
5.9.000 (2010-09-29)

Definition at line 26897 of file tcpdf.php.

Get the percentage of character stretching.

Returns:
float stretching value
Author:
Nicola Asuni
Since:
5.9.000 (2010-09-29)

Definition at line 26875 of file tcpdf.php.

Returns the current font style.

Returns:
string current font style
Since:
4.3.008 (2008-12-05)

Definition at line 19842 of file tcpdf.php.

Return the default option for font subsetting.

Returns:
boolean default font subsetting state.
Author:
Nicola Asuni
Since:
5.3.002 (2010-06-07)

Definition at line 26539 of file tcpdf.php.

Get Footer font.

Returns:
array()
Since:
4.0.012 (2008-07-24)

Definition at line 13341 of file tcpdf.php.

Returns footer margin in user units.

Returns:
float
Since:
4.0.012 (2008-07-24)

Definition at line 4097 of file tcpdf.php.

Return the default properties for form fields.

Returns:
array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-06)

Definition at line 16853 of file tcpdf.php.

Here is the caller graph for this function:

getGDgamma ( v) [protected]

Correct the gamma value to be used with GD library

Parameters:
$v(float) the gamma value to be corrected
Since:
4.3.007 (2008-12-04)

Definition at line 8274 of file tcpdf.php.

Here is the caller graph for this function:

getGraphicVars ( ) [protected]

Returns current graphic variables as array.

Returns:
array of graphic variables
Since:
4.2.010 (2008-11-14)

Definition at line 24848 of file tcpdf.php.

Here is the caller graph for this function:

Return the current page in the group.

Returns:
current page in the group
Since:
3.0.000 (2008-03-27)

Definition at line 17799 of file tcpdf.php.

Here is the caller graph for this function:

Returns the current group page number formatted as a string.

Since:
4.3.003 (2008-11-18)
See also:
PaneNo(), formatPageNumber()

Definition at line 17809 of file tcpdf.php.

Here is the call graph for this function:

Returns header data:

  • $ret['logo'] = logo image
  • $ret['logo_width'] = width of the image logo in user units
  • $ret['title'] = header title
  • $ret['string'] = header description string
Returns:
array()
Since:
4.0.012 (2008-07-24)

Definition at line 4052 of file tcpdf.php.

Here is the caller graph for this function:

Get header font.

Returns:
array()
Since:
4.0.012 (2008-07-24)

Definition at line 13321 of file tcpdf.php.

Here is the caller graph for this function:

Returns header margin in user units.

Returns:
float
Since:
4.0.012 (2008-07-24)

Definition at line 4077 of file tcpdf.php.

getHtmlDomArray ( html) [protected]

Returns the HTML DOM array.

Parameters:
$html(string) html code
Returns:
array
Since:
3.2.000 (2008-06-20)

Definition at line 20601 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getHTMLUnitToUnits ( htmlval,
refsize = 1,
defaultunit = 'px',
points = false 
)

Convert HTML string containing value and unit of measure to user's units or points.

Parameters:
$htmlval(string) string containing values and unit
$refsize(string) reference value in points
$defaultunit(string) default unit (can be one of the following: %, em, ex, px, in, mm, pc, pt).
$points(boolean) if true returns points, otherwise returns value in user's units
Returns:
float value in user's unit or point if $points=true
Since:
4.4.004 (2008-12-10)

Definition at line 24505 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns an array of hyphenation patterns.

Parameters:
$file(string) TEX file containing hypenation patterns. TEX pattrns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
Returns:
array of hyphenation patterns
Author:
Nicola Asuni
Since:
4.9.012 (2010-04-12)

Definition at line 26337 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getImageBuffer ( image) [protected]

Get image buffer content.

Parameters:
$image(string) image key
Returns:
string image buffer content or false in case of error
Since:
4.5.000 (2008-12-31)

Definition at line 25159 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getImageFileType ( imgfile,
iminfo = array() 
)

Return the image type given the file name or array returned by getimagesize() function.

Parameters:
$imgfile(string) image file name
$iminfo(array) array of image information returned by getimagesize() function.
Returns:
string image type
Since:
4.8.017 (2009-11-27)

Definition at line 7341 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Return the right-bottom (or left-bottom for RTL) corner X coordinate of last inserted image

Returns:
float

Definition at line 4123 of file tcpdf.php.

Return the right-bottom (or left-bottom for RTL) corner Y coordinate of last inserted image

Returns:
float

Definition at line 4132 of file tcpdf.php.

Here is the caller graph for this function:

Returns the adjusting factor to convert pixels to user units.

Returns:
float adjusting factor to convert pixels to user units.
Author:
Nicola Asuni
Since:
1.5.2

Definition at line 3200 of file tcpdf.php.

getInternalPageNumberAliases ( a = '') [protected]

Return an array containing variations for the basic page number alias.

Parameters:
$a(string) Base alias.
Returns:
array of page number aliases

Definition at line 8721 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getLastH ( )

Get the last cell height.

Returns:
last cell height
Since:
4.0.017 (2008-08-05)

Definition at line 3178 of file tcpdf.php.

Returns the current the line width.

Returns:
int Line width
Since:
2.1.000 (2008-01-07)
See also:
Line(), SetLineWidth()

Definition at line 14624 of file tcpdf.php.

Here is the caller graph for this function:

Returns an array containing current margins:

  • $ret['left'] = left margin
  • $ret['right'] = right margin
  • $ret['top'] = top margin
  • $ret['bottom'] = bottom margin
  • $ret['header'] = header margin
  • $ret['footer'] = footer margin
  • $ret['cell'] = cell padding array
  • $ret['padding_left'] = cell left padding
  • $ret['padding_top'] = cell top padding
  • $ret['padding_right'] = cell right padding
  • $ret['padding_bottom'] = cell bottom padding
Returns:
array containing all margins measures
Since:
3.2.000 (2008-06-23)

Definition at line 19771 of file tcpdf.php.

Return the current number of columns.

Returns:
int number of columns
Since:
5.8.018 (2010-08-25)

Definition at line 26181 of file tcpdf.php.

GetNumChars ( s)

Returns the numbero of characters in a string.

Parameters:
$s(string) The input string.
Returns:
int number of characters
Since:
2.0.0001 (2008-01-07)

Definition at line 4898 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getNumLines ( txt,
w = 0,
reseth = false,
autopadding = true,
cellpadding = '',
border = 0 
)

This method return the estimated number of lines for print a simple text string using Multicell() method.

Parameters:
$txt(string) String for calculating his height
$w(float) Width of cells. If 0, they extend up to the right margin of the page.
$reseth(boolean) if true reset the last cell height (default false).
$autopadding(boolean) if true, uses internal padding and automatically adjust it to account for line width (default true).
$cellpadding(float) Internal cell padding, if empty uses default cell padding.
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
Returns:
float Return the minimal height needed for multicell method for printing the $txt param.
Author:
Alexander Escalona Fernández, Nicola Asuni
Since:
4.5.011

Definition at line 6692 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Get the total number of insered pages.

Returns:
int number of pages
Since:
2.1.000 (2008-01-07)
See also:
setPage(), getPage(), lastpage()

Definition at line 3847 of file tcpdf.php.

Here is the caller graph for this function:

getObjFilename ( name) [protected]

Returns a temporary filename for caching object on filesystem.

Parameters:
$name(string) prefix to add to filename
Returns:
string filename.
Since:
4.5.000 (2008-12-31)

Definition at line 24971 of file tcpdf.php.

Here is the caller graph for this function:

Returns an array containing original margins:

  • $ret['left'] = left margin
  • $ret['right'] = right margin
Returns:
array containing all margins measures
Since:
4.0.012 (2008-07-24)

Definition at line 19798 of file tcpdf.php.

getPage ( )

Get current document page number.

Returns:
int page number
Since:
2.1.000 (2008-01-07)
See also:
setPage(), lastpage(), getNumPages()

Definition at line 3836 of file tcpdf.php.

Here is the caller graph for this function:

getPageBuffer ( page) [protected]

Get page buffer content.

Parameters:
$page(int) page number
Returns:
string page buffer content or false in case of error
Since:
4.5.000 (2008-12-31)

Definition at line 25100 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getPageDimensions ( pagenum = '')

Returns an array of page dimensions:

  • $this->pagedim[$this->page]['w'] = page width in points
  • $this->pagedim[$this->page]['h'] = height in points
  • $this->pagedim[$this->page]['wk'] = page width in user units
  • $this->pagedim[$this->page]['hk'] = page height in user units
  • $this->pagedim[$this->page]['tm'] = top margin
  • $this->pagedim[$this->page]['bm'] = bottom margin
  • $this->pagedim[$this->page]['lm'] = left margin
  • $this->pagedim[$this->page]['rm'] = right margin
  • $this->pagedim[$this->page]['pb'] = auto page break
  • $this->pagedim[$this->page]['or'] = page orientation
  • $this->pagedim[$this->page]['olm'] = original left margin
  • $this->pagedim[$this->page]['orm'] = original right margin
  • $this->pagedim[$this->page]['Rotate'] = The number of degrees by which the page shall be rotated clockwise when displayed or printed. The value shall be a multiple of 90.
  • $this->pagedim[$this->page]['PZ'] = The page's preferred zoom (magnification) factor.
  • $this->pagedim[$this->page]['trans'] : the style and duration of the visual transition to use when moving from another page to the given page during a presentation
    • $this->pagedim[$this->page]['trans']['Dur'] = The page's display duration (also called its advance timing): the maximum length of time, in seconds, that the page shall be displayed during presentations before the viewer application shall automatically advance to the next page.
    • $this->pagedim[$this->page]['trans']['S'] = transition style : Split, Blinds, Box, Wipe, Dissolve, Glitter, R, Fly, Push, Cover, Uncover, Fade
    • $this->pagedim[$this->page]['trans']['D'] = The duration of the transition effect, in seconds.
    • $this->pagedim[$this->page]['trans']['Dm'] = (Split and Blinds transition styles only) The dimension in which the specified transition effect shall occur: H = Horizontal, V = Vertical. Default value: H.
    • $this->pagedim[$this->page]['trans']['M'] = (Split, Box and Fly transition styles only) The direction of motion for the specified transition effect: I = Inward from the edges of the page, O = Outward from the center of the pageDefault value: I.
    • $this->pagedim[$this->page]['trans']['Di'] = (Wipe, Glitter, Fly, Cover, Uncover and Push transition styles only) The direction in which the specified transition effect shall moves, expressed in degrees counterclockwise starting from a left-to-right direction. If the value is a number, it shall be one of: 0 = Left to right, 90 = Bottom to top (Wipe only), 180 = Right to left (Wipe only), 270 = Top to bottom, 315 = Top-left to bottom-right (Glitter only). If the value is a name, it shall be None, which is relevant only for the Fly transition when the value of SS is not 1.0. Default value: 0.
    • $this->pagedim[$this->page]['trans']['SS'] = (Fly transition style only) The starting or ending scale at which the changes shall be drawn. If M specifies an inward transition, the scale of the changes drawn shall progress from SS to 1.0 over the course of the transition. If M specifies an outward transition, the scale of the changes drawn shall progress from 1.0 to SS over the course of the transition. Default: 1.0.
    • $this->pagedim[$this->page]['trans']['B'] = (Fly transition style only) If true, the area that shall be flown in is rectangular and opaque. Default: false.
  • $this->pagedim[$this->page]['MediaBox'] : the boundaries of the physical medium on which the page shall be displayed or printed
    • $this->pagedim[$this->page]['MediaBox']['llx'] = lower-left x coordinate in points
    • $this->pagedim[$this->page]['MediaBox']['lly'] = lower-left y coordinate in points
    • $this->pagedim[$this->page]['MediaBox']['urx'] = upper-right x coordinate in points
    • $this->pagedim[$this->page]['MediaBox']['ury'] = upper-right y coordinate in points
  • $this->pagedim[$this->page]['CropBox'] : the visible region of default user space
    • $this->pagedim[$this->page]['CropBox']['llx'] = lower-left x coordinate in points
    • $this->pagedim[$this->page]['CropBox']['lly'] = lower-left y coordinate in points
    • $this->pagedim[$this->page]['CropBox']['urx'] = upper-right x coordinate in points
    • $this->pagedim[$this->page]['CropBox']['ury'] = upper-right y coordinate in points
  • $this->pagedim[$this->page]['BleedBox'] : the region to which the contents of the page shall be clipped when output in a production environment
    • $this->pagedim[$this->page]['BleedBox']['llx'] = lower-left x coordinate in points
    • $this->pagedim[$this->page]['BleedBox']['lly'] = lower-left y coordinate in points
    • $this->pagedim[$this->page]['BleedBox']['urx'] = upper-right x coordinate in points
    • $this->pagedim[$this->page]['BleedBox']['ury'] = upper-right y coordinate in points
  • $this->pagedim[$this->page]['TrimBox'] : the intended dimensions of the finished page after trimming
    • $this->pagedim[$this->page]['TrimBox']['llx'] = lower-left x coordinate in points
    • $this->pagedim[$this->page]['TrimBox']['lly'] = lower-left y coordinate in points
    • $this->pagedim[$this->page]['TrimBox']['urx'] = upper-right x coordinate in points
    • $this->pagedim[$this->page]['TrimBox']['ury'] = upper-right y coordinate in points
  • $this->pagedim[$this->page]['ArtBox'] : the extent of the page's meaningful content
    • $this->pagedim[$this->page]['ArtBox']['llx'] = lower-left x coordinate in points
    • $this->pagedim[$this->page]['ArtBox']['lly'] = lower-left y coordinate in points
    • $this->pagedim[$this->page]['ArtBox']['urx'] = upper-right x coordinate in points
    • $this->pagedim[$this->page]['ArtBox']['ury'] = upper-right y coordinate in points
Parameters:
$pagenum(int) page number (empty = current page)
Returns:
array of page dimensions.
Author:
Nicola Asuni
Since:
4.5.027 (2009-03-16)

Definition at line 3213 of file tcpdf.php.

Return the alias for the total number of pages in the current page group. If the current font is unicode type, the returned string is surrounded by additional curly braces. This alias will be replaced by the total number of pages in this group.

Returns:
alias of the current page group
Since:
3.0.000 (2008-03-27)

Definition at line 17771 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getPageHeight ( pagenum = '')

Returns the page height in units.

Parameters:
$pagenum(int) page number (empty = current page)
Returns:
int page height.
Author:
Nicola Asuni
Since:
1.5.2
See also:
getPageDimensions()

Definition at line 3245 of file tcpdf.php.

Return the alias for the page number on the current page group. If the current font is unicode type, the returned string is surrounded by additional curly braces. This alias will be replaced by the page number (relative to the belonging group).

Returns:
alias of the current page group
Since:
4.5.000 (2009-01-02)

Definition at line 17786 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Return an array of no-write page regions

Returns:
array of no-write page regions
Author:
Nicola Asuni
Since:
5.9.003 (2010-10-13)
See also:
setPageRegions(), addPageRegion()

Definition at line 26909 of file tcpdf.php.

getPageSizeFromFormat ( format)

Get page dimensions from format name.

Parameters:
$format(mixed) The format name. It can be:
  • ISO 216 A Series + 2 SIS 014711 extensions
  • A0 (841x1189 mm ; 33.11x46.81 in)
  • A1 (594x841 mm ; 23.39x33.11 in)
  • A2 (420x594 mm ; 16.54x23.39 in)
  • A3 (297x420 mm ; 11.69x16.54 in)
  • A4 (210x297 mm ; 8.27x11.69 in)
  • A5 (148x210 mm ; 5.83x8.27 in)
  • A6 (105x148 mm ; 4.13x5.83 in)
  • A7 (74x105 mm ; 2.91x4.13 in)
  • A8 (52x74 mm ; 2.05x2.91 in)
  • A9 (37x52 mm ; 1.46x2.05 in)
  • A10 (26x37 mm ; 1.02x1.46 in)
  • A11 (18x26 mm ; 0.71x1.02 in)
  • A12 (13x18 mm ; 0.51x0.71 in)
  • ISO 216 B Series + 2 SIS 014711 extensions
  • B0 (1000x1414 mm ; 39.37x55.67 in)
  • B1 (707x1000 mm ; 27.83x39.37 in)
  • B2 (500x707 mm ; 19.69x27.83 in)
  • B3 (353x500 mm ; 13.90x19.69 in)
  • B4 (250x353 mm ; 9.84x13.90 in)
  • B5 (176x250 mm ; 6.93x9.84 in)
  • B6 (125x176 mm ; 4.92x6.93 in)
  • B7 (88x125 mm ; 3.46x4.92 in)
  • B8 (62x88 mm ; 2.44x3.46 in)
  • B9 (44x62 mm ; 1.73x2.44 in)
  • B10 (31x44 mm ; 1.22x1.73 in)
  • B11 (22x31 mm ; 0.87x1.22 in)
  • B12 (15x22 mm ; 0.59x0.87 in)
  • ISO 216 C Series + 2 SIS 014711 extensions + 2 EXTENSION
  • C0 (917x1297 mm ; 36.10x51.06 in)
  • C1 (648x917 mm ; 25.51x36.10 in)
  • C2 (458x648 mm ; 18.03x25.51 in)
  • C3 (324x458 mm ; 12.76x18.03 in)
  • C4 (229x324 mm ; 9.02x12.76 in)
  • C5 (162x229 mm ; 6.38x9.02 in)
  • C6 (114x162 mm ; 4.49x6.38 in)
  • C7 (81x114 mm ; 3.19x4.49 in)
  • C8 (57x81 mm ; 2.24x3.19 in)
  • C9 (40x57 mm ; 1.57x2.24 in)
  • C10 (28x40 mm ; 1.10x1.57 in)
  • C11 (20x28 mm ; 0.79x1.10 in)
  • C12 (14x20 mm ; 0.55x0.79 in)
  • C76 (81x162 mm ; 3.19x6.38 in)
  • DL (110x220 mm ; 4.33x8.66 in)
  • SIS 014711 E Series
  • E0 (879x1241 mm ; 34.61x48.86 in)
  • E1 (620x879 mm ; 24.41x34.61 in)
  • E2 (440x620 mm ; 17.32x24.41 in)
  • E3 (310x440 mm ; 12.20x17.32 in)
  • E4 (220x310 mm ; 8.66x12.20 in)
  • E5 (155x220 mm ; 6.10x8.66 in)
  • E6 (110x155 mm ; 4.33x6.10 in)
  • E7 (78x110 mm ; 3.07x4.33 in)
  • E8 (55x78 mm ; 2.17x3.07 in)
  • E9 (39x55 mm ; 1.54x2.17 in)
  • E10 (27x39 mm ; 1.06x1.54 in)
  • E11 (19x27 mm ; 0.75x1.06 in)
  • E12 (13x19 mm ; 0.51x0.75 in)
  • SIS 014711 G Series
  • G0 (958x1354 mm ; 37.72x53.31 in)
  • G1 (677x958 mm ; 26.65x37.72 in)
  • G2 (479x677 mm ; 18.86x26.65 in)
  • G3 (338x479 mm ; 13.31x18.86 in)
  • G4 (239x338 mm ; 9.41x13.31 in)
  • G5 (169x239 mm ; 6.65x9.41 in)
  • G6 (119x169 mm ; 4.69x6.65 in)
  • G7 (84x119 mm ; 3.31x4.69 in)
  • G8 (59x84 mm ; 2.32x3.31 in)
  • G9 (42x59 mm ; 1.65x2.32 in)
  • G10 (29x42 mm ; 1.14x1.65 in)
  • G11 (21x29 mm ; 0.83x1.14 in)
  • G12 (14x21 mm ; 0.55x0.83 in)
  • ISO Press
  • RA0 (860x1220 mm ; 33.86x48.03 in)
  • RA1 (610x860 mm ; 24.02x33.86 in)
  • RA2 (430x610 mm ; 16.93x24.02 in)
  • RA3 (305x430 mm ; 12.01x16.93 in)
  • RA4 (215x305 mm ; 8.46x12.01 in)
  • SRA0 (900x1280 mm ; 35.43x50.39 in)
  • SRA1 (640x900 mm ; 25.20x35.43 in)
  • SRA2 (450x640 mm ; 17.72x25.20 in)
  • SRA3 (320x450 mm ; 12.60x17.72 in)
  • SRA4 (225x320 mm ; 8.86x12.60 in)
  • German DIN 476
  • 4A0 (1682x2378 mm ; 66.22x93.62 in)
  • 2A0 (1189x1682 mm ; 46.81x66.22 in)
  • Variations on the ISO Standard
  • A2_EXTRA (445x619 mm ; 17.52x24.37 in)
  • A3+ (329x483 mm ; 12.95x19.02 in)
  • A3_EXTRA (322x445 mm ; 12.68x17.52 in)
  • A3_SUPER (305x508 mm ; 12.01x20.00 in)
  • SUPER_A3 (305x487 mm ; 12.01x19.17 in)
  • A4_EXTRA (235x322 mm ; 9.25x12.68 in)
  • A4_SUPER (229x322 mm ; 9.02x12.68 in)
  • SUPER_A4 (227x356 mm ; 8.94x14.02 in)
  • A4_LONG (210x348 mm ; 8.27x13.70 in)
  • F4 (210x330 mm ; 8.27x12.99 in)
  • SO_B5_EXTRA (202x276 mm ; 7.95x10.87 in)
  • A5_EXTRA (173x235 mm ; 6.81x9.25 in)
  • ANSI Series
  • ANSI_E (864x1118 mm ; 34.00x44.00 in)
  • ANSI_D (559x864 mm ; 22.00x34.00 in)
  • ANSI_C (432x559 mm ; 17.00x22.00 in)
  • ANSI_B (279x432 mm ; 11.00x17.00 in)
  • ANSI_A (216x279 mm ; 8.50x11.00 in)
  • Traditional 'Loose' North American Paper Sizes
  • LEDGER, USLEDGER (432x279 mm ; 17.00x11.00 in)
  • TABLOID, USTABLOID, BIBLE, ORGANIZERK (279x432 mm ; 11.00x17.00 in)
  • LETTER, USLETTER, ORGANIZERM (216x279 mm ; 8.50x11.00 in)
  • LEGAL, USLEGAL (216x356 mm ; 8.50x14.00 in)
  • GLETTER, GOVERNMENTLETTER (203x267 mm ; 8.00x10.50 in)
  • JLEGAL, JUNIORLEGAL (203x127 mm ; 8.00x5.00 in)
  • Other North American Paper Sizes
  • QUADDEMY (889x1143 mm ; 35.00x45.00 in)
  • SUPER_B (330x483 mm ; 13.00x19.00 in)
  • QUARTO (229x279 mm ; 9.00x11.00 in)
  • FOLIO, GOVERNMENTLEGAL (216x330 mm ; 8.50x13.00 in)
  • EXECUTIVE, MONARCH (184x267 mm ; 7.25x10.50 in)
  • MEMO, STATEMENT, ORGANIZERL (140x216 mm ; 5.50x8.50 in)
  • FOOLSCAP (210x330 mm ; 8.27x13.00 in)
  • COMPACT (108x171 mm ; 4.25x6.75 in)
  • ORGANIZERJ (70x127 mm ; 2.75x5.00 in)
  • Canadian standard CAN 2-9.60M
  • P1 (560x860 mm ; 22.05x33.86 in)
  • P2 (430x560 mm ; 16.93x22.05 in)
  • P3 (280x430 mm ; 11.02x16.93 in)
  • P4 (215x280 mm ; 8.46x11.02 in)
  • P5 (140x215 mm ; 5.51x8.46 in)
  • P6 (107x140 mm ; 4.21x5.51 in)
  • North American Architectural Sizes
  • ARCH_E (914x1219 mm ; 36.00x48.00 in)
  • ARCH_E1 (762x1067 mm ; 30.00x42.00 in)
  • ARCH_D (610x914 mm ; 24.00x36.00 in)
  • ARCH_C, BROADSHEET (457x610 mm ; 18.00x24.00 in)
  • ARCH_B (305x457 mm ; 12.00x18.00 in)
  • ARCH_A (229x305 mm ; 9.00x12.00 in)
  • Announcement Envelopes
  • ANNENV_A2 (111x146 mm ; 4.37x5.75 in)
  • ANNENV_A6 (121x165 mm ; 4.75x6.50 in)
  • ANNENV_A7 (133x184 mm ; 5.25x7.25 in)
  • ANNENV_A8 (140x206 mm ; 5.50x8.12 in)
  • ANNENV_A10 (159x244 mm ; 6.25x9.62 in)
  • ANNENV_SLIM (98x225 mm ; 3.87x8.87 in)
  • Commercial Envelopes
  • COMMENV_N6_1/4 (89x152 mm ; 3.50x6.00 in)
  • COMMENV_N6_3/4 (92x165 mm ; 3.62x6.50 in)
  • COMMENV_N8 (98x191 mm ; 3.87x7.50 in)
  • COMMENV_N9 (98x225 mm ; 3.87x8.87 in)
  • COMMENV_N10 (105x241 mm ; 4.12x9.50 in)
  • COMMENV_N11 (114x263 mm ; 4.50x10.37 in)
  • COMMENV_N12 (121x279 mm ; 4.75x11.00 in)
  • COMMENV_N14 (127x292 mm ; 5.00x11.50 in)
  • Catalogue Envelopes
  • CATENV_N1 (152x229 mm ; 6.00x9.00 in)
  • CATENV_N1_3/4 (165x241 mm ; 6.50x9.50 in)
  • CATENV_N2 (165x254 mm ; 6.50x10.00 in)
  • CATENV_N3 (178x254 mm ; 7.00x10.00 in)
  • CATENV_N6 (191x267 mm ; 7.50x10.50 in)
  • CATENV_N7 (203x279 mm ; 8.00x11.00 in)
  • CATENV_N8 (210x286 mm ; 8.25x11.25 in)
  • CATENV_N9_1/2 (216x267 mm ; 8.50x10.50 in)
  • CATENV_N9_3/4 (222x286 mm ; 8.75x11.25 in)
  • CATENV_N10_1/2 (229x305 mm ; 9.00x12.00 in)
  • CATENV_N12_1/2 (241x318 mm ; 9.50x12.50 in)
  • CATENV_N13_1/2 (254x330 mm ; 10.00x13.00 in)
  • CATENV_N14_1/4 (286x311 mm ; 11.25x12.25 in)
  • CATENV_N14_1/2 (292x368 mm ; 11.50x14.50 in)
  • Japanese (JIS P 0138-61) Standard B-Series
  • JIS_B0 (1030x1456 mm ; 40.55x57.32 in)
  • JIS_B1 (728x1030 mm ; 28.66x40.55 in)
  • JIS_B2 (515x728 mm ; 20.28x28.66 in)
  • JIS_B3 (364x515 mm ; 14.33x20.28 in)
  • JIS_B4 (257x364 mm ; 10.12x14.33 in)
  • JIS_B5 (182x257 mm ; 7.17x10.12 in)
  • JIS_B6 (128x182 mm ; 5.04x7.17 in)
  • JIS_B7 (91x128 mm ; 3.58x5.04 in)
  • JIS_B8 (64x91 mm ; 2.52x3.58 in)
  • JIS_B9 (45x64 mm ; 1.77x2.52 in)
  • JIS_B10 (32x45 mm ; 1.26x1.77 in)
  • JIS_B11 (22x32 mm ; 0.87x1.26 in)
  • JIS_B12 (16x22 mm ; 0.63x0.87 in)
  • PA Series
  • PA0 (840x1120 mm ; 33.07x44.09 in)
  • PA1 (560x840 mm ; 22.05x33.07 in)
  • PA2 (420x560 mm ; 16.54x22.05 in)
  • PA3 (280x420 mm ; 11.02x16.54 in)
  • PA4 (210x280 mm ; 8.27x11.02 in)
  • PA5 (140x210 mm ; 5.51x8.27 in)
  • PA6 (105x140 mm ; 4.13x5.51 in)
  • PA7 (70x105 mm ; 2.76x4.13 in)
  • PA8 (52x70 mm ; 2.05x2.76 in)
  • PA9 (35x52 mm ; 1.38x2.05 in)
  • PA10 (26x35 mm ; 1.02x1.38 in)
  • Standard Photographic Print Sizes
  • PASSPORT_PHOTO (35x45 mm ; 1.38x1.77 in)
  • E (82x120 mm ; 3.25x4.72 in)
  • 3R, L (89x127 mm ; 3.50x5.00 in)
  • 4R, KG (102x152 mm ; 4.02x5.98 in)
  • 4D (120x152 mm ; 4.72x5.98 in)
  • 5R, 2L (127x178 mm ; 5.00x7.01 in)
  • 6R, 8P (152x203 mm ; 5.98x7.99 in)
  • 8R, 6P (203x254 mm ; 7.99x10.00 in)
  • S8R, 6PW (203x305 mm ; 7.99x12.01 in)
  • 10R, 4P (254x305 mm ; 10.00x12.01 in)
  • S10R, 4PW (254x381 mm ; 10.00x15.00 in)
  • 11R (279x356 mm ; 10.98x14.02 in)
  • S11R (279x432 mm ; 10.98x17.01 in)
  • 12R (305x381 mm ; 12.01x15.00 in)
  • S12R (305x456 mm ; 12.01x17.95 in)
  • Common Newspaper Sizes
  • NEWSPAPER_BROADSHEET (750x600 mm ; 29.53x23.62 in)
  • NEWSPAPER_BERLINER (470x315 mm ; 18.50x12.40 in)
  • NEWSPAPER_COMPACT, NEWSPAPER_TABLOID (430x280 mm ; 16.93x11.02 in)
  • Business Cards
  • CREDIT_CARD, BUSINESS_CARD, BUSINESS_CARD_ISO7810 (54x86 mm ; 2.13x3.37 in)
  • BUSINESS_CARD_ISO216 (52x74 mm ; 2.05x2.91 in)
  • BUSINESS_CARD_IT, BUSINESS_CARD_UK, BUSINESS_CARD_FR, BUSINESS_CARD_DE, BUSINESS_CARD_ES (55x85 mm ; 2.17x3.35 in)
  • BUSINESS_CARD_US, BUSINESS_CARD_CA (51x89 mm ; 2.01x3.50 in)
  • BUSINESS_CARD_JP (55x91 mm ; 2.17x3.58 in)
  • BUSINESS_CARD_HK (54x90 mm ; 2.13x3.54 in)
  • BUSINESS_CARD_AU, BUSINESS_CARD_DK, BUSINESS_CARD_SE (55x90 mm ; 2.17x3.54 in)
  • BUSINESS_CARD_RU, BUSINESS_CARD_CZ, BUSINESS_CARD_FI, BUSINESS_CARD_HU, BUSINESS_CARD_IL (50x90 mm ; 1.97x3.54 in)
  • Billboards
  • 4SHEET (1016x1524 mm ; 40.00x60.00 in)
  • 6SHEET (1200x1800 mm ; 47.24x70.87 in)
  • 12SHEET (3048x1524 mm ; 120.00x60.00 in)
  • 16SHEET (2032x3048 mm ; 80.00x120.00 in)
  • 32SHEET (4064x3048 mm ; 160.00x120.00 in)
  • 48SHEET (6096x3048 mm ; 240.00x120.00 in)
  • 64SHEET (8128x3048 mm ; 320.00x120.00 in)
  • 96SHEET (12192x3048 mm ; 480.00x120.00 in)
  • Old Imperial English (some are still used in USA)
  • EN_EMPEROR (1219x1829 mm ; 48.00x72.00 in)
  • EN_ANTIQUARIAN (787x1346 mm ; 31.00x53.00 in)
  • EN_GRAND_EAGLE (730x1067 mm ; 28.75x42.00 in)
  • EN_DOUBLE_ELEPHANT (679x1016 mm ; 26.75x40.00 in)
  • EN_ATLAS (660x864 mm ; 26.00x34.00 in)
  • EN_COLOMBIER (597x876 mm ; 23.50x34.50 in)
  • EN_ELEPHANT (584x711 mm ; 23.00x28.00 in)
  • EN_DOUBLE_DEMY (572x902 mm ; 22.50x35.50 in)
  • EN_IMPERIAL (559x762 mm ; 22.00x30.00 in)
  • EN_PRINCESS (546x711 mm ; 21.50x28.00 in)
  • EN_CARTRIDGE (533x660 mm ; 21.00x26.00 in)
  • EN_DOUBLE_LARGE_POST (533x838 mm ; 21.00x33.00 in)
  • EN_ROYAL (508x635 mm ; 20.00x25.00 in)
  • EN_SHEET, EN_HALF_POST (495x597 mm ; 19.50x23.50 in)
  • EN_SUPER_ROYAL (483x686 mm ; 19.00x27.00 in)
  • EN_DOUBLE_POST (483x775 mm ; 19.00x30.50 in)
  • EN_MEDIUM (445x584 mm ; 17.50x23.00 in)
  • EN_DEMY (445x572 mm ; 17.50x22.50 in)
  • EN_LARGE_POST (419x533 mm ; 16.50x21.00 in)
  • EN_COPY_DRAUGHT (406x508 mm ; 16.00x20.00 in)
  • EN_POST (394x489 mm ; 15.50x19.25 in)
  • EN_CROWN (381x508 mm ; 15.00x20.00 in)
  • EN_PINCHED_POST (375x470 mm ; 14.75x18.50 in)
  • EN_BRIEF (343x406 mm ; 13.50x16.00 in)
  • EN_FOOLSCAP (343x432 mm ; 13.50x17.00 in)
  • EN_SMALL_FOOLSCAP (337x419 mm ; 13.25x16.50 in)
  • EN_POTT (318x381 mm ; 12.50x15.00 in)
  • Old Imperial Belgian
  • BE_GRAND_AIGLE (700x1040 mm ; 27.56x40.94 in)
  • BE_COLOMBIER (620x850 mm ; 24.41x33.46 in)
  • BE_DOUBLE_CARRE (620x920 mm ; 24.41x36.22 in)
  • BE_ELEPHANT (616x770 mm ; 24.25x30.31 in)
  • BE_PETIT_AIGLE (600x840 mm ; 23.62x33.07 in)
  • BE_GRAND_JESUS (550x730 mm ; 21.65x28.74 in)
  • BE_JESUS (540x730 mm ; 21.26x28.74 in)
  • BE_RAISIN (500x650 mm ; 19.69x25.59 in)
  • BE_GRAND_MEDIAN (460x605 mm ; 18.11x23.82 in)
  • BE_DOUBLE_POSTE (435x565 mm ; 17.13x22.24 in)
  • BE_COQUILLE (430x560 mm ; 16.93x22.05 in)
  • BE_PETIT_MEDIAN (415x530 mm ; 16.34x20.87 in)
  • BE_RUCHE (360x460 mm ; 14.17x18.11 in)
  • BE_PROPATRIA (345x430 mm ; 13.58x16.93 in)
  • BE_LYS (317x397 mm ; 12.48x15.63 in)
  • BE_POT (307x384 mm ; 12.09x15.12 in)
  • BE_ROSETTE (270x347 mm ; 10.63x13.66 in)
  • Old Imperial French
  • FR_UNIVERS (1000x1300 mm ; 39.37x51.18 in)
  • FR_DOUBLE_COLOMBIER (900x1260 mm ; 35.43x49.61 in)
  • FR_GRANDE_MONDE (900x1260 mm ; 35.43x49.61 in)
  • FR_DOUBLE_SOLEIL (800x1200 mm ; 31.50x47.24 in)
  • FR_DOUBLE_JESUS (760x1120 mm ; 29.92x44.09 in)
  • FR_GRAND_AIGLE (750x1060 mm ; 29.53x41.73 in)
  • FR_PETIT_AIGLE (700x940 mm ; 27.56x37.01 in)
  • FR_DOUBLE_RAISIN (650x1000 mm ; 25.59x39.37 in)
  • FR_JOURNAL (650x940 mm ; 25.59x37.01 in)
  • FR_COLOMBIER_AFFICHE (630x900 mm ; 24.80x35.43 in)
  • FR_DOUBLE_CAVALIER (620x920 mm ; 24.41x36.22 in)
  • FR_CLOCHE (600x800 mm ; 23.62x31.50 in)
  • FR_SOLEIL (600x800 mm ; 23.62x31.50 in)
  • FR_DOUBLE_CARRE (560x900 mm ; 22.05x35.43 in)
  • FR_DOUBLE_COQUILLE (560x880 mm ; 22.05x34.65 in)
  • FR_JESUS (560x760 mm ; 22.05x29.92 in)
  • FR_RAISIN (500x650 mm ; 19.69x25.59 in)
  • FR_CAVALIER (460x620 mm ; 18.11x24.41 in)
  • FR_DOUBLE_COURONNE (460x720 mm ; 18.11x28.35 in)
  • FR_CARRE (450x560 mm ; 17.72x22.05 in)
  • FR_COQUILLE (440x560 mm ; 17.32x22.05 in)
  • FR_DOUBLE_TELLIERE (440x680 mm ; 17.32x26.77 in)
  • FR_DOUBLE_CLOCHE (400x600 mm ; 15.75x23.62 in)
  • FR_DOUBLE_POT (400x620 mm ; 15.75x24.41 in)
  • FR_ECU (400x520 mm ; 15.75x20.47 in)
  • FR_COURONNE (360x460 mm ; 14.17x18.11 in)
  • FR_TELLIERE (340x440 mm ; 13.39x17.32 in)
  • FR_POT (310x400 mm ; 12.20x15.75 in)
Returns:
array containing page width and height in points
Since:
5.0.010 (2010-05-17)

Definition at line 2384 of file tcpdf.php.

Here is the caller graph for this function:

getPageWidth ( pagenum = '')

Returns the page width in units.

Parameters:
$pagenum(int) page number (empty = current page)
Returns:
int page width.
Author:
Nicola Asuni
Since:
1.5.2
See also:
getPageDimensions()

Definition at line 3229 of file tcpdf.php.

getPathPaintOperator ( style,
default = 'S' 
) [protected]

Get the Path-Painting Operators.

Parameters:
$style(string) Style of rendering. Possible values are:
  • S or D: Stroke the path.
  • s or d: Close and stroke the path.
  • f or F: Fill the path, using the nonzero winding number rule to determine the region to fill.
  • f* or F*: Fill the path, using the even-odd rule to determine the region to fill.
  • B or FD or DF: Fill and then stroke the path, using the nonzero winding number rule to determine the region to fill.
  • B* or F*D or DF*: Fill and then stroke the path, using the even-odd rule to determine the region to fill.
  • b or fd or df: Close, fill, and then stroke the path, using the nonzero winding number rule to determine the region to fill.
  • b or f*d or df*: Close, fill, and then stroke the path, using the even-odd rule to determine the region to fill.
  • CNZ: Clipping mode using the even-odd rule to determine which regions lie inside the clipping path.
  • CEO: Clipping mode using the nonzero winding number rule to determine which regions lie inside the clipping path
  • n: End the path object without filling or stroking it.
$default(string) default style
Author:
Nicola Asuni
Since:
5.0.000 (2010-04-30)

Definition at line 26447 of file tcpdf.php.

Here is the caller graph for this function:

Returns the PDF data.

Definition at line 13364 of file tcpdf.php.

Here is the call graph for this function:

getRandomSeed ( seed = '') [protected]

Returns a string containing random data to be used as a seed for encryption methods.

Parameters:
$seed(string) starting seed value
Returns:
string containing random data
Author:
Nicola Asuni
Since:
5.9.006 (2010-10-19)

Definition at line 13558 of file tcpdf.php.

Here is the caller graph for this function:

getRawCharWidth ( char)

Returns the length of the char in user unit for the current font.

Parameters:
$char(int) The char code whose length is to be returned
Returns:
float char width
Author:
Nicola Asuni
Since:
5.9.000 (2010-09-28)

Definition at line 4872 of file tcpdf.php.

Here is the caller graph for this function:

getRemainingWidth ( ) [protected]

Returns the remaining width between the current position and margins.

Returns:
int Return the remaining width

Definition at line 7241 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getRTL ( )

Return the RTL status

Returns:
boolean
Since:
4.0.012 (2008-07-24)

Definition at line 3106 of file tcpdf.php.

Here is the caller graph for this function:

Returns the scale factor (number of points in user unit).

Returns:
int scale factor.
Author:
Nicola Asuni
Since:
1.5.2

Definition at line 3275 of file tcpdf.php.

getSignatureAppearanceArray ( x = 0,
y = 0,
w = 0,
h = 0,
page = -1 
) [protected]

Get the array that defines the signature appearance (page and rectangle coordinates).

Parameters:
$x(float) Abscissa of the upper-left corner.
$y(float) Ordinate of the upper-left corner.
$w(float) Width of the signature area.
$h(float) Height of the signature area.
$page(int) option page number (if < 0 the current page is used).
Returns:
(array) Array defining page and rectangle coordinates of signature appearance.
Author:
Nicola Asuni
Since:
5.9.101 (2011-07-06)

Definition at line 17656 of file tcpdf.php.

Here is the caller graph for this function:

getSpaceString ( ) [protected]

Returns the string used to find spaces

Returns:
string
Author:
Nicola Asuni
Since:
4.8.024 (2010-01-15)

Definition at line 21384 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getSpotColor ( name)

Return the Spot color array.

Parameters:
$name(string) Name of the spot color.
Returns:
(array) Spot color array or false if not defined.
Since:
5.9.125 (2011-10-03)

Definition at line 4474 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getStringHeight ( w,
txt,
reseth = false,
autopadding = true,
cellpadding = '',
border = 0 
)

This method return the estimated height needed for printing a simple text string using the Multicell() method. Generally, if you want to know the exact height for a block of content you can use the following alternative technique:

Precondition:
// store current object $pdf->startTransaction(); // store starting values $start_y = $pdf->GetY(); $start_page = $pdf->getPage(); // call your printing functions with your parameters
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - $pdf->MultiCell($w=0, $h=0, $txt, $border=1, $align='L', $fill=false, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0);
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - // get the new Y $end_y = $pdf->GetY(); $end_page = $pdf->getPage(); // calculate height $height = 0; if ($end_page == $start_page) { $height = $end_y - $start_y; } else { for ($page=$start_page; $page <= $end_page; ++$page) { $this->setPage($page); if ($page == $start_page) { // first page $height = $this->h - $start_y - $this->bMargin; } elseif ($page == $end_page) { // last page $height = $end_y - $this->tMargin; } else { $height = $this->h - $this->tMargin - $this->bMargin; } } } // restore previous object $pdf = $pdf->rollbackTransaction();
Parameters:
$w(float) Width of cells. If 0, they extend up to the right margin of the page.
$txt(string) String for calculating his height
$reseth(boolean) if true reset the last cell height (default false).
$autopadding(boolean) if true, uses internal padding and automatically adjust it to account for line width (default true).
$cellpadding(float) Internal cell padding, if empty uses default cell padding.
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
Returns:
float Return the minimal height needed for multicell method for printing the $txt param.
Author:
Nicola Asuni, Alexander Escalona Fernández

Definition at line 6798 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

GetStringWidth ( s,
fontname = '',
fontstyle = '',
fontsize = 0,
getarray = false 
)

Returns the length of a string in user unit. A font must be selected.

Parameters:
$s(string) The string whose length is to be computed
$fontname(string) Family font. It can be either a name defined by AddFont() or one of the standard families. It is also possible to pass an empty string, in that case, the current family is retained.
$fontstyle(string) Font style. Possible values are (case insensitive):
  • empty string: regular
  • B: bold
  • I: italic
  • U: underline
  • D: line-trough
  • O: overline
or any combination. The default value is regular.
$fontsize(float) Font size in points. The default value is the current size.
$getarray(boolean) if true returns an array of characters widths, if false returns the total length.
Returns:
mixed int total string length or array of characted widths
Author:
Nicola Asuni
Since:
1.2

Definition at line 4797 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getSVGTransformMatrix ( attribute) [protected]

Get the tranformation matrix from SVG transform attribute

Parameters:
$attribute(string) transformation
Returns:
array of transformations
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 27386 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getTagStyleFromCSSarray ( css) [protected]

Compact CSS data array into single string.

Parameters:
$css(array) array of CSS properties
Returns:
string containing merged CSS properties
Since:
5.9.070 (2011-04-19)

Definition at line 20220 of file tcpdf.php.

Here is the caller graph for this function:

Return the current TCPDF version.

Returns:
TCPDF version string
Since:
5.9.012 (2010-11-10)

Definition at line 2023 of file tcpdf.php.

getTransformationMatrixProduct ( ta,
tb 
) [protected]

Get the product of two SVG tranformation matrices

Parameters:
$ta(array) first SVG tranformation matrix
$tb(array) second SVG tranformation matrix
Returns:
transformation array
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 27482 of file tcpdf.php.

Here is the caller graph for this function:

getUserPermissionCode ( permissions,
mode = 0 
) [protected]

Return the premission code used on encryption (P value).

Parameters:
$permissions(Array) the set of permissions (specify the ones you want to block).
$mode(int) encryption strength: 0 = RC4 40 bit; 1 = RC4 128 bit; 2 = AES 128 bit; 3 = AES 256 bit.
Since:
5.0.005 (2010-05-12)
Author:
Nicola Asuni

Definition at line 14080 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getVectorsAngle ( x1,
y1,
x2,
y2 
) [protected]

Returns the angle in radiants between two vectors

Parameters:
$x1(int) X coordinate of first vector point
$y1(int) Y coordinate of first vector point
$x2(int) X coordinate of second vector point
$y2(int) Y coordinate of second vector point
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-04)

Definition at line 28171 of file tcpdf.php.

Here is the caller graph for this function:

GetX ( )

Returns the relative X value of current position. The value is relative to the left border for LTR languages and to the right border for RTL languages.

Returns:
float
Since:
1.2
See also:
SetX(), GetY(), SetY()

Definition at line 8322 of file tcpdf.php.

Here is the caller graph for this function:

GetY ( )

Returns the ordinate of the current position.

Returns:
float
Since:
1.0
See also:
SetY(), GetX(), SetX()

Definition at line 8349 of file tcpdf.php.

Here is the caller graph for this function:

Gradient ( type,
coords,
stops,
background = array(),
antialias = false 
)

Output gradient.

Parameters:
$type(int) type of gradient (1 Function-based shading; 2 Axial shading; 3 Radial shading; 4 Free-form Gouraud-shaded triangle mesh; 5 Lattice-form Gouraud-shaded triangle mesh; 6 Coons patch mesh; 7 Tensor-product patch mesh). (Not all types are currently supported)
$coords(array) array of coordinates.
$stops(array) array gradient color components: color = array of GRAY, RGB or CMYK color components; offset = (0 to 1) represents a location along the gradient vector; exponent = exponent of the exponential interpolation function (default = 1).
$background(array) An array of colour components appropriate to the colour space, specifying a single background colour value.
$antialias(boolean) A flag indicating whether to filter the shading function to prevent aliasing artifacts.
Author:
Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18458 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Header ( )

This method is used to render the page header. It is automatically called by AddPage() and could be overwritten in your own inherited class.

Definition at line 4158 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

hyphenateText ( text,
patterns,
dictionary = array(),
leftmin = 1,
rightmin = 2,
charmin = 1,
charmax = 8 
)

Returns text with soft hyphens.

Parameters:
$text(string) text to process
$patterns(mixed) Array of hypenation patterns or a TEX file containing hypenation patterns. TEX patterns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
$dictionary(array) Array of words to be returned without applying the hyphenation algoritm.
$leftmin(int) Minimum number of character to leave on the left of the word without applying the hyphens.
$rightmin(int) Minimum number of character to leave on the right of the word without applying the hyphens.
$charmin(int) Minimum word length to apply the hyphenation algoritm.
$charmax(int) Maximum length of broken piece of word.
Returns:
array text with soft hyphens
Author:
Nicola Asuni
Since:
4.9.012 (2010-04-12)

Definition at line 26376 of file tcpdf.php.

Here is the call graph for this function:

hyphenateWord ( word,
patterns,
dictionary = array(),
leftmin = 1,
rightmin = 2,
charmin = 1,
charmax = 8 
) [protected]

Returns an array of chars containing soft hyphens.

Parameters:
$word(array) array of chars
$patterns(array) Array of hypenation patterns.
$dictionary(array) Array of words to be returned without applying the hyphenation algoritm.
$leftmin(int) Minimum number of character to leave on the left of the word without applying the hyphens.
$rightmin(int) Minimum number of character to leave on the right of the word without applying the hyphens.
$charmin(int) Minimum word length to apply the hyphenation algoritm.
$charmax(int) Maximum length of broken piece of word.
Returns:
array text with soft hyphens
Author:
Nicola Asuni
Since:
4.9.012 (2010-04-12)

Definition at line 26267 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Image ( file,
x = '',
y = '',
w = 0,
h = 0,
type = '',
link = '',
align = '',
resize = false,
dpi = 300,
palign = '',
ismask = false,
imgmask = false,
border = 0,
fitbox = false,
hidden = false,
fitonpage = false,
alt = false,
altimgs = array() 
)

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 images whitout GD library and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM; The format can be specified explicitly or inferred from the file extension.
It is possible to put a link on the image.
Remark: if an image is used several times, only one copy will be embedded in the file.

Parameters:
$file(string) Name of the file containing the image or a '@' character followed by the image data string. To link an image without embedding it on the document, set an asterisk character before the URL (i.e.: '*http://www.example.com/image.jpg').
$x(float) Abscissa of the upper-left corner (LTR) or upper-right corner (RTL).
$y(float) Ordinate of the upper-left corner (LTR) or upper-right corner (RTL).
$w(float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
$h(float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
$type(string) Image format. Possible values are (case insensitive): JPEG and PNG (whitout GD library) and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM;. If not specified, the type is inferred from the file extension.
$link(mixed) URL or identifier returned by AddLink().
$align(string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
  • T: top-right for LTR or top-left for RTL
  • M: middle-right for LTR or middle-left for RTL
  • B: bottom-right for LTR or bottom-left for RTL
  • N: next line
$resize(mixed) If true resize (reduce) the image to fit $w and $h (requires GD or ImageMagick library); if false do not resize; if 2 force resize in all cases (upscaling and downscaling).
$dpi(int) dot-per-inch resolution used on resize
$palign(string) Allows to center or align the image on the current line. Possible values are:
  • L : left align
  • C : center
  • R : right align
  • '' : empty string : left for LTR or right for RTL
$ismask(boolean) true if this image is a mask, false otherwise
$imgmask(mixed) image object returned by this function or false
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$fitbox(mixed) If not false scale image dimensions proportionally to fit within the ($w, $h) box. $fitbox can be true or a 2 characters string indicating the image alignment inside the box. The first character indicate the horizontal alignment (L = left, C = center, R = right) the second character indicate the vertical algnment (T = top, M = middle, B = bottom).
$hidden(boolean) If true do not display the image.
$fitonpage(boolean) If true the image is resized to not exceed page dimensions.
$alt(boolean) If true the image will be added as alternative and not directly printed (the ID of the image will be returned).
$altimgs(array) Array of alternate images IDs. Each alternative image must be an array with two values: an integer representing the image ID (the value returned by the Image method) and a boolean value to indicate if the image is the default for printing.
Returns:
image information
Since:
1.1

Definition at line 7461 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

ImageEps ( file,
x = '',
y = '',
w = 0,
h = 0,
link = '',
useBoundingBox = true,
align = '',
palign = '',
border = 0,
fitonpage = false,
fixoutvals = false 
)

Embed vector-based Adobe Illustrator (AI) or AI-compatible EPS files. NOTE: EPS is not yet fully implemented, use the setRasterizeVectorImages() method to enable/disable rasterization of vector images using ImageMagick library. Only vector drawing is supported, not text or bitmap. Although the script was successfully tested with various AI format versions, best results are probably achieved with files that were exported in the AI3 format (tested with Illustrator CS2, Freehand MX and Photoshop CS2).

Parameters:
$file(string) Name of the file containing the image or a '@' character followed by the EPS/AI data string.
$x(float) Abscissa of the upper-left corner.
$y(float) Ordinate of the upper-left corner.
$w(float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
$h(float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
$link(mixed) URL or identifier returned by AddLink().
$useBoundingBox(boolean) specifies whether to position the bounding box (true) or the complete canvas (false) at location (x,y). Default value is true.
$align(string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
  • T: top-right for LTR or top-left for RTL
  • M: middle-right for LTR or middle-left for RTL
  • B: bottom-right for LTR or bottom-left for RTL
  • N: next line
$palign(string) Allows to center or align the image on the current line. Possible values are:
  • L : left align
  • C : center
  • R : right align
  • '' : empty string : left for LTR or right for RTL
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$fitonpage(boolean) if true the image is resized to not exceed page dimensions.
$fixoutvals(boolean) if true remove values outside the bounding box.
Author:
Valentin Schmidt, Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18817 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

ImagePngAlpha ( file,
x,
y,
wpx,
hpx,
w,
h,
type,
link,
align,
resize,
dpi,
palign,
filehash = '' 
) [protected]

Extract info from a PNG image with alpha channel using the GD library.

Parameters:
$file(string) Name of the file containing the image.
$x(float) Abscissa of the upper-left corner.
$y(float) Ordinate of the upper-left corner.
$wpx(float) Original width of the image in pixels.
$hpx(float) original height of the image in pixels.
$w(float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
$h(float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
$type(string) Image format. Possible values are (case insensitive): JPEG and PNG (whitout GD library) and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM;. If not specified, the type is inferred from the file extension.
$link(mixed) URL or identifier returned by AddLink().
$align(string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
  • T: top-right for LTR or top-left for RTL
  • M: middle-right for LTR or middle-left for RTL
  • B: bottom-right for LTR or bottom-left for RTL
  • N: next line
$resize(boolean) If true resize (reduce) the image to fit $w and $h (requires GD library).
$dpi(int) dot-per-inch resolution used on resize
$palign(string) Allows to center or align the image on the current line. Possible values are:
  • L : left align
  • C : center
  • R : right align
  • '' : empty string : left for LTR or right for RTL
$filehash(string) File hash used to build unique file names.
Author:
Nicola Asuni
Since:
4.3.007 (2008-12-04)
See also:
Image()

Definition at line 8208 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

ImageSVG ( file,
x = '',
y = '',
w = 0,
h = 0,
link = '',
align = '',
palign = '',
border = 0,
fitonpage = false 
)

Embedd a Scalable Vector Graphics (SVG) image. NOTE: SVG standard is not yet fully implemented, use the setRasterizeVectorImages() method to enable/disable rasterization of vector images using ImageMagick library.

Parameters:
$file(string) Name of the SVG file or a '@' character followed by the SVG data string.
$x(float) Abscissa of the upper-left corner.
$y(float) Ordinate of the upper-left corner.
$w(float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
$h(float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
$link(mixed) URL or identifier returned by AddLink().
$align(string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:
  • T: top-right for LTR or top-left for RTL
  • M: middle-right for LTR or middle-left for RTL
  • B: bottom-right for LTR or bottom-left for RTL
  • N: next line
If the alignment is an empty string, then the pointer will be restored on the starting SVG position.
$palign(string) Allows to center or align the image on the current line. Possible values are:
  • L : left align
  • C : center
  • R : right align
  • '' : empty string : left for LTR or right for RTL
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$fitonpage(boolean) if true the image is resized to not exceed page dimensions.
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 27084 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

IncludeJS ( script)

Adds a javascript

Parameters:
$script(string) Javascript code
Author:
Johannes Güntert, Nicola Asuni
Since:
2.1.002 (2008-02-12)

Definition at line 16334 of file tcpdf.php.

inPageBody ( ) [protected]

Check if we are on the page body (excluding page header and footer).

Returns:
true if we are not in page header nor in page footer, false otherwise.
Since:
5.9.091 (2011-06-15)

Definition at line 4375 of file tcpdf.php.

Here is the caller graph for this function:

intToRoman ( number)

Returns the Roman representation of an integer number

Parameters:
$number(int) number to convert
Returns:
string roman representation of the specified number
Since:
4.4.004 (2008-12-10)

Definition at line 24584 of file tcpdf.php.

Here is the caller graph for this function:

Return the current temporary RTL status

Returns:
boolean
Since:
4.8.014 (2009-11-04)

Definition at line 3148 of file tcpdf.php.

Here is the caller graph for this function:

Return true if the current font is unicode type.

Returns:
true for unicode font, false otherwise.
Author:
Nicola Asuni
Since:
5.8.002 (2010-08-14)

Definition at line 26591 of file tcpdf.php.

Here is the caller graph for this function:

isValidCSSSelectorForTag ( dom,
key,
selector 
) [protected]

Returns true if the CSS selector is valid for the selected HTML tag

Parameters:
$dom(array) array of HTML tags and properties
$key(int) key of the current HTML tag
$selector(string) CSS selector string
Returns:
true if the selector is valid, false otherwise
Since:
5.1.000 (2010-05-25)

Definition at line 20015 of file tcpdf.php.

Here is the caller graph for this function:

lastPage ( resetmargins = false)

Reset pointer to the last document page.

Parameters:
$resetmargins(boolean) if true reset left, right, top margins and Y position.
Since:
2.0.000 (2008-01-04)
See also:
setPage(), getPage(), getNumPages()

Definition at line 3825 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Line ( x1,
y1,
x2,
y2,
style = array() 
)

Draws a line between two points.

Parameters:
$x1(float) Abscissa of first point.
$y1(float) Ordinate of first point.
$x2(float) Abscissa of second point.
$y2(float) Ordinate of second point.
$style(array) Line style. Array like for SetLineStyle(). Default value: default line style (empty array).
Since:
1.0
See also:
SetLineWidth(), SetDrawColor(), SetLineStyle()

Definition at line 14798 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

LinearGradient ( x,
y,
w,
h,
col1 = array(),
col2 = array(),
coords = array(0,0,1,0) 
)

Paints a linear colour gradient.

Parameters:
$x(float) abscissa of the top left corner of the rectangle.
$y(float) ordinate of the top left corner of the rectangle.
$w(float) width of the rectangle.
$h(float) height of the rectangle.
$col1(array) first color (Grayscale, RGB or CMYK components).
$col2(array) second color (Grayscale, RGB or CMYK components).
$coords(array) array of the form (x1, y1, x2, y2) which defines the gradient vector (see linear_gradient_coords.jpg). The default value is from left to right (x1=0, y1=0, x2=1, y2=0).
Author:
Andreas Würmser, Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18301 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Link ( x,
y,
w,
h,
link,
spaces = 0 
)

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.

Parameters:
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$w(float) Width of the rectangle
$h(float) Height of the rectangle
$link(mixed) URL or identifier returned by AddLink()
$spaces(int) number of spaces on the text to link
Since:
1.5
See also:
AddLink(), Annotation(), Cell(), Write(), Image()

Definition at line 5355 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

ListBox ( name,
w,
h,
values,
prop = array(),
opt = array(),
x = '',
y = '',
js = false 
)

Creates a List-box field

Parameters:
$name(string) field name
$w(int) width
$h(int) height
$values(array) array containing the list of values.
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
$opt(array) annotation parameters. Possible values are described on official PDF32000_2008 reference.
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$js(boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-07)

Definition at line 17069 of file tcpdf.php.

Here is the call graph for this function:

Ln ( h = '',
cell = false 
)

Performs a line break. The current abscissa goes back to the left margin and the ordinate increases by the amount passed in parameter.

Parameters:
$h(float) The height of the break. By default, the value equals the height of the last printed cell.
$cell(boolean) if true add the current left (or right o for RTL) padding to the X coordinate
Since:
1.0
See also:
Cell()

Definition at line 8287 of file tcpdf.php.

Here is the caller graph for this function:

MirrorH ( x = '')

Horizontal Mirroring.

Parameters:
$x(int) abscissa of the point. Default is current x position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14398 of file tcpdf.php.

Here is the call graph for this function:

MirrorL ( angle = 0,
x = '',
y = '' 
)

Reflection against a straight line through point (x, y) with the gradient angle (angle).

Parameters:
$angle(float) gradient angle of the straight line. Default is 0 (horizontal line).
$x(int) abscissa of the point. Default is current x position
$y(int) ordinate of the point. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14434 of file tcpdf.php.

Here is the call graph for this function:

MirrorP ( x = '',
y = '' 
)

Point reflection mirroring.

Parameters:
$x(int) abscissa of the point. Default is current x position
$y(int) ordinate of the point. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14421 of file tcpdf.php.

Here is the call graph for this function:

MirrorV ( y = '')

Verical Mirroring.

Parameters:
$y(int) ordinate of the point. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14409 of file tcpdf.php.

Here is the call graph for this function:

movePage ( frompage,
topage 
)

Move a page to a previous position.

Parameters:
$frompage(int) number of the source page
$topage(int) number of the destination page (must be less than $frompage)
Returns:
true in case of success, false in case of error.
Since:
4.5.000 (2009-01-02)

Definition at line 25238 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

MultiCell ( w,
h,
txt,
border = 0,
align = 'J',
fill = false,
ln = 1,
x = '',
y = '',
reseth = true,
stretch = 0,
ishtml = false,
autopadding = true,
maxh = 0,
valign = 'T',
fitcell = false 
)

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
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.

Parameters:
$w(float) Width of cells. If 0, they extend up to the right margin of the page.
$h(float) Cell minimum height. The cell extends automatically if needed.
$txt(string) String to print
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$align(string) Allows to center or align the text. Possible values are:
  • L or empty string: left align
  • C: center
  • R: right align
  • J: justification (default value when $ishtml=false)
$fill(boolean) Indicates if the cell background must be painted (true) or transparent (false).
$ln(int) Indicates where the current position should go after the call. Possible values are:
  • 0: to the right
  • 1: to the beginning of the next line [DEFAULT]
  • 2: below
$x(float) x position in user units
$y(float) y position in user units
$reseth(boolean) if true reset the last cell height (default true).
$stretch(int) font stretch mode:
  • 0 = disabled
  • 1 = horizontal scaling only if text is larger than cell width
  • 2 = forced horizontal scaling to fit cell width
  • 3 = character spacing only if text is larger than cell width
  • 4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
$ishtml(boolean) INTERNAL USE ONLY -- set to true if $txt is HTML content (default = false). Never set this parameter to true, use instead writeHTMLCell() or writeHTML() methods.
$autopadding(boolean) if true, uses internal padding and automatically adjust it to account for line width.
$maxh(float) maximum height. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this feature. This feature works only when $ishtml=false.
$valign(string) Vertical alignment of text (requires $maxh = $h > 0). Possible values are:
  • T: TOP
  • M: middle
  • B: bottom
. This feature works only when $ishtml=false and the cell must fit in a single page.
$fitcell(boolean) if true attempt to fit all the text within the cell by reducing the font size (do not work in HTML mode).
Returns:
int Return the number of cells or 1 for html mode.
Since:
1.3
See also:
SetFont(), SetDrawColor(), SetFillColor(), SetTextColor(), SetLineWidth(), Cell(), Write(), SetAutoPageBreak()

Definition at line 6280 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

objclone ( object)

Creates a copy of a class object

Parameters:
$object(object) class object to be cloned
Returns:
cloned object
Since:
4.5.029 (2009-03-19)

Definition at line 25992 of file tcpdf.php.

Here is the caller graph for this function:

Open ( )

This method begins the generation of the PDF document. It is not necessary to call it explicitly because AddPage() does it automatically. Note: no page is created by this method

Since:
1.0
See also:
AddPage(), Close()

Definition at line 3725 of file tcpdf.php.

Here is the caller graph for this function:

openHTMLTagHandler ( dom,
key,
cell 
) [protected]

Process opening tags.

Parameters:
$dom(array) html dom array
$key(int) current element id
$cell(boolean) if true add the default left (or right if RTL) padding to each new line (default false).
Returns:
$dom array

Definition at line 22940 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Output ( name = 'doc.pdf',
dest = 'I' 
)

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.

Parameters:
$name(string) The name of the file when saved. Note that special characters are removed and blanks characters are replaced with the underscore character.
$dest(string) Destination where to send the document. It can take one of the following values:
  • I: send the file inline to the browser (default). The plug-in is used if available. The name given by name is used when one selects the "Save as" option on the link generating the PDF.
  • D: send to the browser and force a file download with the name given by name.
  • F: save to a local server file with the name given by name.
  • S: return the document as a string (name is ignored).
  • FI: equivalent to F + I option
  • FD: equivalent to F + D option
  • E: return the document as base64 mime multi-part email attachment (RFC 2045)
Since:
1.0
See also:
Close()

Reimplemented in pdf.

Definition at line 8456 of file tcpdf.php.

Here is the call graph for this function:

PageNo ( )

Returns the current page number.

Returns:
int page number
Since:
1.0
See also:
getAliasNbPages()

Definition at line 4443 of file tcpdf.php.

Here is the caller graph for this function:

Returns the current page number formatted as a string.

Since:
4.2.005 (2008-11-06)
See also:
PaneNo(), formatPageNumber()

Definition at line 17842 of file tcpdf.php.

Here is the call graph for this function:

PieSector ( xc,
yc,
r,
a,
b,
style = 'FD',
cw = true,
o = 90 
)

Draw the sector of a circle. It can be used for instance to render pie charts.

Parameters:
$xc(float) abscissa of the center.
$yc(float) ordinate of the center.
$r(float) radius.
$a(float) start angle (in degrees).
$b(float) end angle (in degrees).
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$cw,:(float) indicates whether to go clockwise (default: true).
$o,:(float) origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock). Default: 90.
Author:
Maxime Delorme, Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18755 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

PieSectorXY ( xc,
yc,
rx,
ry,
a,
b,
style = 'FD',
cw = false,
o = 0,
nc = 2 
)

Draw the sector of an ellipse. It can be used for instance to render pie charts.

Parameters:
$xc(float) abscissa of the center.
$yc(float) ordinate of the center.
$rx(float) the x-axis radius.
$ry(float) the y-axis radius.
$a(float) start angle (in degrees).
$b(float) end angle (in degrees).
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$cw,:(float) indicates whether to go clockwise.
$o,:(float) origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock).
$nc(integer) Number of curves used to draw a 90 degrees portion of arc.
Author:
Maxime Delorme, Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18776 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

pixelsToUnits ( px)

Converts pixels to User's Units.

Parameters:
$px(int) pixels
Returns:
float value in user's unit
See also:
setImageScale(), getImageScale()

Definition at line 13533 of file tcpdf.php.

Here is the caller graph for this function:

Polycurve ( x0,
y0,
segments,
style = '',
line_style = array(),
fill_color = array() 
)

Draws a poly-Bezier curve. Each Bezier curve segment is a tangent to the line between the control points at either end of the curve.

Parameters:
$x0(float) Abscissa of start point.
$y0(float) Ordinate of start point.
$segments(float) An array of bezier descriptions. Format: array(x1, y1, x2, y2, x3, y3).
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of curve. Array like for SetLineStyle(). Default value: default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
See also:
SetLineStyle()
Since:
3.0008 (2008-05-12)

Definition at line 14908 of file tcpdf.php.

Here is the call graph for this function:

Polygon ( p,
style = '',
line_style = array(),
fill_color = array(),
closed = true 
)

Draws a polygon.

Parameters:
$p(array) Points 0 to ($np - 1). Array with values (x0, y0, x1, y1,..., x(np-1), y(np - 1))
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of polygon. Array with keys among the following: If a key is not present or is null, not draws the line. Default value is default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
$closed(boolean) if true the polygon is closes, otherwise will remain open
Since:
2.1.000 (2008-01-08)

Definition at line 15148 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

PolyLine ( p,
style = '',
line_style = array(),
fill_color = array() 
)

Draws a polygonal line

Parameters:
$p(array) Points 0 to ($np - 1). Array with values (x0, y0, x1, y1,..., x(np-1), y(np - 1))
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of polygon. Array with keys among the following: If a key is not present or is null, not draws the line. Default value is default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
Since:
4.8.003 (2009-09-15)

Definition at line 15129 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

printTemplate ( id,
x = '',
y = '',
w = 0,
h = 0,
align = '',
palign = '',
fitonpage = false 
)

Print an XObject Template. You can print an XObject Template inside the currently opened Template. An XObject Template is a PDF block that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images). An XObject Template may be painted multiple times, either on several pages or at several locations on the same page and produces the same results each time, subject only to the graphics state at the time it is invoked.

Parameters:
$id(string) The ID of XObject Template to print.
$x(int) X position in user units (empty string = current x position)
$y(int) Y position in user units (empty string = current y position)
$w(int) Width in user units (zero = remaining page width)
$h(int) Height in user units (zero = remaining page height)
$align(string) Indicates the alignment of the pointer next to template insertion relative to template height. The value can be:
  • T: top-right for LTR or top-left for RTL
  • M: middle-right for LTR or middle-left for RTL
  • B: bottom-right for LTR or bottom-left for RTL
  • N: next line
$palign(string) Allows to center or align the template on the current line. Possible values are:
  • L : left align
  • C : center
  • R : right align
  • '' : empty string : left for LTR or right for RTL
$fitonpage(boolean) If true the template is resized to not exceed page dimensions.
Author:
Nicola Asuni
Since:
5.8.017 (2010-08-24)
See also:
startTemplate(), endTemplate()

Definition at line 26740 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

putHtmlListBullet ( listdepth,
listtype = '',
size = 10 
) [protected]

Output an HTML list bullet or ordered item symbol

Parameters:
$listdepth(int) list nesting level
$listtype(string) type of list
$size(float) current font size
Since:
4.4.004 (2008-12-10)

Definition at line 24649 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

RadialGradient ( x,
y,
w,
h,
col1 = array(),
col2 = array(),
coords = array(0.5,0.5,0.5,0.5,1) 
)

Paints a radial colour gradient.

Parameters:
$x(float) abscissa of the top left corner of the rectangle.
$y(float) ordinate of the top left corner of the rectangle.
$w(float) width of the rectangle.
$h(float) height of the rectangle.
$col1(array) first color (Grayscale, RGB or CMYK components).
$col2(array) second color (Grayscale, RGB or CMYK components).
$coords(array) array of the form (fx, fy, cx, cy, r) where (fx, fy) is the starting point of the gradient with color1, (cx, cy) is the center of the circle with color2, and r is the radius of the circle (see radial_gradient_coords.jpg). (fx, fy) should be inside the circle, otherwise some areas will not be defined.
Author:
Andreas Würmser, Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18319 of file tcpdf.php.

Here is the call graph for this function:

RadioButton ( name,
w,
prop = array(),
opt = array(),
onvalue = 'On',
checked = false,
x = '',
y = '',
js = false 
)

Creates a RadioButton field.

Parameters:
$name(string) Field name.
$w(int) Width or the radio button.
$prop(array) Javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
$opt(array) Annotation parameters. Possible values are described on official PDF32000_2008 reference.
$onvalue(string) Value to be returned if selected.
$checked(boolean) Define the initial state.
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$js(boolean) If true put the field using JavaScript (requires Acrobat Writer to be rendered).
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-07)

Definition at line 16971 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

readDiskCache ( filename) [protected]

Read data from a temporary file on filesystem.

Parameters:
$filename(string) file name
Returns:
mixed retrieved data
Since:
4.5.000 (2008-12-31)

Definition at line 25011 of file tcpdf.php.

Here is the caller graph for this function:

Rect ( x,
y,
w,
h,
style = '',
border_style = array(),
fill_color = array() 
)

Draws a rectangle.

Parameters:
$x(float) Abscissa of upper-left corner.
$y(float) Ordinate of upper-left corner.
$w(float) Width.
$h(float) Height.
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$border_style(array) Border style of rectangle. Array with keys among the following:
  • all: Line style of all borders. Array like for SetLineStyle().
  • L, T, R, B or combinations: Line style of left, top, right or bottom border. Array like for SetLineStyle().
If a key is not present or is null, not draws the border. Default value: default line style (empty array).
$border_style(array) Border style of rectangle. Array like for SetLineStyle(). Default value: default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
Since:
1.0
See also:
SetLineStyle()

Definition at line 14826 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

registrationMark ( x,
y,
r,
double = false,
cola = array(0,0,0),
colb = array(255,255,255) 
)

Paints a registration mark

Parameters:
$x(float) abscissa of the registration mark center.
$y(float) ordinate of the registration mark center.
$r(float) radius of the crop mark.
$double(boolean) if true print two concentric crop marks.
$cola(array) crop mark color (default black).
$colb(array) second crop mark color.
Author:
Nicola Asuni
Since:
4.9.000 (2010-03-26)

Definition at line 18270 of file tcpdf.php.

Here is the call graph for this function:

RegularPolygon ( x0,
y0,
r,
ns,
angle = 0,
draw_circle = false,
style = '',
line_style = array(),
fill_color = array(),
circle_style = '',
circle_outLine_style = array(),
circle_fill_color = array() 
)

Draws a regular polygon.

Parameters:
$x0(float) Abscissa of center point.
$y0(float) Ordinate of center point.
$r,:(float) Radius of inscribed circle.
$ns(integer) Number of sides.
$angle(float) Angle oriented (anti-clockwise). Default value: 0.
$draw_circle(boolean) Draw inscribed circle or not. Default value: false.
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of polygon sides. Array with keys among the following: If a key is not present or is null, not draws the side. Default value is default line style (empty array).
$fill_color(array) Fill color. Format: array(red, green, blue). Default value: default color (empty array).
$circle_style(string) Style of rendering of inscribed circle (if draws). Possible values are:
  • D or empty string: Draw (default).
  • F: Fill.
  • DF or FD: Draw and fill.
  • CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).
  • CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).
$circle_outLine_style(array) Line style of inscribed circle (if draws). Array like for SetLineStyle(). Default value: default line style (empty array).
$circle_fill_color(array) Fill color of inscribed circle (if draws). Format: array(red, green, blue). Default value: default color (empty array).
Since:
2.1.000 (2008-01-08)

Definition at line 15246 of file tcpdf.php.

Here is the call graph for this function:

removePageRegion ( key)

Remove a single no-write region.

Parameters:
$key(int) region key
Author:
Nicola Asuni
Since:
5.9.003 (2010-10-13)
See also:
setPageRegions(), getPageRegions()

Definition at line 26963 of file tcpdf.php.

removeSHY ( txt = '')

Removes SHY characters from text. Unicode Data:

  • Name : SOFT HYPHEN, commonly abbreviated as SHY
  • HTML Entity (decimal): "&amp;#173;"
  • HTML Entity (hex): "&amp;#xad;"
  • HTML Entity (named): "&amp;shy;"
  • How to type in Microsoft Windows: [Alt +00AD] or [Alt 0173]
  • UTF-8 (hex): 0xC2 0xAD (c2ad)
  • UTF-8 character: chr(194).chr(173)
Parameters:
$txt(string) input string
Returns:
string without SHY characters.
Since:
(4.5.019) 2009-02-28

Definition at line 5605 of file tcpdf.php.

Here is the caller graph for this function:

replaceBuffer ( data) [protected]

Replace the buffer content

Parameters:
$data(string) data
Since:
5.5.000 (2010-06-22)

Definition at line 25039 of file tcpdf.php.

Here is the call graph for this function:

replacePageNumAliases ( page,
replace,
diff = 0 
) [protected]

Replace page number aliases with number.

Parameters:
$page(string) Page content.
$replace(array) Array of replacements (array keys are replacement strings, values are alias arrays).
$diff(int) If passed, this will be set to the total char number difference between alias and replacements.
Returns:
replaced page content and updated $diff parameter as array.

Definition at line 8759 of file tcpdf.php.

Here is the caller graph for this function:

replaceRightShiftPageNumAliases ( page,
aliases,
diff 
) [protected]

Replace right shift page number aliases with spaces to correct right alignment. This works perfectly only when using monospaced fonts.

Parameters:
$page(string) Page content.
$aliases(array) Array of page aliases.
$diff(int) initial difference to add.
Returns:
replaced page content.

Definition at line 8780 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Remove columns and reset page margins.

Since:
5.9.072 (2011-04-26)

Definition at line 26065 of file tcpdf.php.

Here is the call graph for this function:

Reset the xobject template used by Header() method.

Definition at line 4140 of file tcpdf.php.

Reset the last cell height.

Since:
5.9.000 (2010-10-03)

Definition at line 3168 of file tcpdf.php.

Here is the caller graph for this function:

revstrpos ( haystack,
needle,
offset = 0 
)

Find position of last occurrence of a substring in a string

Parameters:
$haystack(string) The string to search in.
$needle(string) substring to search.
$offset(int) May be specified to begin searching an arbitrary number of characters into the string.
Returns:
Returns the position where the needle exists. Returns FALSE if the needle was not found.
Since:
4.8.038 (2010-03-13)

Definition at line 26016 of file tcpdf.php.

Here is the caller graph for this function:

rfread ( handle,
length 
) [protected]

Binary-safe and URL-safe file read. Reads up to length bytes from the file pointer referenced by handle. Reading stops as soon as one of the following conditions is met: length bytes have been read; EOF (end of file) is reached.

Parameters:
$handle(resource)
$length(int)
Returns:
Returns the read string or FALSE in case of error.
Author:
Nicola Asuni
Since:
4.5.027 (2009-03-16)

Definition at line 8175 of file tcpdf.php.

Here is the caller graph for this function:

rollbackTransaction ( self = false)

This method allows to undo the latest transaction by returning the latest saved TCPDF object with startTransaction().

Parameters:
$self(boolean) if true restores current class object to previous state without the need of reassignment via the returned value.
Returns:
TCPDF object.
Since:
4.5.029 (2009-03-19)

Definition at line 25963 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Rotate ( angle,
x = '',
y = '' 
)

Rotate object.

Parameters:
$angle(float) angle in degrees for counter-clockwise rotation
$x(int) abscissa of the rotation center. Default is current x position
$y(int) ordinate of the rotation center. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14491 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

RoundedRect ( x,
y,
w,
h,
r,
round_corner = '1111',
style = '',
border_style = array(),
fill_color = array() 
)

Draws a rounded rectangle.

Parameters:
$x(float) Abscissa of upper-left corner.
$y(float) Ordinate of upper-left corner.
$w(float) Width.
$h(float) Height.
$r(float) the radius of the circle used to round off the corners of the rectangle.
$round_corner(string) Draws rounded corner or not. String with a 0 (not rounded i-corner) or 1 (rounded i-corner) in i-position. Positions are, in order and begin to 0: top left, top right, bottom right and bottom left. Default value: all rounded corner ("1111").
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$border_style(array) Border style of rectangle. Array like for SetLineStyle(). Default value: default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
Since:
2.1.000 (2008-01-08)

Definition at line 15336 of file tcpdf.php.

Here is the call graph for this function:

RoundedRectXY ( x,
y,
w,
h,
rx,
ry,
round_corner = '1111',
style = '',
border_style = array(),
fill_color = array() 
)

Draws a rounded rectangle.

Parameters:
$x(float) Abscissa of upper-left corner.
$y(float) Ordinate of upper-left corner.
$w(float) Width.
$h(float) Height.
$rx(float) the x-axis radius of the ellipse used to round off the corners of the rectangle.
$ry(float) the y-axis radius of the ellipse used to round off the corners of the rectangle.
$round_corner(string) Draws rounded corner or not. String with a 0 (not rounded i-corner) or 1 (rounded i-corner) in i-position. Positions are, in order and begin to 0: top left, top right, bottom right and bottom left. Default value: all rounded corner ("1111").
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$border_style(array) Border style of rectangle. Array like for SetLineStyle(). Default value: default line style (empty array).
$fill_color(array) Fill color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K). Default value: default color (empty array).
Since:
4.9.019 (2010-04-22)

Definition at line 15355 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Scale ( s_x,
s_y,
x = '',
y = '' 
)

Vertical and horizontal non-proportional Scaling.

Parameters:
$s_x(float) scaling factor for width as percent. 0 is not allowed.
$s_y(float) scaling factor for height as percent. 0 is not allowed.
$x(int) abscissa of the scaling center. Default is current x position
$y(int) ordinate of the scaling center. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14365 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

ScaleX ( s_x,
x = '',
y = '' 
)

Horizontal Scaling.

Parameters:
$s_x(float) scaling factor for width as percent. 0 is not allowed.
$x(int) abscissa of the scaling center. Default is current x position
$y(int) ordinate of the scaling center. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14325 of file tcpdf.php.

Here is the call graph for this function:

ScaleXY ( s,
x = '',
y = '' 
)

Vertical and horizontal proportional Scaling.

Parameters:
$s(float) scaling factor for width and height as percent. 0 is not allowed.
$x(int) abscissa of the scaling center. Default is current x position
$y(int) ordinate of the scaling center. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14351 of file tcpdf.php.

Here is the call graph for this function:

ScaleY ( s_y,
x = '',
y = '' 
)

Vertical Scaling.

Parameters:
$s_y(float) scaling factor for height as percent. 0 is not allowed.
$x(int) abscissa of the scaling center. Default is current x position
$y(int) ordinate of the scaling center. Default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14338 of file tcpdf.php.

Here is the call graph for this function:

segSVGContentHandler ( parser,
data 
) [protected]

Sets the character data handler function for the XML parser.

Parameters:
$parser(resource) The first parameter, parser, is a reference to the XML parser calling the handler.
$data(string) The second parameter, data, contains the character data as a string.
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 28734 of file tcpdf.php.

selectColumn ( col = '')

Set position at a given column

Parameters:
$col(int) column number (from 0 to getNumberOfColumns()-1); empty string = current column.
Since:
4.9.001 (2010-03-28)

Definition at line 26092 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

sendOutputData ( data,
length 
) [protected]

Ouput input data and compress it if possible.

Parameters:
$data(string) Data to output.
$length(int) Data length in bytes.
Since:
5.9.086

Definition at line 8438 of file tcpdf.php.

Here is the caller graph for this function:

serializeTCPDFtagParameters ( pararray)

Serialize an array of parameters to be used with TCPDF tag in HTML code.

Parameters:
$pararray(array) parameters array
Returns:
sting containing serialized data
Since:
4.9.006 (2010-04-02)

Definition at line 26192 of file tcpdf.php.

set_mqr ( mqr)

Sets the current active configuration setting of magic_quotes_runtime (if the set_magic_quotes_runtime function exist)

Parameters:
$mqr(boolean) FALSE for off, TRUE for on.
Since:
4.6.025 (2009-08-17)

Definition at line 7882 of file tcpdf.php.

Here is the caller graph for this function:

setAlpha ( alpha,
bm = 'Normal' 
)

Set alpha for stroking (CA) and non-stroking (ca) operations.

Parameters:
$alpha(float) real value from 0 (transparent) to 1 (opaque)
$bm(string) blend mode, one of the following: Normal, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion, Hue, Saturation, Color, Luminosity
Since:
3.0.000 (2008-03-27)

Definition at line 18010 of file tcpdf.php.

Here is the call graph for this function:

SetAuthor ( author)

Defines the author of the document.

Parameters:
$author(string) The name of the author.
Since:
1.2
See also:
SetCreator(), SetKeywords(), SetSubject(), SetTitle()

Definition at line 3677 of file tcpdf.php.

SetAutoPageBreak ( auto,
margin = 0 
)

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.

Parameters:
$auto(boolean) Boolean indicating if mode should be on or off.
$margin(float) Distance from the bottom of the page.
Since:
1.0
See also:
Cell(), MultiCell(), AcceptPageBreak()

Definition at line 3518 of file tcpdf.php.

Here is the caller graph for this function:

setBarcode ( bc = '')

Set document barcode.

Parameters:
$bc(string) barcode

Definition at line 19133 of file tcpdf.php.

SetBooklet ( booklet = true,
inner = -1,
outer = -1 
)

Set the booklet mode for double-sided pages.

Parameters:
$booklet(boolean) true set the booklet mode on, false otherwise.
$inner(float) Inner page margin.
$outer(float) Outer page margin.
Since:
4.2.000 (2008-10-29)

Definition at line 24419 of file tcpdf.php.

setBookmark ( txt,
level = 0,
y = -1,
page = '',
style = '',
color = array(0,0,0) 
)

Adds a bookmark - alias for Bookmark().

Parameters:
$txt(string) Bookmark description.
$level(int) Bookmark level (minimum value is 0).
$y(float) Y position in user units of the bookmark on the selected page (default = -1 = current position; 0 = page start;).
$page(int) Target page number (leave empty for current page).
$style(string) Font style: B = Bold, I = Italic, BI = Bold + Italic.
$color(array) RGB color array (values from 0 to 255).

Definition at line 16171 of file tcpdf.php.

Here is the call graph for this function:

setBuffer ( data) [protected]

Set buffer content (always append data).

Parameters:
$data(string) data
Since:
4.5.000 (2009-01-02)

Definition at line 25021 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Set the height of the cell (line height) respect the font height.

Parameters:
$h(int) cell proportion respect font height (typical value = 1.25).
Since:
3.0.014 (2008-06-04)

Definition at line 18048 of file tcpdf.php.

setCellMargins ( left = '',
top = '',
right = '',
bottom = '' 
)

Set the internal Cell margins.

Parameters:
$left(float) left margin
$top(float) top margin
$right(float) right margin
$bottom(float) bottom margin
Since:
5.9.000 (2010-10-03)
See also:
getCellMargins()

Definition at line 3410 of file tcpdf.php.

Here is the caller graph for this function:

SetCellPadding ( pad)

Set the same internal Cell padding for top, right, bottom, left-

Parameters:
$pad(float) internal padding.
Since:
2.1.000 (2008-01-09)
See also:
getCellPaddings(), setCellPaddings()

Definition at line 3355 of file tcpdf.php.

Here is the caller graph for this function:

setCellPaddings ( left = '',
top = '',
right = '',
bottom = '' 
)

Set the internal Cell paddings.

Parameters:
$left(float) left padding
$top(float) top padding
$right(float) right padding
$bottom(float) bottom padding
Since:
5.9.000 (2010-10-03)
See also:
getCellPaddings(), SetCellPadding()

Definition at line 3374 of file tcpdf.php.

Here is the caller graph for this function:

setColor ( type,
col1 = 0,
col2 = -1,
col3 = -1,
col4 = -1,
ret = false,
name = '' 
)

Defines the color used by the specified type ('draw', 'fill', 'text').

Parameters:
$type(string) Type of object affected by this color: ('draw', 'fill', 'text').
$col1(float) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
$col2(float) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
$col3(float) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
$col4(float) KEY (BLACK) color for CMYK (0-100).
$ret(boolean) If true do not send the command.
$name(string) spot color name (if any)
Returns:
(string) The PDF command or empty string.
Since:
5.9.125 (2011-10-03)

Definition at line 4657 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setColorArray ( type,
color,
ret = false 
)

Set the color array for the specified type ('draw', 'fill', 'text'). It can be expressed in RGB, CMYK or GRAY SCALE components. The method can be called before the first page is created and the value is retained from page to page.

Parameters:
$type(string) Type of object affected by this color: ('draw', 'fill', 'text').
$color(array) Array of colors (1, 3 or 4 values).
$ret(boolean) If true do not send the PDF command.
Returns:
(string) The PDF command or empty string.
Since:
3.1.000 (2008-06-11)

Definition at line 4582 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setColumnsArray ( columns)

Set columns array. Each column is represented by an array of arrays with the following keys: (w = width, s = space between columns, y = column top position).

Parameters:
$columns(array)
Since:
4.9.001 (2010-03-28)

Definition at line 26078 of file tcpdf.php.

Here is the call graph for this function:

SetCompression ( compress = true)

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. Note: the Zlib extension is required for this feature. If not present, compression will be turned off.

Parameters:
$compress(boolean) Boolean indicating if compression must be enabled.
Since:
1.4

Definition at line 3619 of file tcpdf.php.

Here is the caller graph for this function:

setContentMark ( page = 0) [protected]

Set start-writing mark on selected page. Borders and fills are always created after content and inserted on the position marked by this method.

Parameters:
$page(int) page number (default is the current page)
Since:
4.6.021 (2009-07-20)

Definition at line 4019 of file tcpdf.php.

Here is the caller graph for this function:

SetCreator ( creator)

Defines the creator of the document. This is typically the name of the application that generates the PDF.

Parameters:
$creator(string) The name of the creator.
Since:
1.2
See also:
SetAuthor(), SetKeywords(), SetSubject(), SetTitle()

Definition at line 3699 of file tcpdf.php.

Defines the default monospaced font.

Parameters:
$font(string) Font name.
Since:
4.5.025

Definition at line 5305 of file tcpdf.php.

setDefaultTableColumns ( cols = 4)

Set the default number of columns in a row for HTML tables.

Parameters:
$cols(int) number of columns
Since:
3.0.014 (2008-06-04)

Definition at line 18038 of file tcpdf.php.

setDestination ( name,
y = -1,
page = '' 
)

Add a Named Destination. NOTE: destination names are unique, so only last entry will be saved.

Parameters:
$name(string) Destination name.
$y(float) Y position in user units of the destiantion on the selected page (default = -1 = current position; 0 = page start;).
$page(int) Target page number (leave empty for current page).
Returns:
(string) Stripped named destination identifier or false in case of error.
Author:
Christian Deligant, Nicola Asuni
Since:
5.9.097 (2011-06-23)

Definition at line 16111 of file tcpdf.php.

Here is the call graph for this function:

SetDisplayMode ( zoom,
layout = 'SinglePage',
mode = 'UseNone' 
)

Defines the way the document is to be displayed by the viewer.

Parameters:
$zoom(mixed) The zoom to use. It can be one of the following string values or a number indicating the zooming factor to use.
  • fullpage: displays the entire page on screen
  • fullwidth: uses maximum width of window
  • real: uses real size (equivalent to 100% zoom)
  • default: uses viewer default mode
$layout(string) The page layout. Possible values are:
  • SinglePage Display one page at a time
  • OneColumn Display the pages in one column
  • TwoColumnLeft Display the pages in two columns, with odd-numbered pages on the left
  • TwoColumnRight Display the pages in two columns, with odd-numbered pages on the right
  • TwoPageLeft (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the left
  • TwoPageRight (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the right
$mode(string) A name object specifying how the document should be displayed when opened:
  • UseNone Neither document outline nor thumbnail images visible
  • UseOutlines Document outline visible
  • UseThumbs Thumbnail images visible
  • FullScreen Full-screen mode, with no menu bar, window controls, or any other window visible
  • UseOC (PDF 1.5) Optional content group panel visible
  • UseAttachments (PDF 1.6) Attachments panel visible
Since:
1.2

Definition at line 3542 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetDocInfoUnicode ( unicode = true)

Turn on/off Unicode mode for document information dictionary (meta tags). This has effect only when unicode mode is set to false.

Parameters:
$unicode(boolean) if true set the meta information in Unicode
Since:
5.9.027 (2010-12-01)

Definition at line 3644 of file tcpdf.php.

SetDrawColor ( col1 = 0,
col2 = -1,
col3 = -1,
col4 = -1,
ret = false,
name = '' 
)

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.

Parameters:
$col1(float) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
$col2(float) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
$col3(float) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
$col4(float) KEY (BLACK) color for CMYK (0-100).
$ret(boolean) If true do not send the command.
$name(string) spot color name (if any)
Returns:
string the PDF command
Since:
1.3
See also:
SetDrawColorArray(), SetFillColor(), SetTextColor(), Line(), Rect(), Cell(), MultiCell()

Definition at line 4747 of file tcpdf.php.

Here is the call graph for this function:

SetDrawColorArray ( color,
ret = false 
)

Defines the color used for all drawing operations (lines, rectangles and cell borders). It can be expressed in RGB, CMYK or GRAY SCALE components. The method can be called before the first page is created and the value is retained from page to page.

Parameters:
$color(array) Array of colors (1, 3 or 4 values).
$ret(boolean) If true do not send the PDF command.
Returns:
string the PDF command
Since:
3.1.000 (2008-06-11)
See also:
SetDrawColor()

Definition at line 4613 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetDrawSpotColor ( name,
tint = 100 
)

Defines the spot color used for all drawing operations (lines, rectangles and cell borders).

Parameters:
$name(string) Name of the spot color.
$tint(float) Intensity of the color (from 0 to 100 ; 100 = full intensity by default).
Since:
4.0.024 (2008-09-12)
See also:
AddSpotColor(), SetFillSpotColor(), SetTextSpotColor()

Definition at line 4543 of file tcpdf.php.

Here is the call graph for this function:

setEqualColumns ( numcols = 0,
width = 0,
y = '' 
)

Set multiple columns of the same size

Parameters:
$numcols(int) number of columns (set to zero to disable columns mode)
$width(int) column width
$y(int) column starting Y position (leave empty for current Y position)
Since:
4.9.001 (2010-03-28)

Definition at line 26033 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setExtGState ( gs) [protected]

Add an extgstate

Parameters:
$gs(array) extgstate
Since:
3.0.000 (2008-03-27)

Definition at line 17970 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setExtraXMP ( xmp)

Set additional XMP data to be added on the default XMP data just before the end of "x:xmpmeta" tag. IMPORTANT: This data is added as-is without controls, so you have to validate your data before using this method!

Parameters:
$xmp(string) Custom XMP data.
Since:
5.9.128 (2011-10-06)

Definition at line 12222 of file tcpdf.php.

SetFillColor ( col1 = 0,
col2 = -1,
col3 = -1,
col4 = -1,
ret = false,
name = '' 
)

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.

Parameters:
$col1(float) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
$col2(float) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
$col3(float) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
$col4(float) KEY (BLACK) color for CMYK (0-100).
$ret(boolean) If true do not send the command.
$name(string) Spot color name (if any).
Returns:
(string) The PDF command.
Since:
1.3
See also:
SetFillColorArray(), SetDrawColor(), SetTextColor(), Rect(), Cell(), MultiCell()

Definition at line 4764 of file tcpdf.php.

Here is the call graph for this function:

SetFillColorArray ( color,
ret = false 
)

Defines the color used for all filling operations (filled rectangles and cell backgrounds). It can be expressed in RGB, CMYK or GRAY SCALE components. The method can be called before the first page is created and the value is retained from page to page.

Parameters:
$color(array) Array of colors (1, 3 or 4 values).
$ret(boolean) If true do not send the PDF command.
Since:
3.1.000 (2008-6-11)
See also:
SetFillColor()

Definition at line 4627 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetFillSpotColor ( name,
tint = 100 
)

Defines the spot color used for all filling operations (filled rectangles and cell backgrounds).

Parameters:
$name(string) Name of the spot color.
$tint(float) Intensity of the color (from 0 to 100 ; 100 = full intensity by default).
Since:
4.0.024 (2008-09-12)
See also:
AddSpotColor(), SetDrawSpotColor(), SetTextSpotColor()

Definition at line 4555 of file tcpdf.php.

Here is the call graph for this function:

SetFont ( family,
style = '',
size = 0,
fontfile = '',
subset = 'default',
out = true 
)

Sets the font used to print character strings. The font can be either a standard one or a font added via the AddFont() method. Standard fonts use Windows encoding cp1252 (Western Europe). The method can be called before the first page is created and the font is retained from page to page. If you just wish to change the current font size, it is simpler to call SetFontSize(). Note: for the standard fonts, the font metric files must be accessible. There are three possibilities for this:

  • They are in the current directory (the one where the running script lies)
  • They are in one of the directories defined by the include_path parameter
  • They are in the directory defined by the K_PATH_FONTS constant


Parameters:
$family(string) Family font. It can be either a name defined by AddFont() or one of the standard Type1 families (case insensitive):
  • times (Times-Roman)
  • timesb (Times-Bold)
  • timesi (Times-Italic)
  • timesbi (Times-BoldItalic)
  • helvetica (Helvetica)
  • helveticab (Helvetica-Bold)
  • helveticai (Helvetica-Oblique)
  • helveticabi (Helvetica-BoldOblique)
  • courier (Courier)
  • courierb (Courier-Bold)
  • courieri (Courier-Oblique)
  • courierbi (Courier-BoldOblique)
  • symbol (Symbol)
  • zapfdingbats (ZapfDingbats)
It is also possible to pass an empty string. In that case, the current family is retained.
$style(string) Font style. Possible values are (case insensitive):
  • empty string: regular
  • B: bold
  • I: italic
  • U: underline
  • D: line trough
  • O: overline
or any combination. The default value is regular. Bold and italic styles do not apply to Symbol and ZapfDingbats basic fonts or other fonts when not defined.
$size(float) Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12
$fontfile(string) The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
$subset(mixed) if true embedd only a subset of the font (stores only the information related to the used characters); if false embedd full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
$out(boolean) if true output the font size command, otherwise only set the font properties.
Author:
Nicola Asuni
Since:
1.0
See also:
AddFont(), SetFontSize()

Definition at line 5202 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setFontBuffer ( font,
data 
) [protected]

Set font buffer content.

Parameters:
$font(string) font key
$data(array) font data
Since:
4.5.000 (2009-01-02)

Definition at line 25175 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetFontSize ( size,
out = true 
)

Defines the size of the current font.

Parameters:
$size(float) The font size in points.
$out(boolean) if true output the font size command, otherwise only set the font properties.
Since:
1.0
See also:
SetFont()

Definition at line 5223 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setFontSpacing ( spacing = 0)

Set the amount to increase or decrease the space between characters in a text.

Parameters:
$spacing(float) amount to increase or decrease the space between characters in a text (0 = default spacing)
Author:
Nicola Asuni
Since:
5.9.000 (2010-09-29)

Definition at line 26886 of file tcpdf.php.

Here is the caller graph for this function:

setFontStretching ( perc = 100)

Set the percentage of character stretching.

Parameters:
$perc(int) percentage of stretching (100 = no stretching)
Author:
Nicola Asuni
Since:
5.9.000 (2010-09-29)

Definition at line 26864 of file tcpdf.php.

Here is the caller graph for this function:

setFontSubBuffer ( font,
key,
data 
) [protected]

Set font buffer content.

Parameters:
$font(string) font key
$key(string) font sub-key
$data(array) font data
Since:
4.5.000 (2009-01-02)

Definition at line 25201 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setFontSubsetting ( enable = true)

Enable or disable default option for font subsetting.

Parameters:
$enable(boolean) if true enable font subsetting by default.
Author:
Nicola Asuni
Since:
5.3.002 (2010-06-07)

Definition at line 26524 of file tcpdf.php.

setFooter ( ) [protected]

This method is used to render the page footer.

Since:
4.0.012 (2008-07-24)

Definition at line 4321 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setFooterFont ( font)

Set footer font.

Parameters:
$font(array) font
Since:
1.1

Definition at line 13331 of file tcpdf.php.

setFooterMargin ( fm = 10)

Set footer margin. (minimum distance between footer and bottom page margin)

Parameters:
$fm(int) distance in user units

Definition at line 4087 of file tcpdf.php.

setFormDefaultProp ( prop = array())

Set default properties for form fields.

Parameters:
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-06)

Definition at line 16842 of file tcpdf.php.

setGraphicVars ( gvars,
extended = false 
) [protected]

Set graphic variables.

Parameters:
$gvars(array) array of graphic variablesto restore
$extended(boolean) if true restore extended graphic variables
Since:
4.2.010 (2008-11-14)

Definition at line 24908 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setHeader ( ) [protected]

This method is used to render the page header.

Since:
4.0.012 (2008-07-24)

Definition at line 4281 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setHeaderData ( ln = '',
lw = 0,
ht = '',
hs = '' 
)

Set header data.

Parameters:
$ln(string) header image logo
$lw(string) header image logo width in mm
$ht(string) string to print as title on document header
$hs(string) string to print on document header

Definition at line 4038 of file tcpdf.php.

setHeaderFont ( font)

Set header font.

Parameters:
$font(array) font
Since:
1.1

Definition at line 13311 of file tcpdf.php.

setHeaderMargin ( hm = 10)

Set header margin. (minimum distance between header and top page margin)

Parameters:
$hm(int) distance in user units

Definition at line 4067 of file tcpdf.php.

Set a flag to automatically reset the xobject template used by Header() method at each page.

Parameters:
$val(boolean) set to true to reset Header xobject template at each page, false otherwise.

Definition at line 4149 of file tcpdf.php.

setHtmlLinksStyle ( color = array(0,0,255),
fontstyle = 'U' 
)

Set the color and font style for HTML links.

Parameters:
$color(array) RGB array of colors
$fontstyle(string) additional font styles to add
Since:
4.4.003 (2008-12-09)

Definition at line 24490 of file tcpdf.php.

setHtmlVSpace ( tagvs)

Set the vertical spaces for HTML tags. The array must have the following structure (example): $tagvs = array('h1' => array(0 => array('h' => '', 'n' => 2), 1 => array('h' => 1.3, 'n' => 1))); The first array level contains the tag names, the second level contains 0 for opening tags or 1 for closing tags, the third level contains the vertical space unit (h) and the number spaces to add (n). If the h parameter is not specified, default values are used.

Parameters:
$tagvs(array) array of tags and relative vertical spaces.
Since:
4.2.001 (2008-10-30)

Definition at line 24459 of file tcpdf.php.

Here is the caller graph for this function:

setImageBuffer ( image,
data 
) [protected]

Set image buffer content.

Parameters:
$image(string) image key
$data(array) image data
Since:
4.5.000 (2008-12-31)

Definition at line 25116 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setImageScale ( scale)

Set the adjusting factor to convert pixels to user units.

Parameters:
$scale(float) adjusting factor to convert pixels to user units.
Author:
Nicola Asuni
Since:
1.5.2

Definition at line 3189 of file tcpdf.php.

setImageSubBuffer ( image,
key,
data 
) [protected]

Set image buffer content for a specified sub-key.

Parameters:
$image(string) image key
$key(string) image sub-key
$data(array) image data
Since:
4.5.000 (2008-12-31)

Definition at line 25139 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setJPEGQuality ( quality)

Set the default JPEG compression quality (1-100)

Parameters:
$quality(int) JPEG quality, integer between 1 and 100
Since:
3.0.000 (2008-03-27)

Definition at line 18025 of file tcpdf.php.

SetKeywords ( keywords)

Associates keywords with the document, generally in the form 'keyword1 keyword2 ...'.

Parameters:
$keywords(string) The list of keywords.
Since:
1.2
See also:
SetAuthor(), SetCreator(), SetSubject(), SetTitle()

Definition at line 3688 of file tcpdf.php.

setLanguageArray ( language)

Set language array.

Parameters:
$language(array)
Since:
1.1

Definition at line 13351 of file tcpdf.php.

setLastH ( h)

Set the last cell height.

Parameters:
$h(float) cell height.
Author:
Nicola Asuni
Since:
1.53.0.TC034

Definition at line 3159 of file tcpdf.php.

SetLeftMargin ( margin)

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.

Parameters:
$margin(float) The margin.
Since:
1.4
See also:
SetTopMargin(), SetRightMargin(), SetAutoPageBreak(), SetMargins()

Definition at line 3311 of file tcpdf.php.

SetLineStyle ( style,
ret = false 
)

Set line style.

Parameters:
$style(array) Line style. Array with keys among the following:
  • width (float): Width of the line in user units.
  • cap (string): Type of cap to put on the line. Possible values are: butt, round, square. The difference between "square" and "butt" is that "square" projects a flat end past the end of the line.
  • join (string): Type of join. Possible values are: miter, round, bevel.
  • dash (mixed): Dash pattern. Is 0 (without dash) or string with series of length values, which are the lengths of the on and off dashes. For example: "2" represents 2 on, 2 off, 2 on, 2 off, ...; "2,1" is 2 on, 1 off, 2 on, 1 off, ...
  • phase (integer): Modifier on the dash pattern which is used to shift the point at which the pattern starts.
  • color (array): Draw color. Format: array(GREY) or array(R,G,B) or array(C,M,Y,K).
$ret(boolean) if true do not send the command.
Returns:
string the PDF command
Since:
2.1.000 (2008-01-08)

Definition at line 14651 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetLineWidth ( width)

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.

Parameters:
$width(float) The width.
Since:
1.0
See also:
Line(), Rect(), Cell(), MultiCell()

Definition at line 14608 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetLink ( link,
y = 0,
page = -1 
)

Defines the page and position a link points to.

Parameters:
$link(int) The link identifier returned by AddLink()
$y(float) Ordinate of target position; -1 indicates the current position. The default value is 0 (top of page)
$page(int) Number of target page; -1 indicates the current page. This is the default value
Since:
1.5
See also:
AddLink()

Definition at line 5332 of file tcpdf.php.

Here is the caller graph for this function:

setListIndentWidth ( width)

Set custom width for list indentation.

Parameters:
$width(float) width of the indentation. Use negative value to disable it.
Since:
4.2.007 (2008-11-12)

Definition at line 24469 of file tcpdf.php.

setLIsymbol ( symbol = '!')

Set the default bullet to be used as LI bullet symbol

Parameters:
$symbol(string) character or string to be used (legal values are: '' = automatic, '!' = auto bullet, '#' = auto numbering, 'disc', 'disc', 'circle', 'square', '1', 'decimal', 'decimal-leading-zero', 'i', 'lower-roman', 'I', 'upper-roman', 'a', 'lower-alpha', 'lower-latin', 'A', 'upper-alpha', 'upper-latin', 'lower-greek', 'img|type|width|height|image.ext')
Since:
4.0.028 (2008-09-26)

Definition at line 24375 of file tcpdf.php.

SetMargins ( left,
top,
right = -1,
keepmargins = false 
)

Defines the left, top and right margins.

Parameters:
$left(float) Left margin.
$top(float) Top margin.
$right(float) Right margin. Default value is the left one.
$keepmargins(boolean) if true overwrites the default page margins
Since:
1.0
See also:
SetLeftMargin(), SetTopMargin(), SetRightMargin(), SetAutoPageBreak()

Definition at line 3289 of file tcpdf.php.

Here is the caller graph for this function:

setOpenCell ( isopen)

Set the top/bottom cell sides to be open or closed when the cell cross the page.

Parameters:
$isopen(boolean) if true keeps the top/bottom border open for the cell sides that cross the page.
Since:
4.2.010 (2008-11-14)

Definition at line 24479 of file tcpdf.php.

setPage ( pnum,
resetmargins = false 
)

Move pointer at the specified document page and update page dimensions.

Parameters:
$pnum(int) page number (1 ... numpages)
$resetmargins(boolean) if true reset left, right, top margins and Y position.
Since:
2.1.000 (2008-01-07)
See also:
getPage(), lastpage(), getNumPages()

Definition at line 3778 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setPageBoxes ( page,
type,
llx,
lly,
urx,
ury,
points = false 
)

Set page boundaries.

Parameters:
$page(int) page number
$type(string) valid values are:
  • 'MediaBox' : the boundaries of the physical medium on which the page shall be displayed or printed;
  • 'CropBox' : the visible region of default user space;
  • 'BleedBox' : the region to which the contents of the page shall be clipped when output in a production environment;
  • 'TrimBox' : the intended dimensions of the finished page after trimming;
  • 'ArtBox' : the page's meaningful content (including potential white space).
$llx(float) lower-left x coordinate in user units
$lly(float) lower-left y coordinate in user units
$urx(float) upper-right x coordinate in user units
$ury(float) upper-right y coordinate in user units
$points(boolean) if true uses user units as unit of measure, otherwise uses PDF points
Since:
5.0.010 (2010-05-17)

Definition at line 2911 of file tcpdf.php.

Here is the caller graph for this function:

setPageBuffer ( page,
data,
append = false 
) [protected]

Set page buffer content.

Parameters:
$page(int) page number
$data(string) page data
$append(boolean) if true append data, false replace.
Since:
4.5.000 (2008-12-31)

Definition at line 25073 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setPageFormat ( format,
orientation = 'P' 
) [protected]

Change the format of the current page

Parameters:
$format(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() documentation or an array of two numners (width, height) or an array containing the following measures and options:
  • ['format'] = page format name (one of the above);
  • ['Rotate'] : The number of degrees by which the page shall be rotated clockwise when displayed or printed. The value shall be a multiple of 90.
  • ['PZ'] : The page's preferred zoom (magnification) factor.
  • ['MediaBox'] : the boundaries of the physical medium on which the page shall be displayed or printed:
  • ['MediaBox']['llx'] : lower-left x coordinate in points
  • ['MediaBox']['lly'] : lower-left y coordinate in points
  • ['MediaBox']['urx'] : upper-right x coordinate in points
  • ['MediaBox']['ury'] : upper-right y coordinate in points
  • ['CropBox'] : the visible region of default user space:
  • ['CropBox']['llx'] : lower-left x coordinate in points
  • ['CropBox']['lly'] : lower-left y coordinate in points
  • ['CropBox']['urx'] : upper-right x coordinate in points
  • ['CropBox']['ury'] : upper-right y coordinate in points
  • ['BleedBox'] : the region to which the contents of the page shall be clipped when output in a production environment:
  • ['BleedBox']['llx'] : lower-left x coordinate in points
  • ['BleedBox']['lly'] : lower-left y coordinate in points
  • ['BleedBox']['urx'] : upper-right x coordinate in points
  • ['BleedBox']['ury'] : upper-right y coordinate in points
  • ['TrimBox'] : the intended dimensions of the finished page after trimming:
  • ['TrimBox']['llx'] : lower-left x coordinate in points
  • ['TrimBox']['lly'] : lower-left y coordinate in points
  • ['TrimBox']['urx'] : upper-right x coordinate in points
  • ['TrimBox']['ury'] : upper-right y coordinate in points
  • ['ArtBox'] : the extent of the page's meaningful content:
  • ['ArtBox']['llx'] : lower-left x coordinate in points
  • ['ArtBox']['lly'] : lower-left y coordinate in points
  • ['ArtBox']['urx'] : upper-right x coordinate in points
  • ['ArtBox']['ury'] : upper-right y coordinate in points
  • ['BoxColorInfo'] :specify the colours and other visual characteristics that should be used in displaying guidelines on the screen for each of the possible page boundaries other than the MediaBox:
  • ['BoxColorInfo'][BOXTYPE]['C'] : an array of three numbers in the range 0-255, representing the components in the DeviceRGB colour space.
  • ['BoxColorInfo'][BOXTYPE]['W'] : the guideline width in default user units
  • ['BoxColorInfo'][BOXTYPE]['S'] : the guideline style: S = Solid; D = Dashed
  • ['BoxColorInfo'][BOXTYPE]['D'] : dash array defining a pattern of dashes and gaps to be used in drawing dashed guidelines
  • ['trans'] : the style and duration of the visual transition to use when moving from another page to the given page during a presentation
  • ['trans']['Dur'] : The page's display duration (also called its advance timing): the maximum length of time, in seconds, that the page shall be displayed during presentations before the viewer application shall automatically advance to the next page.
  • ['trans']['S'] : transition style : Split, Blinds, Box, Wipe, Dissolve, Glitter, R, Fly, Push, Cover, Uncover, Fade
  • ['trans']['D'] : The duration of the transition effect, in seconds.
  • ['trans']['Dm'] : (Split and Blinds transition styles only) The dimension in which the specified transition effect shall occur: H = Horizontal, V = Vertical. Default value: H.
  • ['trans']['M'] : (Split, Box and Fly transition styles only) The direction of motion for the specified transition effect: I = Inward from the edges of the page, O = Outward from the center of the pageDefault value: I.
  • ['trans']['Di'] : (Wipe, Glitter, Fly, Cover, Uncover and Push transition styles only) The direction in which the specified transition effect shall moves, expressed in degrees counterclockwise starting from a left-to-right direction. If the value is a number, it shall be one of: 0 = Left to right, 90 = Bottom to top (Wipe only), 180 = Right to left (Wipe only), 270 = Top to bottom, 315 = Top-left to bottom-right (Glitter only). If the value is a name, it shall be None, which is relevant only for the Fly transition when the value of SS is not 1.0. Default value: 0.
  • ['trans']['SS'] : (Fly transition style only) The starting or ending scale at which the changes shall be drawn. If M specifies an inward transition, the scale of the changes drawn shall progress from SS to 1.0 over the course of the transition. If M specifies an outward transition, the scale of the changes drawn shall progress from 1.0 to SS over the course of the transition. Default: 1.0.
  • ['trans']['B'] : (Fly transition style only) If true, the area that shall be flown in is rectangular and opaque. Default: false.
$orientation(string) page orientation. Possible values are (case insensitive):
  • P or Portrait (default)
  • L or Landscape
  • '' (empty string) for automatic orientation
Since:
3.0.015 (2008-06-06)
See also:
getPageSizeFromFormat()

Definition at line 2793 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Set start-writing mark on current page stream used to put borders and fills. Borders and fills are always created after content and inserted on the position marked by this method. This function must be called after calling Image() function for a background image. Background images must be always inserted before calling Multicell() or WriteHTMLCell() or WriteHTML() functions.

Since:
4.0.016 (2008-07-30)

Definition at line 4006 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setPageOrientation ( orientation,
autopagebreak = '',
bottommargin = '' 
)

Set page orientation.

Parameters:
$orientation(string) page orientation. Possible values are (case insensitive):
  • P or Portrait (default)
  • L or Landscape
  • '' (empty string) for automatic orientation
$autopagebreak(boolean) Boolean indicating if auto-page-break mode should be on or off.
$bottommargin(float) bottom margin of the page.
Since:
3.0.015 (2008-06-06)

Definition at line 2960 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setPageRegions ( regions = array())

Set no-write regions on page. A no-write region is a portion of the page with a rectangular or trapezium shape that will not be covered when writing text or html code. A region is always aligned on the left or right side of the page ad is defined using a vertical segment. You can set multiple regions for the same page.

Parameters:
$regions(array) array of no-write regions. For each region you can define an array as follow: ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right). Omit this parameter to remove all regions.
Author:
Nicola Asuni
Since:
5.9.003 (2010-10-13)
See also:
addPageRegion(), getPageRegions()

Definition at line 26924 of file tcpdf.php.

Here is the call graph for this function:

setPageUnit ( unit)

Set the units of measure for the document.

Parameters:
$unit(string) User measure unit. Possible values are:
  • pt: point
  • mm: millimeter (default)
  • cm: centimeter
  • in: inch

A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
Since:
3.0.015 (2008-06-06)

Definition at line 2033 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setPDFVersion ( version = '1.7')

Set the PDF version (check PDF reference for valid values).

Parameters:
$version(string) PDF document version.
Since:
3.1.000 (2008-06-09)

Definition at line 18067 of file tcpdf.php.

Here is the caller graph for this function:

setPrintFooter ( val = true)

Set a flag to print page footer.

Parameters:
$val(boolean) set to true to print the page footer (default), false otherwise.

Definition at line 4114 of file tcpdf.php.

Here is the call graph for this function:

setPrintHeader ( val = true)

Set a flag to print page header.

Parameters:
$val(boolean) set to true to print the page header (default), false otherwise.

Definition at line 4105 of file tcpdf.php.

Here is the call graph for this function:

SetProtection ( permissions = array('print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high'),
user_pass = '',
owner_pass = null,
mode = 0,
pubkeys = null 
)

Set document protection Remark: the protection against modification is for people who have the full Acrobat product. If you don't set any password, the document will open as usual. If you set a user password, the PDF viewer will ask for it before displaying the document. The master password, if different from the user one, can be used to get full access. Note: protecting a document requires to encrypt it, which increases the processing time a lot. This can cause a PHP time-out in some cases, especially if the document contains images or fonts.

Parameters:
$permissions(Array) the set of permissions (specify the ones you want to block):
  • print : Print the document;
  • modify : Modify the contents of the document by operations other than those controlled by 'fill-forms', 'extract' and 'assemble';
  • copy : Copy or otherwise extract text and graphics from the document;
  • annot-forms : Add or modify text annotations, fill in interactive form fields, and, if 'modify' is also set, create or modify interactive form fields (including signature fields);
  • fill-forms : Fill in existing interactive form fields (including signature fields), even if 'annot-forms' is not specified;
  • extract : Extract text and graphics (in support of accessibility to users with disabilities or for other purposes);
  • assemble : Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if 'modify' is not set;
  • print-high : Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this is not set, printing is limited to a low-level representation of the appearance, possibly of degraded quality.
  • owner : (inverted logic - only for public-key) when set permits change of encryption and enables all other permissions.
$user_pass(String) user password. Empty by default.
$owner_pass(String) owner password. If not specified, a random value is used.
$mode(int) encryption strength: 0 = RC4 40 bit; 1 = RC4 128 bit; 2 = AES 128 bit; 3 = AES 256 bit.
$pubkeys(String) array of recipients containing public-key certificates ('c') and permissions ('p'). For example: array(array('c' => 'file://../tcpdf.crt', 'p' => array('print')))
Since:
2.0.000 (2008-01-02)
Author:
Nicola Asuni

Definition at line 14124 of file tcpdf.php.

Here is the call graph for this function:

Enable/disable rasterization of vector images using ImageMagick library.

Parameters:
$mode(boolean) if true enable rasterization, false otherwise.
Since:
5.0.000 (2010-04-27)

Definition at line 26422 of file tcpdf.php.

SetRightMargin ( margin)

Defines the right margin. The method can be called before creating the first page.

Parameters:
$margin(float) The margin.
Since:
1.5
See also:
SetLeftMargin(), SetTopMargin(), SetAutoPageBreak(), SetMargins()

Definition at line 3341 of file tcpdf.php.

setRTL ( enable,
resetx = true 
)

Enable or disable Right-To-Left language mode

Parameters:
$enable(Boolean) if true enable Right-To-Left language mode.
$resetx(Boolean) if true reset the X position on direction change.
Since:
2.0.000 (2008-01-03)

Definition at line 3090 of file tcpdf.php.

Here is the call graph for this function:

setSignature ( signing_cert = '',
private_key = '',
private_key_password = '',
extracerts = '',
cert_type = 2,
info = array() 
)

Enable document signature (requires the OpenSSL Library). The digital signature improve document authenticity and integrity and allows o enable extra features on Acrobat Reader. To create self-signed signature: openssl req -x509 -nodes -days 365000 -newkey rsa:1024 -keyout tcpdf.crt -out tcpdf.crt To export crt to p12: openssl pkcs12 -export -in tcpdf.crt -out tcpdf.p12 To convert pfx certificate to pem: openssl pkcs12 -in tcpdf.pfx -out tcpdf.crt -nodes

Parameters:
$signing_cert(mixed) signing certificate (string or filename prefixed with 'file://')
$private_key(mixed) private key (string or filename prefixed with 'file://')
$private_key_password(string) password
$extracerts(string) specifies the name of a file containing a bunch of extra certificates to include in the signature which can for example be used to help the recipient to verify the certificate that you used.
$cert_type(int) The access permissions granted for this document. Valid values shall be: 1 = No changes to the document shall be permitted; any change to the document shall invalidate the signature; 2 = Permitted changes shall be filling in forms, instantiating page templates, and signing; other changes shall invalidate the signature; 3 = Permitted changes shall be the same as for 2, as well as annotation creation, deletion, and modification; other changes shall invalidate the signature.
$info(array) array of option information: Name, Location, Reason, ContactInfo.
Author:
Nicola Asuni
Since:
4.6.005 (2009-04-24)

Definition at line 17588 of file tcpdf.php.

setSignatureAppearance ( x = 0,
y = 0,
w = 0,
h = 0,
page = -1 
)

Set the digital signature appearance (a cliccable rectangle area to get signature properties)

Parameters:
$x(float) Abscissa of the upper-left corner.
$y(float) Ordinate of the upper-left corner.
$w(float) Width of the signature area.
$h(float) Height of the signature area.
$page(int) option page number (if < 0 the current page is used).
Author:
Nicola Asuni
Since:
5.3.011 (2010-06-17)

Definition at line 17624 of file tcpdf.php.

Here is the call graph for this function:

setSpacesRE ( re = '/[^\S\xa0]/')

Set regular expression to detect withespaces or word separators. The pattern delimiter must be the forward-slash character "/". Some example patterns are:

 Non-Unicode or missing PCRE unicode support: "/[^\S\xa0]/"
 Unicode and PCRE unicode support: "/[^\S\P{Z}\xa0]/u"
 Unicode and PCRE unicode support in Chinese mode: "/[^\S\P{Z}\P{Lo}\xa0]/u"
 if PCRE unicode support is turned ON ("\P" is the negate class of "\p"):
 "\p{Z}" or "\p{Separator}": any kind of Unicode whitespace or invisible separator.
 "\p{Lo}" or "\p{Other_Letter}": a Unicode letter or ideograph that does not have lowercase and uppercase variants.
 "\p{Lo}" is needed for Chinese characters because are packed next to each other without spaces in between.
 
Parameters:
$re(string) regular expression (leave empty for default).
Since:
4.6.016 (2009-06-15)

Definition at line 3065 of file tcpdf.php.

Here is the caller graph for this function:

setSpotColor ( type,
name,
tint = 100 
)

Set the spot color for the specified type ('draw', 'fill', 'text').

Parameters:
$type(string) Type of object affected by this color: ('draw', 'fill', 'text').
$name(string) Name of the spot color.
$tint(float) Intensity of the color (from 0 to 100 ; 100 = full intensity by default).
Returns:
(string) PDF color command.
Since:
5.9.125 (2011-10-03)

Definition at line 4496 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setSRGBmode ( mode = false)

Set flag to force sRGB_IEC61966-2.1 black scaled ICC color profile for the whole document.

Parameters:
$mode(boolean) If true force sRGB output intent.
Since:
5.9.121 (2011-09-28)

Definition at line 3633 of file tcpdf.php.

setStartingPageNumber ( num = 1)

Set the starting page number.

Parameters:
$num(int) Starting page number.
Since:
5.9.093 (2011-06-16)

Definition at line 17709 of file tcpdf.php.

SetSubject ( subject)

Defines the subject of the document.

Parameters:
$subject(string) The subject.
Since:
1.2
See also:
SetAuthor(), SetCreator(), SetKeywords(), SetTitle()

Definition at line 3666 of file tcpdf.php.

setSVGStyles ( svgstyle,
prevsvgstyle,
x = 0,
y = 0,
w = 1,
h = 1,
clip_function = '',
clip_params = array() 
) [protected]

Apply the requested SVG styles (*** TO BE COMPLETED ***)

Parameters:
$svgstyle(array) array of SVG styles to apply
$prevsvgstyle(array) array of previous SVG style
$x(int) X origin of the bounding box
$y(int) Y origin of the bounding box
$w(int) width of the bounding box
$h(int) height of the bounding box
$clip_function(string) clip function
$clip_params(array) array of parameters for clipping function
Returns:
object style
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 27539 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setTableHeader ( ) [protected]

This method is used to render the table header on new page (if any).

Since:
4.5.030 (2009-03-25)

Definition at line 4384 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setTempRTL ( mode)

Force temporary RTL language direction

Parameters:
$mode(mixed) can be false, 'L' for LTR or 'R' for RTL
Since:
2.1.000 (2008-01-09)

Definition at line 3116 of file tcpdf.php.

Here is the caller graph for this function:

SetTextColor ( col1 = 0,
col2 = -1,
col3 = -1,
col4 = -1,
ret = false,
name = '' 
)

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.

Parameters:
$col1(float) GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
$col2(float) GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
$col3(float) BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
$col4(float) KEY (BLACK) color for CMYK (0-100).
$ret(boolean) If true do not send the command.
$name(string) Spot color name (if any).
Returns:
(string) Empty string.
Since:
1.3
See also:
SetTextColorArray(), SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell()

Definition at line 4781 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetTextColorArray ( color,
ret = false 
)

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.

Parameters:
$color(array) Array of colors (1, 3 or 4 values).
$ret(boolean) If true do not send the PDF command.
Since:
3.1.000 (2008-6-11)
See also:
SetFillColor()

Definition at line 4640 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setTextRenderingMode ( stroke = 0,
fill = true,
clip = false 
)

Set Text rendering mode.

Parameters:
$stroke(int) outline size in user units (0 = disable).
$fill(boolean) if true fills the text (default).
$clip(boolean) if true activate clipping mode
Since:
4.9.008 (2009-04-02)

Definition at line 26204 of file tcpdf.php.

Here is the caller graph for this function:

SetTextSpotColor ( name,
tint = 100 
)

Defines the spot color used for text.

Parameters:
$name(string) Name of the spot color.
$tint(int) Intensity of the color (from 0 to 100 ; 100 = full intensity by default).
Since:
4.0.024 (2008-09-12)
See also:
AddSpotColor(), SetDrawSpotColor(), SetFillSpotColor()

Definition at line 4567 of file tcpdf.php.

Here is the call graph for this function:

SetTitle ( title)

Defines the title of the document.

Parameters:
$title(string) The title.
Since:
1.2
See also:
SetAuthor(), SetCreator(), SetKeywords(), SetSubject()

Definition at line 3655 of file tcpdf.php.

SetTopMargin ( margin)

Defines the top margin. The method can be called before creating the first page.

Parameters:
$margin(float) The margin.
Since:
1.5
See also:
SetLeftMargin(), SetRightMargin(), SetAutoPageBreak(), SetMargins()

Definition at line 3326 of file tcpdf.php.

setUserRights ( enable = true,
document = '/FullSave',
annots = '/Create/Delete/Modify/Copy/Import/Export',
form = '/Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate',
signature = '/Modify',
ef = '/Create/Delete/Modify/Import',
formex = '' 
)

Set User's Rights for PDF Reader WARNING: This is experimental and currently do not work. Check the PDF Reference 8.7.1 Transform Methods, Table 8.105 Entries in the UR transform parameters dictionary

Parameters:
$enable(boolean) if true enable user's rights on PDF reader
$document(string) Names specifying additional document-wide usage rights for the document. The only defined value is "/FullSave", which permits a user to save the document along with modified form and/or annotation data.
$annots(string) Names specifying additional annotation-related usage rights for the document. Valid names in PDF 1.5 and later are /Create/Delete/Modify/Copy/Import/Export, which permit the user to perform the named operation on annotations.
$form(string) Names specifying additional form-field-related usage rights for the document. Valid names are: /Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate
$signature(string) Names specifying additional signature-related usage rights for the document. The only defined value is /Modify, which permits a user to apply a digital signature to an existing signature form field or clear a signed signature form field.
$ef(string) Names specifying additional usage rights for named embedded files in the document. Valid names are /Create/Delete/Modify/Import, which permit the user to perform the named operation on named embedded files Names specifying additional embedded-files-related usage rights for the document.
$formex(string) Names specifying additional form-field-related usage rights. The only valid name is BarcodePlaintext, which permits text form field data to be encoded as a plaintext two-dimensional barcode.
Author:
Nicola Asuni
Since:
2.9.000 (2008-03-26)

Definition at line 17552 of file tcpdf.php.

setViewerPreferences ( preferences)

Set the viewer preferences dictionary controlling the way the document is to be presented on the screen or in print. (see Section 8.1 of PDF reference, "Viewer Preferences").

  • HideToolbar boolean (Optional) A flag specifying whether to hide the viewer application's tool bars when the document is active. Default value: false.
  • HideMenubar boolean (Optional) A flag specifying whether to hide the viewer application's menu bar when the document is active. Default value: false.
  • HideWindowUI boolean (Optional) A flag specifying whether to hide user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed. Default value: false.
  • FitWindow boolean (Optional) A flag specifying whether to resize the document's window to fit the size of the first displayed page. Default value: false.
  • CenterWindow boolean (Optional) A flag specifying whether to position the document's window in the center of the screen. Default value: false.
  • DisplayDocTitle boolean (Optional; PDF 1.4) A flag specifying whether the window's title bar should display the document title taken from the Title entry of the document information dictionary (see Section 10.2.1, "Document Information Dictionary"). If false, the title bar should instead display the name of the PDF file containing the document. Default value: false.
  • NonFullScreenPageMode name (Optional) The document's page mode, specifying how to display the document on exiting full-screen mode:
    • UseNone Neither document outline nor thumbnail images visible
    • UseOutlines Document outline visible
    • UseThumbs Thumbnail images visible
    • UseOC Optional content group panel visible
    This entry is meaningful only if the value of the PageMode entry in the catalog dictionary (see Section 3.6.1, "Document Catalog") is FullScreen; it is ignored otherwise. Default value: UseNone.
  • ViewArea name (Optional; PDF 1.4) The name of the page boundary representing the area of a page to be displayed when viewing the document on the screen. Valid values are (see Section 10.10.1, "Page Boundaries").:
    • MediaBox
    • CropBox (default)
    • BleedBox
    • TrimBox
    • ArtBox
  • ViewClip name (Optional; PDF 1.4) The name of the page boundary to which the contents of a page are to be clipped when viewing the document on the screen. Valid values are (see Section 10.10.1, "Page Boundaries").:
    • MediaBox
    • CropBox (default)
    • BleedBox
    • TrimBox
    • ArtBox
  • PrintArea name (Optional; PDF 1.4) The name of the page boundary representing the area of a page to be rendered when printing the document. Valid values are (see Section 10.10.1, "Page Boundaries").:
    • MediaBox
    • CropBox (default)
    • BleedBox
    • TrimBox
    • ArtBox
  • PrintClip name (Optional; PDF 1.4) The name of the page boundary to which the contents of a page are to be clipped when printing the document. Valid values are (see Section 10.10.1, "Page Boundaries").:
    • MediaBox
    • CropBox (default)
    • BleedBox
    • TrimBox
    • ArtBox
  • PrintScaling name (Optional; PDF 1.6) The page scaling option to be selected when a print dialog is displayed for this document. Valid values are:
    • None, which indicates that the print dialog should reflect no page scaling
    • AppDefault (default), which indicates that applications should use the current print scaling
  • Duplex name (Optional; PDF 1.7) The paper handling option to use when printing the file from the print dialog. The following values are valid:
    • Simplex - Print single-sided
    • DuplexFlipShortEdge - Duplex and flip on the short edge of the sheet
    • DuplexFlipLongEdge - Duplex and flip on the long edge of the sheet
    Default value: none
  • PickTrayByPDFSize boolean (Optional; PDF 1.7) A flag specifying whether the PDF page size is used to select the input paper tray. This setting influences only the preset values used to populate the print dialog presented by a PDF viewer application. If PickTrayByPDFSize is true, the check box in the print dialog associated with input paper tray is checked. Note: This setting has no effect on Mac OS systems, which do not provide the ability to pick the input tray by size.
  • PrintPageRange array (Optional; PDF 1.7) The page numbers used to initialize the print dialog box when the file is printed. The first page of the PDF file is denoted by 1. Each pair consists of the first and last pages in the sub-range. An odd number of integers causes this entry to be ignored. Negative numbers cause the entire array to be ignored. Default value: as defined by PDF viewer application
  • NumCopies integer (Optional; PDF 1.7) The number of copies to be printed when the print dialog is opened for this file. Supported values are the integers 2 through 5. Values outside this range are ignored. Default value: as defined by PDF viewer application, but typically 1
Parameters:
$preferences(array) array of options.
Author:
Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 18085 of file tcpdf.php.

setVisibility ( v)

Set the visibility of the successive elements. This can be useful, for instance, to put a background image or color that will show on screen but won't print.

Parameters:
$v(string) visibility mode. Legal values are: all, print, screen or view.
Since:
3.0.000 (2008-03-27)

Definition at line 17909 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetX ( x,
rtloff = false 
)

Defines the abscissa of the current position. If the passed value is negative, it is relative to the right of the page (or left if language is RTL).

Parameters:
$x(float) The value of the abscissa.
$rtloff(boolean) if true always uses the page top-left corner as origin of axis.
Since:
1.2
See also:
GetX(), GetY(), SetY(), SetXY()

Definition at line 8362 of file tcpdf.php.

Here is the caller graph for this function:

SetXY ( x,
y,
rtloff = false 
)

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.

Parameters:
$x(float) The value of the abscissa.
$y(float) The value of the ordinate.
$rtloff(boolean) if true always uses the page top-left corner as origin of axis.
Since:
1.2
See also:
SetX(), SetY()

Definition at line 8426 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SetY ( y,
resetx = true,
rtloff = false 
)

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.

Parameters:
$y(float) The value of the ordinate.
$resetx(bool) if true (default) reset the X position.
$rtloff(boolean) if true always uses the page top-left corner as origin of axis.
Since:
1.0
See also:
GetX(), GetY(), SetY(), SetXY()

Definition at line 8394 of file tcpdf.php.

Here is the caller graph for this function:

Skew ( angle_x,
angle_y,
x = '',
y = '' 
)

Skew.

Parameters:
$angle_x(float) angle in degrees between -90 (skew to the left) and 90 (skew to the right)
$angle_y(float) angle in degrees between -90 (skew to the bottom) and 90 (skew to the top)
$x(int) abscissa of the skewing center. default is current x position
$y(int) ordinate of the skewing center. default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14548 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SkewX ( angle_x,
x = '',
y = '' 
)

Skew horizontally.

Parameters:
$angle_x(float) angle in degrees between -90 (skew to the left) and 90 (skew to the right)
$x(int) abscissa of the skewing center. default is current x position
$y(int) ordinate of the skewing center. default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14521 of file tcpdf.php.

Here is the call graph for this function:

SkewY ( angle_y,
x = '',
y = '' 
)

Skew vertically.

Parameters:
$angle_y(float) angle in degrees between -90 (skew to the bottom) and 90 (skew to the top)
$x(int) abscissa of the skewing center. default is current x position
$y(int) ordinate of the skewing center. default is current y position
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14534 of file tcpdf.php.

Here is the call graph for this function:

sortBookmarks ( ) [protected]

Sort bookmarks for page and key.

Since:
5.9.119 (2011-09-19)

Definition at line 16217 of file tcpdf.php.

Here is the caller graph for this function:

StarPolygon ( x0,
y0,
r,
nv,
ng,
angle = 0,
draw_circle = false,
style = '',
line_style = array(),
fill_color = array(),
circle_style = '',
circle_outLine_style = array(),
circle_fill_color = array() 
)

Draws a star polygon

Parameters:
$x0(float) Abscissa of center point.
$y0(float) Ordinate of center point.
$r(float) Radius of inscribed circle.
$nv(integer) Number of vertices.
$ng(integer) Number of gap (if ($ng % $nv = 1) then is a regular polygon).
$angle,:(float) Angle oriented (anti-clockwise). Default value: 0.
$draw_circle,:(boolean) Draw inscribed circle or not. Default value is false.
$style(string) Style of rendering. See the getPathPaintOperator() function for more information.
$line_style(array) Line style of polygon sides. Array with keys among the following: If a key is not present or is null, not draws the side. Default value is default line style (empty array).
$fill_color(array) Fill color. Format: array(red, green, blue). Default value: default color (empty array).
$circle_style(string) Style of rendering of inscribed circle (if draws). Possible values are:
  • D or empty string: Draw (default).
  • F: Fill.
  • DF or FD: Draw and fill.
  • CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).
  • CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).
$circle_outLine_style(array) Line style of inscribed circle (if draws). Array like for SetLineStyle(). Default value: default line style (empty array).
$circle_fill_color(array) Fill color of inscribed circle (if draws). Format: array(red, green, blue). Default value: default color (empty array).
Since:
2.1.000 (2008-01-08)

Definition at line 15294 of file tcpdf.php.

Here is the call graph for this function:

startLayer ( name = '',
print = true,
view = true 
)

Start a new pdf layer.

Parameters:
$name(string) Layer name (only a-z letters and numbers). Leave empty for automatic name.
$print(boolean) Set to true to print this layer.
$view(boolean) Set to true to view this layer.
Since:
5.9.102 (2011-07-13)

Definition at line 17876 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

startPage ( orientation = '',
format = '',
tocpage = false 
)

Starts a new page to the document. The page must be closed using the endPage() function. The origin of the coordinate system is at the top-left corner and increasing ordinates go downwards.

Parameters:
$orientation(string) page orientation. Possible values are (case insensitive):
  • P or PORTRAIT (default)
  • L or LANDSCAPE
$format(mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().
$tocpage(boolean) if true the page is designated to contain the Table-Of-Content.
Since:
4.2.010 (2008-11-14)
See also:
AddPage(), endPage(), addTOCPage(), endTOCPage(), getPageSizeFromFormat(), setPageFormat()

Definition at line 3935 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

startPageGroup ( page = '')

Create a new page group. NOTE: call this function before calling AddPage()

Parameters:
$page(int) starting group page (leave empty for next page).
Since:
3.0.000 (2008-03-27)

Definition at line 17678 of file tcpdf.php.

startSVGElementHandler ( parser,
name,
attribs,
ctm = array() 
) [protected]

Sets the opening SVG element handler function for the XML parser. (*** TO BE COMPLETED ***)

Parameters:
$parser(resource) The first parameter, parser, is a reference to the XML parser calling the handler.
$name(string) The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
$attribs(array) The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on.
$ctm(array) tranformation matrix for clipping mode (starting transformation matrix).
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 28195 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

startTemplate ( w = 0,
h = 0,
group = false 
)

Start a new XObject Template. An XObject Template is a PDF block that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images). An XObject Template may be painted multiple times, either on several pages or at several locations on the same page and produces the same results each time, subject only to the graphics state at the time it is invoked. Note: X,Y coordinates will be reset to 0,0.

Parameters:
$w(int) Template width in user units (empty string or zero = page width less margins).
$h(int) Template height in user units (empty string or zero = page height less margins).
$group(mixed) Set transparency group. Can be a boolean value or an array specifying optional parameters: 'CS' (solour space name), 'I' (boolean flag to indicate isolated group) and 'K' (boolean flag to indicate knockout group).
Returns:
int the XObject Template ID in case of success or false in case of error.
Author:
Nicola Asuni
Since:
5.8.017 (2010-08-24)
See also:
endTemplate(), printTemplate()

Definition at line 26646 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Stores a copy of the current TCPDF object used for undo operation.

Since:
4.5.029 (2009-03-19)

Definition at line 25932 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Starts a 2D tranformation saving current graphic state. This function must be called before scaling, mirroring, translation, rotation and skewing. Use StartTransform() before, and StopTransform() after the transformations to restore the normal behavior.

Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14283 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Stops a 2D tranformation restoring previous graphic state. This function must be called after scaling, mirroring, translation, rotation and skewing. Use StartTransform() before, and StopTransform() after the transformations to restore the normal behavior.

Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14303 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

stringLeftTrim ( str,
replace = '' 
)

Left trim the input string

Parameters:
$str(string) string to trim
$replace(string) string that replace spaces.
Returns:
left trimmed string
Author:
Nicola Asuni
Since:
5.8.000 (2010-08-11)

Definition at line 26552 of file tcpdf.php.

Here is the caller graph for this function:

stringRightTrim ( str,
replace = '' 
)

Right trim the input string

Parameters:
$str(string) string to trim
$replace(string) string that replace spaces.
Returns:
right trimmed string
Author:
Nicola Asuni
Since:
5.8.000 (2010-08-11)

Definition at line 26565 of file tcpdf.php.

Here is the caller graph for this function:

stringTrim ( str,
replace = '' 
)

Trim the input string

Parameters:
$str(string) string to trim
$replace(string) string that replace spaces.
Returns:
trimmed string
Author:
Nicola Asuni
Since:
5.8.000 (2010-08-11)

Definition at line 26578 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SVGPath ( d,
style = '' 
) [protected]

Draws an SVG path

Parameters:
$d(string) attribute d of the path SVG element
$style(string) Style of rendering. Possible values are:
  • D or empty string: Draw (default).
  • F: Fill.
  • F*: Fill using the even-odd rule to determine which regions lie inside the clipping path.
  • DF or FD: Draw and fill.
  • DF* or FD*: Draw and fill using the even-odd rule to determine which regions lie inside the clipping path.
  • CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).
  • CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).
Returns:
array of container box measures (x, y, w, h)
Author:
Nicola Asuni
Since:
5.0.000 (2010-05-02)

Definition at line 27820 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

SVGTransform ( tm) [protected]

Apply SVG graphic transformation matrix.

Parameters:
$tm(array) original SVG transformation matrix
Since:
5.0.000 (2010-05-02)

Definition at line 27520 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

swapMargins ( reverse = true) [protected]

Swap the left and right margins.

Parameters:
$reverse(boolean) if true swap left and right margins.
Since:
4.2.000 (2008-10-29)

Definition at line 24435 of file tcpdf.php.

Here is the caller graph for this function:

swapPageBoxCoordinates ( page) [protected]

Swap X and Y coordinates of page boxes (change page boxes orientation).

Parameters:
$page(int) page number
Since:
5.0.010 (2010-05-17)

Definition at line 2937 of file tcpdf.php.

Here is the caller graph for this function:

Text ( x,
y,
txt,
fstroke = false,
fclip = false,
ffill = true,
border = 0,
ln = 0,
align = '',
fill = false,
link = '',
stretch = 0,
ignore_min_height = false,
calign = 'T',
valign = 'M',
rtloff = false 
)

Prints a text cell at the specified position. This method allows to place a string precisely on the page.

Parameters:
$x(float) Abscissa of the cell origin
$y(float) Ordinate of the cell origin
$txt(string) String to print
$fstroke(int) outline size in user units (false = disable)
$fclip(boolean) if true activate clipping mode (you must call StartTransform() before this function and StopTransform() to stop the clipping tranformation).
$ffill(boolean) if true fills the text
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$ln(int) Indicates where the current position should go after the call. Possible values are:
  • 0: to the right (or left for RTL languages)
  • 1: to the beginning of the next line
  • 2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
$align(string) Allows to center or align the text. Possible values are:
  • L or empty string: left align (default value)
  • C: center
  • R: right align
  • J: justify
$fill(boolean) Indicates if the cell background must be painted (true) or transparent (false).
$link(mixed) URL or identifier returned by AddLink().
$stretch(int) font stretch mode:
  • 0 = disabled
  • 1 = horizontal scaling only if text is larger than cell width
  • 2 = forced horizontal scaling to fit cell width
  • 3 = character spacing only if text is larger than cell width
  • 4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
$ignore_min_height(boolean) if true ignore automatic minimum height value.
$calign(string) cell vertical alignment relative to the specified Y value. Possible values are:
  • T : cell top
  • A : font top
  • L : font baseline
  • D : font bottom
  • B : cell bottom
$valign(string) text vertical alignment inside the cell. Possible values are:
  • T : top
  • C : center
  • B : bottom
$rtloff(boolean) if true uses the page top-left corner as origin of axis for $x and $y initial position.
Since:
1.0
See also:
Cell(), Write(), MultiCell(), WriteHTML(), WriteHTMLCell()

Definition at line 5507 of file tcpdf.php.

Here is the call graph for this function:

TextField ( name,
w,
h,
prop = array(),
opt = array(),
x = '',
y = '',
js = false 
)

Creates a text field

Parameters:
$name(string) field name
$w(float) Width of the rectangle
$h(float) Height of the rectangle
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
$opt(array) annotation parameters. Possible values are described on official PDF32000_2008 reference.
$x(float) Abscissa of the upper-left corner of the rectangle
$y(float) Ordinate of the upper-left corner of the rectangle
$js(boolean) if true put the field using JavaScript (requires Acrobat Writer to be rendered).
Author:
Nicola Asuni
Since:
4.8.000 (2009-09-07)

Definition at line 16871 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Transform ( tm) [protected]

Apply graphic transformations.

Parameters:
$tm(array) transformation matrix
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14579 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Translate ( t_x,
t_y 
)

Translate graphic object horizontally and vertically.

Parameters:
$t_x(int) movement to the right
$t_y(int) movement to the bottom
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14469 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TranslateX ( t_x)

Translate graphic object horizontally.

Parameters:
$t_x(int) movement to the right (or left for RTL)
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14446 of file tcpdf.php.

Here is the call graph for this function:

TranslateY ( t_y)

Translate graphic object vertically.

Parameters:
$t_y(int) movement to the bottom
Since:
2.1.000 (2008-01-07)
See also:
StartTransform(), StopTransform()

Definition at line 14457 of file tcpdf.php.

Here is the call graph for this function:

unhtmlentities ( text_to_convert)

Reverse function for htmlentities. Convert entities in UTF-8.

Parameters:
$text_to_convert(string) Text to convert.
Returns:
string converted text string

Definition at line 13544 of file tcpdf.php.

Here is the caller graph for this function:

UniArrSubString ( uniarr,
start = '',
end = '' 
)

Extract a slice of the $uniarr array and return it as string.

Parameters:
$uniarr(string) The input array of characters.
$start(int) the starting element of $strarr.
$end(int) first element that will not be returned.
Returns:
Return part of a string
Since:
4.5.037 (2009-04-07)

Definition at line 7281 of file tcpdf.php.

Here is the caller graph for this function:

unichr ( c)

Returns the unicode caracter specified by UTF-8 value

Parameters:
$c(int) UTF-8 value
Returns:
Returns the specified character.
Author:
Miguel Perez, Nicola Asuni
Since:
2.3.000 (2008-03-05)

Definition at line 7314 of file tcpdf.php.

Here is the caller graph for this function:

updateCIDtoGIDmap ( map,
cid,
gid 
) [protected]

Update the CIDToGIDMap string with a new value.

Parameters:
$map(string) CIDToGIDMap.
$cid(int) CID value.
$gid(int) GID value.
Returns:
(string) CIDToGIDMap.
Author:
Nicola Asuni
Since:
5.9.123 (2011-09-29)

Definition at line 9802 of file tcpdf.php.

Convert an array of UTF8 values to array of unicode characters

Parameters:
$ta(string) The input array of UTF8 values.
Returns:
Return array of unicode characters
Since:
4.5.037 (2009-04-07)

Definition at line 7302 of file tcpdf.php.

Here is the caller graph for this function:

UTF8ArrSubString ( strarr,
start = '',
end = '' 
)

Extract a slice of the $strarr array and return it as string.

Parameters:
$strarr(string) The input array of characters.
$start(int) the starting element of $strarr.
$end(int) first element that will not be returned.
Returns:
Return part of a string

Definition at line 7258 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

UTF8ArrToLatin1 ( unicode) [protected]

Converts UTF-8 characters array to array of Latin1 characters

Parameters:
$unicode(array) array containing UTF-8 unicode values
Returns:
array
Author:
Nicola Asuni
Since:
4.8.023 (2010-01-15)

Definition at line 13220 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

utf8Bidi ( ta,
str = '',
forcertl = false 
) [protected]

Reverse the RLT substrings using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).

Parameters:
$ta(array) array of characters composing the string.
$str(string) string to process
$forcertl(bool) if 'R' forces RTL, if 'L' forces LTR
Returns:
array of unicode chars
Author:
Nicola Asuni
Since:
2.4.000 (2008-03-06)

Definition at line 15516 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

utf8StrArrRev ( arr,
str = '',
setbom = false,
forcertl = false 
) [protected]

Reverse the RLT substrings array using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).

Parameters:
$arr(array) array of unicode values.
$str(string) string to manipulate (or empty value).
$setbom(bool) if true set the Byte Order Mark (BOM = 0xFEFF)
$forcertl(bool) if true forces RTL text direction
Returns:
string
Author:
Nicola Asuni
Since:
4.9.000 (2010-03-27)

Definition at line 15502 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

UTF8StringToArray ( str) [protected]

Converts UTF-8 strings to codepoints array.
Invalid byte sequences will be replaced with 0xFFFD (replacement character)
Based on: http://www.faqs.org/rfcs/rfc3629.html

    Char. number range  |        UTF-8 octet sequence
       (hexadecimal)    |              (binary)
    --------------------+-----------------------------------------------
    0000 0000-0000 007F | 0xxxxxxx
    0000 0080-0000 07FF | 110xxxxx 10xxxxxx
    0000 0800-0000 FFFF | 1110xxxx 10xxxxxx 10xxxxxx
    0001 0000-0010 FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
    ---------------------------------------------------------------------
   ABFN notation:
   ---------------------------------------------------------------------
   UTF8-octets = *( UTF8-char )
   UTF8-char   = UTF8-1 / UTF8-2 / UTF8-3 / UTF8-4
   UTF8-1      = x00-7F
   UTF8-2      = xC2-DF UTF8-tail
   UTF8-3      = xE0 xA0-BF UTF8-tail / xE1-EC 2( UTF8-tail ) /
                 xED x80-9F UTF8-tail / xEE-EF 2( UTF8-tail )
   UTF8-4      = xF0 x90-BF 2( UTF8-tail ) / xF1-F3 3( UTF8-tail ) /
                 xF4 x80-8F 2( UTF8-tail )
   UTF8-tail   = x80-BF
   ---------------------------------------------------------------------
 
Parameters:
$str(string) string to process.
Returns:
array containing codepoints (UTF-8 characters values)
Author:
Nicola Asuni
Since:
1.53.0.TC005 (2005-01-05)

Definition at line 13056 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

utf8StrRev ( str,
setbom = false,
forcertl = false 
) [protected]

Reverse the RLT substrings using the Bidirectional Algorithm (http://unicode.org/reports/tr9/).

Parameters:
$str(string) string to manipulate.
$setbom(bool) if true set the Byte Order Mark (BOM = 0xFEFF)
$forcertl(bool) if true forces RTL text direction
Returns:
string
Author:
Nicola Asuni
Since:
2.1.000 (2008-01-08)

Definition at line 15487 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

UTF8ToLatin1 ( str) [protected]

Converts UTF-8 strings to Latin1 when using the standard 14 core fonts.

Parameters:
$str(string) string to process.
Returns:
string
Author:
Andrew Whitehead, Nicola Asuni
Since:
3.2.000 (2008-06-23)

Definition at line 13191 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

UTF8ToUTF16BE ( str,
setbom = false 
) [protected]

Converts UTF-8 strings to UTF16-BE.

Parameters:
$str(string) string to process.
$setbom(boolean) if true set the Byte Order Mark (BOM = 0xFEFF)
Returns:
string
Author:
Nicola Asuni
Since:
1.53.0.TC005 (2005-01-05)
See also:
UTF8StringToArray(), arrUTF8ToUTF16BE()

Definition at line 13175 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Write ( h,
txt,
link = '',
fill = false,
align = '',
ln = false,
stretch = 0,
firstline = false,
firstblock = false,
maxh = 0,
wadj = 0,
margin = '' 
)

This method prints text from the current position.

Parameters:
$h(float) Line height
$txt(string) String to print
$link(mixed) URL or identifier returned by AddLink()
$fill(boolean) Indicates if the cell background must be painted (true) or transparent (false).
$align(string) Allows to center or align the text. Possible values are:
  • L or empty string: left align (default value)
  • C: center
  • R: right align
  • J: justify
$ln(boolean) if true set cursor at the bottom of the line, otherwise set cursor at the top of the line.
$stretch(int) font stretch mode:
  • 0 = disabled
  • 1 = horizontal scaling only if text is larger than cell width
  • 2 = forced horizontal scaling to fit cell width
  • 3 = character spacing only if text is larger than cell width
  • 4 = forced character spacing to fit cell width
General font stretching and scaling values will be preserved when possible.
$firstline(boolean) if true prints only the first line and return the remaining string.
$firstblock(boolean) if true the string is the starting of a line.
$maxh(float) maximum height. The remaining unprinted text will be returned. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this feature.
$wadj(float) first line width will be reduced by this amount (used in HTML mode).
$margin(array) margin array of the parent container
Returns:
mixed Return the number of cells or the remaining string if $firstline = true.
Since:
1.5

Definition at line 6835 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

write1DBarcode ( code,
type,
x = '',
y = '',
w = '',
h = '',
xres = '',
style = '',
align = '' 
)

Print a Linear Barcode.

Parameters:
$code(string) code to print
$type(string) type of barcode (see barcodes.php for supported formats).
$x(int) x position in user units (empty string = current x position)
$y(int) y position in user units (empty string = current y position)
$w(int) width in user units (empty string = remaining page width)
$h(int) height in user units (empty string = remaining page height)
$xres(float) width of the smallest bar in user units (empty string = default value = 0.4mm)
$style(array) array of options:
  • boolean $style['border'] if true prints a border
  • int $style['padding'] padding to leave around the barcode in user units (set to 'auto' for automatic padding)
  • int $style['hpadding'] horizontal padding in user units (set to 'auto' for automatic padding)
  • int $style['vpadding'] vertical padding in user units (set to 'auto' for automatic padding)
  • array $style['fgcolor'] color array for bars and text
  • mixed $style['bgcolor'] color array for background (set to false for transparent)
  • boolean $style['text'] if true prints text below the barcode
  • string $style['label'] override default label
  • string $style['font'] font name for text
  • int $style['fontsize'] font size for text
  • int $style['stretchtext']: 0 = disabled; 1 = horizontal scaling only if necessary; 2 = forced horizontal scaling; 3 = character spacing only if necessary; 4 = forced character spacing.
  • string $style['position'] horizontal position of the containing barcode cell on the page: L = left margin; C = center; R = right margin.
  • string $style['align'] horizontal position of the barcode on the containing rectangle: L = left; C = center; R = right.
  • string $style['stretch'] if true stretch the barcode to best fit the available width, otherwise uses $xres resolution for a single bar.
  • string $style['fitwidth'] if true reduce the width to fit the barcode width + padding. When this option is enabled the 'stretch' option is automatically disabled.
  • string $style['cellfitalign'] this option works only when 'fitwidth' is true and 'position' is unset or empty. Set the horizontal position of the containing barcode cell inside the specified rectangle: L = left; C = center; R = right.
$align(string) Indicates the alignment of the pointer next to barcode insertion relative to barcode height. The value can be:
  • T: top-right for LTR or top-left for RTL
  • M: middle-right for LTR or middle-left for RTL
  • B: bottom-right for LTR or bottom-left for RTL
  • N: next line
Author:
Nicola Asuni
Since:
3.1.000 (2008-06-09)

Definition at line 19177 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

write2DBarcode ( code,
type,
x = '',
y = '',
w = '',
h = '',
style = '',
align = '',
distort = false 
)

Print 2D Barcode.

Parameters:
$code(string) code to print
$type(string) type of barcode (see 2dbarcodes.php for supported formats).
$x(int) x position in user units
$y(int) y position in user units
$w(int) width in user units
$h(int) height in user units
$style(array) array of options:
  • boolean $style['border'] if true prints a border around the barcode
  • int $style['padding'] padding to leave around the barcode in barcode units (set to 'auto' for automatic padding)
  • int $style['hpadding'] horizontal padding in barcode units (set to 'auto' for automatic padding)
  • int $style['vpadding'] vertical padding in barcode units (set to 'auto' for automatic padding)
  • int $style['module_width'] width of a single module in points
  • int $style['module_height'] height of a single module in points
  • array $style['fgcolor'] color array for bars and text
  • mixed $style['bgcolor'] color array for background or false for transparent
  • string $style['position'] barcode position on the page: L = left margin; C = center; R = right margin; S = stretch
  • $style['module_width'] width of a single module in points
  • $style['module_height'] height of a single module in points
$align(string) Indicates the alignment of the pointer next to barcode insertion relative to barcode height. The value can be:
  • T: top-right for LTR or top-left for RTL
  • M: middle-right for LTR or middle-left for RTL
  • B: bottom-right for LTR or bottom-left for RTL
  • N: next line
$distort(boolean) if true distort the barcode to fit width and height, otherwise preserve aspect ratio
Author:
Nicola Asuni
Since:
4.5.037 (2009-04-07)

Definition at line 19548 of file tcpdf.php.

Here is the call graph for this function:

writeBarcode ( x,
y,
w,
h,
type,
style,
font,
xres,
code 
)

This function is DEPRECATED, please use the new write1DBarcode() function.

Parameters:
$x(int) x position in user units
$y(int) y position in user units
$w(int) width in user units
$h(int) height position in user units
$type(string) type of barcode
$style(string) barcode style
$font(string) font for text
$xres(int) x resolution
$code(string) code to print
Deprecated:
deprecated since version 3.1.000 (2008-06-10)
See also:
write1DBarcode()

Definition at line 19483 of file tcpdf.php.

Here is the call graph for this function:

writeDiskCache ( filename,
data,
append = false 
) [protected]

Writes data to a temporary file on filesystem.

Parameters:
$filename(string) file name
$data(mixed) data to write on file
$append(boolean) if true append data, false replace.
Since:
4.5.000 (2008-12-31)

Definition at line 24983 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeHTML ( html,
ln = true,
fill = false,
reseth = false,
cell = false,
align = '' 
)

Allows to preserve some HTML formatting (limited support).
IMPORTANT: The HTML must be well formatted - try to clean-up it using an application like HTML-Tidy before submitting. Supported tags are: a, b, blockquote, br, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, ol, p, pre, small, span, strong, sub, sup, table, tcpdf, td, th, thead, tr, tt, u, ul

Parameters:
$html(string) text to display
$ln(boolean) if true add a new line after text (default = true)
$fill(boolean) Indicates if the background must be painted (true) or transparent (false).
$reseth(boolean) if true reset the last cell height (default false).
$cell(boolean) if true add the current left (or right for RTL) padding to each Write (default false).
$align(string) Allows to center or align the text. Possible values are:
  • L : left align
  • C : center
  • R : right align
  • '' : empty string : left for LTR or right for RTL

Definition at line 21427 of file tcpdf.php.

Here is the call graph for this function:

Here is the caller graph for this function:

writeHTMLCell ( w,
h,
x,
y,
html = '',
border = 0,
ln = 0,
fill = false,
reseth = true,
align = '',
autopadding = true 
)

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.

Parameters:
$w(float) Cell width. If 0, the cell extends up to the right margin.
$h(float) Cell minimum height. The cell extends automatically if needed.
$x(float) upper-left corner X coordinate
$y(float) upper-left corner Y coordinate
$html(string) html text to print. Default value: empty string.
$border(mixed) Indicates if borders must be drawn around the cell. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
$ln(int) Indicates where the current position should go after the call. Possible values are:
  • 0: to the right (or left for RTL language)
  • 1: to the beginning of the next line
  • 2: below
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
$fill(boolean) Indicates if the cell background must be painted (true) or transparent (false).
$reseth(boolean) if true reset the last cell height (default true).
$align(string) Allows to center or align the text. Possible values are:
  • L : left align
  • C : center
  • R : right align
  • '' : empty string : left for LTR or right for RTL
$autopadding(boolean) if true, uses internal padding and automatically adjust it to account for line width.
See also:
Multicell(), writeHTML()

Definition at line 21411 of file tcpdf.php.

Here is the call graph for this function:


Field Documentation

$alias_group_num_page = '{:png:}' [protected]

String alias for group page number.

Definition at line 547 of file tcpdf.php.

$alias_group_tot_pages = '{:ptg:}' [protected]

String alias for total number of pages in a single group.

Definition at line 541 of file tcpdf.php.

$alias_num_page = '{:pnp:}' [protected]

String alias for page number.

Definition at line 535 of file tcpdf.php.

$alias_right_shift = '{rsc:' [protected]

String alias for right shift compensation used to correctly align page numbers on the right.

Definition at line 553 of file tcpdf.php.

$alias_tot_pages = '{:ptp:}' [protected]

String alias for total number of pages.

Definition at line 529 of file tcpdf.php.

$annotation_fonts = array() [protected]

List of fonts used on form fields (fontname => fontkey).

Since:
4.8.001 (2009-09-09)

Definition at line 1423 of file tcpdf.php.

$author = '' [protected]

Document author.

Definition at line 505 of file tcpdf.php.

$AutoPageBreak [protected]

Automatic page breaking.

Definition at line 451 of file tcpdf.php.

$barcode = false [protected]

Barcode to print on page footer (only if set).

Definition at line 670 of file tcpdf.php.

$bgcolor [protected]

Current background color.

Definition at line 768 of file tcpdf.php.

$bMargin [protected]

Page break margin.

Definition at line 285 of file tcpdf.php.

$booklet = false [protected]

Booklet mode for double-sided pages.

Since:
4.2.000 (2008-10-29)

Definition at line 1107 of file tcpdf.php.

$bordermrk = array() [protected]

Array used to store positions inside the pages buffer (keys are the page numbers).

Since:
5.7.000 (2010-08-03)

Definition at line 981 of file tcpdf.php.

$buffer [protected]

Buffer holding in-memory PDF.

Definition at line 189 of file tcpdf.php.

$bufferlen = 0 [protected]

Length of the buffer in bytes.

Since:
4.5.000 (2008-12-31)

Definition at line 1206 of file tcpdf.php.

$byterange_string = '/ByteRange[0 ********** ********** **********]' [protected]

ByteRange placemark used during digital signature process.

Since:
4.6.028 (2009-08-25)

Definition at line 1360 of file tcpdf.php.

$cache_file_length = array() [protected]

Array used to store the lengths of cache files.

Since:
4.5.029 (2009-03-19)

Definition at line 1262 of file tcpdf.php.

$cache_maxsize_UTF8StringToArray = 8 [protected]

Maximum size of cache array used for UTF8StringToArray() method.

Since:
4.5.037 (2009-04-07)

Definition at line 1290 of file tcpdf.php.

$cache_size_UTF8StringToArray = 0 [protected]

Current size of cache array used for UTF8StringToArray() method.

Since:
4.5.037 (2009-04-07)

Definition at line 1297 of file tcpdf.php.

$cache_UTF8StringToArray = array() [protected]

Cache array for UTF8StringToArray() method.

Since:
4.5.037 (2009-04-07)

Definition at line 1283 of file tcpdf.php.

$cell_height_ratio = K_CELL_HEIGHT_RATIO [protected]

Default cell height ratio.

Since:
3.0.014 (2008-05-23)

Definition at line 946 of file tcpdf.php.

$cell_margin = array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0) [protected]

Array of cell margins ('T' => top, 'R' => right, 'B' => bottom, 'L' => left).

Since:
5.9.000 (2010-10-04)

Definition at line 299 of file tcpdf.php.

$cell_padding = array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0) [protected]

Array of cell internal paddings ('T' => top, 'R' => right, 'B' => bottom, 'L' => left).

Since:
5.9.000 (2010-10-03)

Definition at line 292 of file tcpdf.php.

$cntmrk = array() [protected]

Array used to store content positions inside the pages buffer (keys are the page numbers).

Since:
4.6.021 (2009-07-20)

Definition at line 995 of file tcpdf.php.

$ColorFlag [protected]

Indicates whether fill and text colors are different.

Definition at line 445 of file tcpdf.php.

$column_start_page = 0 [protected]

Starting page for columns.

Since:
4.9.001 (2010-03-28)

Definition at line 1493 of file tcpdf.php.

$columns = array() [protected]

Array of column measures (width, space, starting Y position).

Since:
4.9.001 (2010-03-28)

Definition at line 1472 of file tcpdf.php.

$colxshift = array('x' => 0, 's' => array('H' => 0, 'V' => 0), 'p' => array('L' => 0, 'T' => 0, 'R' => 0, 'B' => 0)) [protected]

Array of: X difference between table cell x start and starting page margin, cellspacing, cellpadding.

Since:
5.8.000 (2010-08-11)

Definition at line 1507 of file tcpdf.php.

$compress [protected]

Compression flag.

Definition at line 207 of file tcpdf.php.

$CoreFonts [protected]

Array of standard font names.

Definition at line 329 of file tcpdf.php.

$creator = '' [protected]

Document creator.

Definition at line 517 of file tcpdf.php.

$CurOrientation [protected]

Current page orientation (P = Portrait, L = Landscape).

Definition at line 213 of file tcpdf.php.

$current_column = 0 [protected]

Current column number.

Since:
4.9.001 (2010-03-28)

Definition at line 1486 of file tcpdf.php.

$CurrentFont [protected]

Current font info.

Definition at line 409 of file tcpdf.php.

$currpagegroup = 0 [protected]

Current page group number.

Since:
3.0.000 (2008-03-27)

Definition at line 925 of file tcpdf.php.

$custom_xmp = '' [protected]

Custom XMP data.

Since:
5.9.128 (2011-10-06)

Definition at line 1830 of file tcpdf.php.

$customlistindent = -1 [protected]

HTML PARSER: custom indent amount for lists. Negative value means disabled.

Since:
4.2.007 (2008-11-12)

Definition at line 1128 of file tcpdf.php.

$default_form_prop = array('lineWidth'=>1, 'borderStyle'=>'solid', 'fillColor'=>array(255, 255, 255), 'strokeColor'=>array(128, 128, 128)) [protected]

Deafult Javascript field properties. Possible values are described on official Javascript for Acrobat API reference. Annotation options can be directly specified using the 'aopt' entry.

Since:
4.8.000 (2009-09-07)

Definition at line 1388 of file tcpdf.php.

$default_graphic_vars = array() [protected]

Array of default graphic settings.

Since:
5.5.008 (2010-07-02)

Definition at line 1562 of file tcpdf.php.

$default_monospaced_font = 'courier' [protected]

Default monospace font.

Since:
4.5.025 (2009-03-10)

Definition at line 1248 of file tcpdf.php.

$default_table_columns = 4 [protected]

Default number of columns for html table.

Definition at line 712 of file tcpdf.php.

$dests = array() [protected]

A dictionary of names and corresponding destinations (Dests key on document Catalog).

Since:
5.9.097 (2011-06-23)

Definition at line 1633 of file tcpdf.php.

$diffs = array() [protected]

Array of encoding differences.

Definition at line 347 of file tcpdf.php.

$diskcache = false [protected]

If true enables disk caching.

Since:
4.5.000 (2008-12-31)

Definition at line 1213 of file tcpdf.php.

$doc_date [protected]

Document creation date

Since:
5.9.121 (2011-09-28)

Definition at line 1823 of file tcpdf.php.

$docinfounicode = true [protected]

If true set the document information dictionary in Unicode.

Definition at line 487 of file tcpdf.php.

$dpi = 72 [protected]

DPI (Dot Per Inch) Document Resolution (do not change).

Since:
3.0.000 (2008-03-27)

Definition at line 904 of file tcpdf.php.

$DrawColor [protected]

Commands for drawing color.

Definition at line 427 of file tcpdf.php.

$embeddedfiles = array() [protected]

Array of files to embedd.

Since:
4.4.000 (2008-12-07)

Definition at line 1142 of file tcpdf.php.

$empty_signature_appearance = array() [protected]

Array of empty digital signature appearances.

Since:
5.9.101 (2011-07-06)

Definition at line 1332 of file tcpdf.php.

$emptypagemrk = array() [protected]

Array used to store page positions to track empty pages (keys are the page numbers).

Since:
5.8.007 (2010-08-18)

Definition at line 988 of file tcpdf.php.

$enc_padding = "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A" [protected]

Encryption padding string.

Definition at line 844 of file tcpdf.php.

$encmaps [protected]

Object containing font encoding maps.

Since:
5.9.123 (2011-10-01)
Author:
Nicola Asuni

Definition at line 601 of file tcpdf.php.

$encoding = 'UTF-8' [protected]

Default encoding.

Since:
1.53.0.TC010

Definition at line 787 of file tcpdf.php.

$encryptdata = array() [protected]

Array containing encryption settings.

Since:
5.0.005 (2010-05-11)

Definition at line 824 of file tcpdf.php.

$encrypted [protected]

IBoolean flag indicating whether document is protected.

Since:
2.0.000 (2008-01-02)

Definition at line 817 of file tcpdf.php.

$endlinex = 0 [protected]

End position of the latest inserted line.

Since:
3.2.000 (2008-07-01)

Definition at line 1023 of file tcpdf.php.

$epsmarker = 'x#!#EPS#!#x' [protected]

String used to mark the beginning and end of EPS image blocks.

Since:
4.1.000 (2008-10-18)

Definition at line 1086 of file tcpdf.php.

$extgstates [protected]

Array of transparency objects and parameters.

Since:
3.0.000 (2008-03-27)

Definition at line 932 of file tcpdf.php.

$feps = 0.005 [protected]

Epsilon value used for float calculations.

Since:
4.2.000 (2008-10-29)

Definition at line 1114 of file tcpdf.php.

$fgcolor [protected]

Current foreground color.

Definition at line 732 of file tcpdf.php.

$fhPt [protected]

Height of page format in points.

Definition at line 237 of file tcpdf.php.

$file_id [protected]

File ID (used on document trailer).

Since:
5.0.005 (2010-05-12)

Definition at line 851 of file tcpdf.php.

$FillColor [protected]

Commands for filling color.

Definition at line 433 of file tcpdf.php.

$font_obj_ids = array() [protected]

Store the font object IDs.

Since:
4.8.001 (2009-09-09)

Definition at line 1234 of file tcpdf.php.

$font_spacing = 0 [protected]

Increases or decreases the space between characters in a text by the specified amount (tracking/kerning).

Since:
5.9.000 (2010-09-29)

Definition at line 1597 of file tcpdf.php.

$font_stretching = 100 [protected]

Percentage of character stretching.

Since:
5.9.000 (2010-09-29)

Definition at line 1590 of file tcpdf.php.

$font_subsetting = true [protected]

Boolean flag: if true enables font subsetting by default.

Since:
5.3.002 (2010-06-07)

Definition at line 1555 of file tcpdf.php.

$FontAscent [protected]

Current font ascent (distance between font top and baseline).

Since:
2.8.000 (2007-03-29)

Definition at line 384 of file tcpdf.php.

$FontDescent [protected]

Current font descent (distance between font bottom and baseline).

Since:
2.8.000 (2007-03-29)

Definition at line 391 of file tcpdf.php.

$FontFamily [protected]

Current font family.

Definition at line 371 of file tcpdf.php.

$FontFiles = array() [protected]

Array of font files.

Definition at line 341 of file tcpdf.php.

$fontkeys = array() [protected]

Store the font keys.

Since:
4.5.000 (2009-01-02)

Definition at line 1227 of file tcpdf.php.

$fontlist = array() [protected]

List of available fonts on filesystem.

Definition at line 726 of file tcpdf.php.

$fonts = array() [protected]

Array of used fonts.

Definition at line 335 of file tcpdf.php.

$FontSize [protected]

Current font size in user unit.

Definition at line 421 of file tcpdf.php.

$FontSizePt [protected]

Current font size in points.

Definition at line 415 of file tcpdf.php.

$FontStyle [protected]

Current font style.

Definition at line 377 of file tcpdf.php.

$footer_font [protected]

Default font used on page footer.

Definition at line 658 of file tcpdf.php.

$footer_margin [protected]

Minimum distance between footer and bottom page margin.

Definition at line 632 of file tcpdf.php.

$footerlen = array() [protected]

Array used to store footer length of each page.

Since:
4.0.014 (2008-07-29)

Definition at line 1009 of file tcpdf.php.

$footerpos = array() [protected]

Array used to store footer positions of each page.

Since:
3.2.000 (2008-07-01)

Definition at line 1002 of file tcpdf.php.

$force_srgb = false [protected]

If true force sRGB color profile for all document.

Since:
5.9.121 (2011-09-28)

Definition at line 1809 of file tcpdf.php.

$form_action = '' [protected]

Current form action (used during XHTML rendering).

Since:
4.8.000 (2009-09-07)

Definition at line 1402 of file tcpdf.php.

$form_enctype = 'application/x-www-form-urlencoded' [protected]

Current form encryption type (used during XHTML rendering).

Since:
4.8.000 (2009-09-07)

Definition at line 1409 of file tcpdf.php.

$form_mode = 'post' [protected]

Current method to submit forms.

Since:
4.8.000 (2009-09-07)

Definition at line 1416 of file tcpdf.php.

$form_obj_id = array() [protected]

List of form annotations IDs.

Since:
4.8.000 (2009-09-07)

Definition at line 1381 of file tcpdf.php.

$fwPt [protected]

Width of page format in points.

Definition at line 231 of file tcpdf.php.

$gradients = array() [protected]

Array for storing gradient information.

Since:
3.1.000 (2008-06-09)

Definition at line 967 of file tcpdf.php.

$h [protected]

Current height of page in user unit.

Definition at line 261 of file tcpdf.php.

$header_font [protected]

Default font used on page header.

Definition at line 652 of file tcpdf.php.

$header_logo = '' [protected]

Header image logo.

Definition at line 688 of file tcpdf.php.

$header_logo_width = 30 [protected]

Width of header image logo in user units.

Definition at line 694 of file tcpdf.php.

$header_margin [protected]

Minimum distance between header and top page margin.

Definition at line 626 of file tcpdf.php.

$header_string = '' [protected]

String to pring on page header after title.

Definition at line 706 of file tcpdf.php.

$header_title = '' [protected]

Title to be printed on default page header.

Definition at line 700 of file tcpdf.php.

$header_xobj_autoreset = false [protected]

If true reset the Header Xobject template at each page

Definition at line 620 of file tcpdf.php.

$header_xobjid = -1 [protected]

ID of the stored default header template (-1 = not set).

Definition at line 614 of file tcpdf.php.

$hPt [protected]

Current height of page in points.

Definition at line 249 of file tcpdf.php.

$HREF = array() [protected]

HTML PARSER: array to store current link and rendering styles.

Definition at line 720 of file tcpdf.php.

$htmlLinkColorArray = array(0, 0, 255) [protected]

Default color for html links.

Since:
4.4.003 (2008-12-09)

Definition at line 1164 of file tcpdf.php.

$htmlLinkFontStyle = 'U' [protected]

Default font style to add to html links.

Since:
4.4.003 (2008-12-09)

Definition at line 1171 of file tcpdf.php.

$htmlvspace = 0 [protected]

Count the latest inserted vertical spaces on HTML.

Since:
4.0.021 (2008-08-24)

Definition at line 1065 of file tcpdf.php.

$imagekeys = array() [protected]

Store the image keys.

Since:
4.5.000 (2008-12-31)

Definition at line 1199 of file tcpdf.php.

$images = array() [protected]

Array of used images.

Definition at line 353 of file tcpdf.php.

$img_rb_x [protected]

The right-bottom (or left-bottom for RTL) corner X coordinate of last inserted image.

Since:
2002-07-31
Author:
Nicola Asuni

Definition at line 561 of file tcpdf.php.

$img_rb_y [protected]

The right-bottom corner Y coordinate of last inserted image.

Since:
2002-07-31
Author:
Nicola Asuni

Definition at line 569 of file tcpdf.php.

$imgscale = 1 [protected]

Adjusting factor to convert pixels to user units.

Since:
2004-06-14
Author:
Nicola Asuni

Definition at line 577 of file tcpdf.php.

$InFooter = false [protected]

Flag set when processing page footer.

Definition at line 469 of file tcpdf.php.

$InHeader = false [protected]

Flag set when processing page header.

Definition at line 463 of file tcpdf.php.

$internal_encoding [protected]

PHP internal encoding.

Since:
1.53.0.TC016

Definition at line 794 of file tcpdf.php.

$inthead = false [protected]

True when we are printing the thead section on a new page.

Since:
4.8.027 (2010-01-25)

Definition at line 1465 of file tcpdf.php.

$intmrk = array() [protected]

Array used to store positions inside the pages buffer (keys are the page numbers).

Since:
3.2.000 (2008-06-26)

Definition at line 974 of file tcpdf.php.

$inxobj = false [protected]

Boolean value true when we are inside an XObject.

Since:
5.8.017 (2010-08-24)

Definition at line 1576 of file tcpdf.php.

$isunicode = false [protected]

Boolean flag set to true when the input text is unicode (require unicode fonts).

Since:
2005-01-02
Author:
Nicola Asuni

Definition at line 585 of file tcpdf.php.

$javascript = '' [protected]

Javascript code.

Since:
2.1.002 (2008-02-12)

Definition at line 876 of file tcpdf.php.

$jpeg_quality [protected]

Set the default JPEG compression quality (1-100).

Since:
3.0.000 (2008-03-27)

Definition at line 939 of file tcpdf.php.

$js_objects = array() [protected]

Javascript objects array.

Since:
4.8.000 (2009-09-07)

Definition at line 1395 of file tcpdf.php.

$k [protected]

Scale factor (number of points in user unit).

Definition at line 225 of file tcpdf.php.

$keywords = '' [protected]

Document keywords.

Definition at line 511 of file tcpdf.php.

$l [protected]

Language templates.

Definition at line 664 of file tcpdf.php.

$last_enc_key [protected]

Last RC4 key encrypted (cached for optimisation).

Since:
2.0.000 (2008-01-02)

Definition at line 831 of file tcpdf.php.

$last_enc_key_c [protected]

Last RC4 computed key.

Since:
2.0.000 (2008-01-02)

Definition at line 838 of file tcpdf.php.

$lasth [protected]

Height of last cell printed.

Definition at line 317 of file tcpdf.php.

$LayoutMode [protected]

Layout display mode.

Definition at line 481 of file tcpdf.php.

$linestyleCap = '0 J' [protected]

PDF string for CAP value of the last line.

Since:
4.0.006 (2008-07-16)

Definition at line 1037 of file tcpdf.php.

$linestyleDash = '[] 0 d' [protected]

PDF string for dash value of the last line.

Since:
4.0.006 (2008-07-16)

Definition at line 1051 of file tcpdf.php.

$linestyleJoin = '0 j' [protected]

PDF string for join value of the last line.

Since:
4.0.006 (2008-07-16)

Definition at line 1044 of file tcpdf.php.

$linestyleWidth = '' [protected]

PDF string for width value of the last line.

Since:
4.0.006 (2008-07-16)

Definition at line 1030 of file tcpdf.php.

$linethrough [protected]

line trough state

Since:
2.8.000 (2008-03-19)

Definition at line 890 of file tcpdf.php.

$LineWidth [protected]

Line width in user unit.

Definition at line 323 of file tcpdf.php.

$links = array() [protected]

Array of internal links.

Definition at line 365 of file tcpdf.php.

$lispacer = '' [protected]

Spacer string for LI tags.

Definition at line 780 of file tcpdf.php.

$listcount = array() [protected]

HTML PARSER: array count list items on nested lists.

Definition at line 744 of file tcpdf.php.

$listindent = 0 [protected]

HTML PARSER: indent amount for lists.

Definition at line 756 of file tcpdf.php.

$listindentlevel = 0 [protected]

HTML PARSER: current list indententation level.

Definition at line 762 of file tcpdf.php.

$listnum = 0 [protected]

HTML PARSER: current list nesting level.

Definition at line 750 of file tcpdf.php.

$listordered = array() [protected]

HTML PARSER: array of boolean values, true in case of ordered list (OL), false otherwise.

Definition at line 738 of file tcpdf.php.

$lisymbol = '' [protected]

Symbol used for HTML unordered list items.

Since:
4.0.028 (2008-09-26)

Definition at line 1079 of file tcpdf.php.

$lMargin [protected]

Left margin.

Definition at line 267 of file tcpdf.php.

$maxselcol = array('page' => 0, 'column' => 0) [protected]

Maximum page and column selected.

Since:
5.8.000 (2010-08-11)

Definition at line 1500 of file tcpdf.php.

$n [protected]

Current object number.

Definition at line 177 of file tcpdf.php.

$n_dests [protected]

Object ID for Named Destinations

Since:
5.9.097 (2011-06-23)

Definition at line 1640 of file tcpdf.php.

$n_js [protected]

Javascript counter.

Since:
2.1.002 (2008-02-12)

Definition at line 883 of file tcpdf.php.

$newline = true [protected]

Boolean flag to indicate if a new line is created.

Since:
3.2.000 (2008-07-01)

Definition at line 1016 of file tcpdf.php.

$newpagegroup = array() [protected]

Array of page numbers were a new page group was started (the page numbers are the keys of the array).

Since:
3.0.000 (2008-03-27)

Definition at line 911 of file tcpdf.php.

$num_columns = 1 [protected]

Number of colums.

Since:
4.9.001 (2010-03-28)

Definition at line 1479 of file tcpdf.php.

$numfonts = 0 [protected]

Counts the number of fonts.

Since:
4.5.000 (2009-01-02)

Definition at line 1220 of file tcpdf.php.

$numimages = 0 [protected]

Counts the number of pages.

Since:
4.5.000 (2008-12-31)

Definition at line 1192 of file tcpdf.php.

$numpages = 0 [protected]

Counts the number of pages.

Since:
4.5.000 (2008-12-31)

Definition at line 1178 of file tcpdf.php.

$objcopy [protected]

Cloned copy of the current class object.

Since:
4.5.029 (2009-03-19)

Definition at line 1255 of file tcpdf.php.

$offsets [protected]

Array of object offsets.

Definition at line 183 of file tcpdf.php.

$opencell = true [protected]

Boolean flag to indicate if the border of the cell sides that cross the page should be removed.

Since:
4.2.010 (2008-11-14)

Definition at line 1135 of file tcpdf.php.

$openMarkedContent = false [protected]

Boolean flag to indicate if marked-content sequence is open.

Since:
4.0.013 (2008-07-28)

Definition at line 1058 of file tcpdf.php.

$original_lMargin [protected]

Original left margin value.

Since:
1.53.0.TC013

Definition at line 639 of file tcpdf.php.

$original_rMargin [protected]

Original right margin value.

Since:
1.53.0.TC013

Definition at line 646 of file tcpdf.php.

$OutlineRoot [protected]

Outline root for bookmark.

Since:
2.1.002 (2008-02-12)

Definition at line 867 of file tcpdf.php.

$outlines = array() [protected]

Outlines for bookmark.

Since:
2.1.002 (2008-02-12)

Definition at line 860 of file tcpdf.php.

$overline [protected]

Overlining flag.

Definition at line 403 of file tcpdf.php.

$page [protected]

Current page number.

Definition at line 171 of file tcpdf.php.

$page_obj_id = array() [protected]

ID of page objects.

Since:
4.7.000 (2009-08-29)

Definition at line 1374 of file tcpdf.php.

$page_regions = array() [protected]

Array of no-write regions. ('page' => page number or empy for current page, 'xt' => X top, 'yt' => Y top, 'xb' => X bottom, 'yb' => Y bottom, 'side' => page side 'L' = left or 'R' = right)

Since:
5.9.003 (2010-10-14)

Definition at line 1605 of file tcpdf.php.

$PageAnnots = array() [protected]

Array of Annotations in pages.

Definition at line 359 of file tcpdf.php.

$PageBreakTrigger [protected]

Threshold used to trigger page breaks.

Definition at line 457 of file tcpdf.php.

$pagedim = array() [protected]

Page dimensions.

Definition at line 219 of file tcpdf.php.

$pagegroups = array() [protected]

Array that contains the number of pages in each page group.

Since:
3.0.000 (2008-03-27)

Definition at line 918 of file tcpdf.php.

$pagelen = array() [protected]

Array containing page lengths in bytes.

Since:
4.5.000 (2008-12-31)

Definition at line 1185 of file tcpdf.php.

$PageMode [protected]

A name object specifying how the document should be displayed when opened.

Since:
3.1.000 (2008-06-09)

Definition at line 960 of file tcpdf.php.

$pageopen = array() [protected]

Store the fage status (true when opened, false when closed).

Since:
4.5.000 (2009-01-02)

Definition at line 1241 of file tcpdf.php.

$pages = array() [protected]

Array containing pages.

Definition at line 195 of file tcpdf.php.

$pdfa_mode = false [protected]

If true set the document to PDF/A mode.

Since:
5.9.121 (2011-09-27)

Definition at line 1816 of file tcpdf.php.

$pdflayers = array() [protected]

Array of PDF layers data.

Since:
5.9.102 (2011-07-13)

Definition at line 1626 of file tcpdf.php.

$pdfunit = 'mm' [protected]

Default unit of measure for document.

Since:
5.0.000 (2010-04-22)

Definition at line 1535 of file tcpdf.php.

$PDFVersion = '1.7' [protected]

PDF version.

Since:
1.5.3

Definition at line 608 of file tcpdf.php.

$premode = false [protected]

Boolean flag to indicate if we are inside a PRE tag.

Since:
4.4.001 (2008-12-08)

Definition at line 1149 of file tcpdf.php.

$print_footer = true [protected]

Boolean flag to print/hide page footer.

Definition at line 682 of file tcpdf.php.

$print_header = true [protected]

Boolean flag to print/hide page header.

Definition at line 676 of file tcpdf.php.

$radio_groups = array() [protected]

List of radio group objects IDs.

Since:
4.8.001 (2009-09-09)

Definition at line 1437 of file tcpdf.php.

$radiobutton_groups = array() [protected]

List of radio buttons parent objects.

Since:
4.8.001 (2009-09-09)

Definition at line 1430 of file tcpdf.php.

$rasterize_vector_images = false [protected]

Boolean flag: if true convert vector images (SVG, EPS) to raster image using GD or ImageMagick library.

Since:
5.0.000 (2010-04-26)

Definition at line 1548 of file tcpdf.php.

$re_space = array('p' => '[^\S\xa0]', 'm' => '') [protected]

Array of $re_spaces parts.

Since:
5.5.011 (2010-07-09)

Definition at line 1346 of file tcpdf.php.

$re_spaces = '/[^\S\xa0]/' [protected]

Regular expression used to find blank characters (required for word-wrapping).

Since:
4.6.006 (2009-04-28)

Definition at line 1339 of file tcpdf.php.

$rMargin [protected]

Right margin.

Definition at line 279 of file tcpdf.php.

$rtl = false [protected]

Boolean flag to indicate if the document language is Right-To-Left.

Since:
2.0.000

Definition at line 801 of file tcpdf.php.

$sig_annot_ref = '***SIGANNREF*** 0 R' [protected]

Placemark used during digital signature process.

Since:
4.6.028 (2009-08-25)

Definition at line 1367 of file tcpdf.php.

$sig_obj_id = 0 [protected]

Digital signature object ID.

Since:
4.6.022 (2009-06-23)

Definition at line 1353 of file tcpdf.php.

$sign = false [protected]

Boolean flag to enable document digital signature.

Since:
4.6.005 (2009-04-24)

Definition at line 1304 of file tcpdf.php.

$signature_appearance = array('page' => 1, 'rect' => '0 0 0 0') [protected]

Data for digital signature appearance.

Since:
5.3.011 (2010-06-16)

Definition at line 1325 of file tcpdf.php.

$signature_data = array() [protected]

Digital signature data.

Since:
4.6.005 (2009-04-24)

Definition at line 1311 of file tcpdf.php.

$signature_max_length = 11742 [protected]

Digital signature max length.

Since:
4.6.005 (2009-04-24)

Definition at line 1318 of file tcpdf.php.

$spot_colors = array() [protected]

Array of Spot colors.

Since:
4.0.024 (2008-09-12)

Definition at line 1072 of file tcpdf.php.

$spotcolor = array() [protected]

Array containing spot color names and values.

Since:
5.9.012 (2010-11-11)

Definition at line 1619 of file tcpdf.php.

$start_transaction_page = 0 [protected]

Store page number when startTransaction() is called.

Since:
4.8.006 (2009-09-23)

Definition at line 1451 of file tcpdf.php.

$start_transaction_y = 0 [protected]

Store Y position when startTransaction() is called.

Since:
4.9.001 (2010-03-28)

Definition at line 1458 of file tcpdf.php.

$starting_page_number = 1 [protected]

Starting page number.

Definition at line 523 of file tcpdf.php.

$state [protected]

Current document state.

Definition at line 201 of file tcpdf.php.

$strokecolor [protected]

Current stroke color.

Since:
4.9.008 (2010-04-03)

Definition at line 1528 of file tcpdf.php.

$subject = '' [protected]

Document subject.

Definition at line 499 of file tcpdf.php.

$svgclipid = 0 [protected]

ID of last SVG clipPath.

Since:
5.0.000 (2010-05-02)

Definition at line 1710 of file tcpdf.php.

$svgclipmode = false [protected]

Boolean value true when in SVG clipPath tag.

Since:
5.0.000 (2010-04-26)

Definition at line 1689 of file tcpdf.php.

$svgclippaths = array() [protected]

Array of SVG clipPath commands.

Since:
5.0.000 (2010-05-02)

Definition at line 1696 of file tcpdf.php.

$svgcliptm = array() [protected]

Array of SVG clipPath tranformation matrix.

Since:
5.8.022 (2010-08-31)

Definition at line 1703 of file tcpdf.php.

$svgdefs = array() [protected]

Array of SVG defs.

Since:
5.0.000 (2010-05-02)

Definition at line 1682 of file tcpdf.php.

$svgdefsmode = false [protected]

Boolean value true when in SVG defs group.

Since:
5.0.000 (2010-05-02)

Definition at line 1675 of file tcpdf.php.

$svgdir = '' [protected]

Directory used for the last SVG image.

Since:
5.0.000 (2010-05-05)

Definition at line 1647 of file tcpdf.php.

$svggradientid = 0 [protected]

ID of last SVG gradient.

Since:
5.0.000 (2010-05-02)

Definition at line 1668 of file tcpdf.php.

$svggradients = array() [protected]

Array of SVG gradients.

Since:
5.0.000 (2010-05-02)

Definition at line 1661 of file tcpdf.php.

$svginheritprop = array('clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cursor', 'direction', 'fill', 'fill-opacity', 'fill-rule', 'font', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'image-rendering', 'kerning', 'letter-spacing', 'marker', 'marker-end', 'marker-mid', 'marker-start', 'pointer-events', 'shape-rendering', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-rendering', 'visibility', 'word-spacing', 'writing-mode') [protected]

Array of hinheritable SVG properties.

Since:
5.0.000 (2010-05-02)

Definition at line 1731 of file tcpdf.php.

$svgstyles [protected]

Array of SVG properties.

Since:
5.0.000 (2010-05-02)

Definition at line 1738 of file tcpdf.php.

$svgtext = '' [protected]

SVG text.

Since:
5.0.000 (2010-05-02)

Definition at line 1717 of file tcpdf.php.

$svgtextmode = array() [protected]

SVG text properties.

Since:
5.8.013 (2010-08-23)

Definition at line 1724 of file tcpdf.php.

$svgunit = 'px' [protected]

Deafult unit of measure for SVG.

Since:
5.0.000 (2010-05-02)

Definition at line 1654 of file tcpdf.php.

$tagvspaces = array() [protected]

Array used for custom vertical spaces for HTML tags.

Since:
4.2.001 (2008-10-30)

Definition at line 1121 of file tcpdf.php.

$tempfontsize = 10 [protected]

Temporary font size in points.

Definition at line 774 of file tcpdf.php.

$TextColor [protected]

Commands for text color.

Definition at line 439 of file tcpdf.php.

$textindent = 0 [protected]

Text indentation value (used for text-indent CSS attribute).

Since:
4.8.006 (2009-09-23)

Definition at line 1444 of file tcpdf.php.

$textrendermode = 0 [protected]

Text rendering mode: 0 = Fill text; 1 = Stroke text; 2 = Fill, then stroke text; 3 = Neither fill nor stroke text (invisible); 4 = Fill text and add to path for clipping; 5 = Stroke text and add to path for clipping; 6 = Fill, then stroke text and add to path for clipping; 7 = Add text to path for clipping.

Since:
4.9.008 (2010-04-03)

Definition at line 1514 of file tcpdf.php.

$textstrokewidth = 0 [protected]

Text stroke width in doc units.

Since:
4.9.008 (2010-04-03)

Definition at line 1521 of file tcpdf.php.

$thead = '' [protected]

Table header content to be repeated on each new page.

Since:
4.5.030 (2009-03-20)

Definition at line 1269 of file tcpdf.php.

$theadMargins = array() [protected]

Margins used for table header.

Since:
4.5.030 (2009-03-20)

Definition at line 1276 of file tcpdf.php.

$title = '' [protected]

Document title.

Definition at line 493 of file tcpdf.php.

$tMargin [protected]

Top margin.

Definition at line 273 of file tcpdf.php.

$tmprtl = false [protected]

Boolean flag used to force RTL or LTR string direction.

Since:
2.0.000

Definition at line 808 of file tcpdf.php.

$tocpage = false [protected]

Boolean flag true when we are on TOC (Table Of Content) page.

Definition at line 1541 of file tcpdf.php.

$transfmatrix = array() [protected]

Array of transformation matrix.

Since:
4.2.000 (2008-10-29)

Definition at line 1093 of file tcpdf.php.

$transfmatrix_key = 0 [protected]

Current key for transformation matrix.

Since:
4.8.005 (2009-09-17)

Definition at line 1100 of file tcpdf.php.

$transfmrk = array() [protected]

Array used to store positions of graphics transformation blocks inside the page buffer. keys are the page numbers

Since:
4.4.002 (2008-12-09)

Definition at line 1157 of file tcpdf.php.

$underline [protected]

Underlining flag.

Definition at line 397 of file tcpdf.php.

$unicode [protected]

Object containing unicode data.

Since:
5.9.004 (2010-10-18)
Author:
Nicola Asuni

Definition at line 593 of file tcpdf.php.

$ur = array() [protected]

Array with additional document-wide usage rights for the document.

Since:
5.8.014 (2010-08-23)

Definition at line 897 of file tcpdf.php.

$viewer_preferences [protected]

PDF viewer preferences.

Since:
3.1.000 (2008-06-09)

Definition at line 953 of file tcpdf.php.

$w [protected]

Current width of page in user unit.

Definition at line 255 of file tcpdf.php.

$webcolor = array() [protected]

Array containing HTML color names and values.

Since:
5.9.004 (2010-10-18)

Definition at line 1612 of file tcpdf.php.

$wPt [protected]

Current width of page in points.

Definition at line 243 of file tcpdf.php.

$x [protected]

Current horizontal position in user unit for cell positioning.

Definition at line 305 of file tcpdf.php.

$xobjects = array() [protected]

Array of XObjects.

Since:
5.8.014 (2010-08-23)

Definition at line 1569 of file tcpdf.php.

$xobjid = '' [protected]

Current XObject ID.

Since:
5.8.017 (2010-08-24)

Definition at line 1583 of file tcpdf.php.

$y [protected]

Current vertical position in user unit for cell positioning.

Definition at line 311 of file tcpdf.php.

$ZoomMode [protected]

Zoom display mode.

Definition at line 475 of file tcpdf.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations