Class DefaultInvoicePdf
TCPDF Wrapper. Extends the TCPDF library to make it easier to use for building invoices.
- TCPDF
-
TcpdfWrapper
-
DefaultInvoicePdf
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/invoice_templates/default_invoice/default_invoice_pdf.php
Methods summary
public
|
#
__construct( string $orientation = 'P', string $unit = 'mm', mixed $format = 'A4', boolean $unicode = true, boolean $encoding = 'UTF-8', String $diskcache = false, mixed $font = null )
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). |
public
|
|
public
|
|
public
|
|
protected
string
|
Methods inherited from TcpdfWrapper
Methods inherited from TCPDF
AcceptPageBreak(),
AddFont(),
AddLink(),
AddPage(),
AddSpotColor(),
AliasNbPages(),
AliasNumPage(),
Annotation(),
Arrow(),
Bookmark(),
Button(),
Cell(),
CheckBox(),
Circle(),
Clip(),
Close(),
ComboBox(),
CoonsPatchMesh(),
Curve(),
Ellipse(),
Error(),
GetAbsX(),
GetArrStringWidth(),
GetCharWidth(),
GetLineWidth(),
GetNumChars(),
GetStringWidth(),
GetX(),
GetY(),
Gradient(),
Image(),
ImageEps(),
ImagePngAlpha(),
IncludeJS(),
Line(),
LinearGradient(),
Link(),
ListBox(),
Ln(),
MirrorH(),
MirrorL(),
MirrorP(),
MirrorV(),
MultiCell(),
Open(),
Output(),
PageNo(),
PageNoFormatted(),
PieSector(),
PolyLine(),
Polycurve(),
Polygon(),
RadialGradient(),
RadioButton(),
Rect(),
RegularPolygon(),
Rotate(),
RoundedRect(),
Scale(),
ScaleX(),
ScaleXY(),
ScaleY(),
SetAuthor(),
SetAutoPageBreak(),
SetBooklet(),
SetCellPadding(),
SetCompression(),
SetCreator(),
SetDefaultMonospacedFont(),
SetDisplayMode(),
SetDrawColor(),
SetDrawColorArray(),
SetDrawSpotColor(),
SetFillColor(),
SetFillColorArray(),
SetFillSpotColor(),
SetFont(),
SetFontSize(),
SetKeywords(),
SetLeftMargin(),
SetLineStyle(),
SetLineWidth(),
SetLink(),
SetMargins(),
SetProtection(),
SetRightMargin(),
SetSubject(),
SetTextColor(),
SetTextColorArray(),
SetTextSpotColor(),
SetTitle(),
SetTopMargin(),
SetX(),
SetXY(),
SetY(),
Skew(),
SkewX(),
SkewY(),
StarPolygon(),
StartTransform(),
StopTransform(),
Text(),
TextField(),
Transform(),
Translate(),
TranslateX(),
TranslateY(),
UTF8ArrSubString(),
UTF8ArrToLatin1(),
UTF8ArrayToUniArray(),
UTF8StringToArray(),
UTF8ToLatin1(),
UTF8ToUTF16BE(),
UniArrSubString(),
Write(),
_JScolor(),
_Ovalue(),
_RC4(),
_Uvalue(),
__destruct(),
_addfield(),
_beginpage(),
_dataannobjstring(),
_datastring(),
_datestring(),
_destroy(),
_dochecks(),
_dolinethrough(),
_dolinethroughw(),
_dounderline(),
_dounderlinew(),
_enddoc(),
_endpage(),
_escape(),
_escapetext(),
_freadint(),
_generateencryptionkey(),
_getfontpath(),
_md5_16(),
_newobj(),
_objectkey(),
_out(),
_outCurve(),
_outLine(),
_outPoint(),
_outRect(),
_outarc(),
_parsejpeg(),
_parsepng(),
_putAPXObject(),
_putEmbeddedFiles(),
_putannotsobjs(),
_putannotsrefs(),
_putbookmarks(),
_putcatalog(),
_putcidfont0(),
_putencryption(),
_putextgstates(),
_putfonts(),
_putfontwidths(),
_putheader(),
_putimages(),
_putinfo(),
_putjavascript(),
_putocg(),
_putpages(),
_putresourcedict(),
_putresources(),
_putshaders(),
_putsignature(),
_putspotcolors(),
_putstream(),
_puttrailer(),
_puttruetypeunicode(),
_putviewerpreferences(),
_putxobjectdict(),
_textstring(),
_toJPEG(),
addExtGState(),
addHTMLVertSpace(),
addHtmlLink(),
addJavascriptObject(),
addTOC(),
arrUTF8ToUTF16BE(),
checkPageBreak(),
closeHTMLTagHandler(),
colorRegistrationBar(),
commitTransaction(),
convertHTMLColorToDec(),
cropMark(),
deletePage(),
empty_string(),
endPage(),
formatPageNumber(),
formatTOCPageNumber(),
getAliasNbPages(),
getAliasNumPage(),
getAnnotOptFromJSProp(),
getBarcode(),
getBorderMode(),
getBreakMargin(),
getBuffer(),
getCellCode(),
getCellHeightRatio(),
getFontAscent(),
getFontBuffer(),
getFontDescent(),
getFontFamily(),
getFontSize(),
getFontSizePt(),
getFontStyle(),
getFontsList(),
getFooterFont(),
getFooterMargin(),
getFormDefaultProp(),
getGDgamma(),
getGraphicVars(),
getGroupPageNo(),
getGroupPageNoFormatted(),
getHTMLUnitToUnits(),
getHeaderData(),
getHeaderFont(),
getHeaderMargin(),
getHtmlDomArray(),
getImageBuffer(),
getImageFileType(),
getImageRBX(),
getImageRBY(),
getImageScale(),
getLastH(),
getMargins(),
getNumLines(),
getNumPages(),
getObjFilename(),
getOriginalMargins(),
getPDFData(),
getPage(),
getPageBuffer(),
getPageDimensions(),
getPageGroupAlias(),
getPageHeight(),
getPageNumGroupAlias(),
getPageWidth(),
getRTL(),
getRemainingWidth(),
getScaleFactor(),
getSpaceString(),
get_mqr(),
intToRoman(),
isRTLTextDir(),
lastPage(),
movePage(),
objclone(),
openHTMLTagHandler(),
pixelsToUnits(),
putHtmlListBullet(),
readDiskCache(),
registrationMark(),
removeSHY(),
revstrpos(),
rfread(),
rollbackTransaction(),
selectColumn(),
setAlpha(),
setBarcode(),
setBuffer(),
setCellHeightRatio(),
setColumnsArray(),
setContentMark(),
setDefaultTableColumns(),
setEqualColumns(),
setExtGState(),
setFontBuffer(),
setFontSubBuffer(),
setFooter(),
setFooterFont(),
setFooterMargin(),
setFormDefaultProp(),
setGraphicVars(),
setHeader(),
setHeaderData(),
setHeaderFont(),
setHeaderMargin(),
setHtmlLinksStyle(),
setHtmlVSpace(),
setImageBuffer(),
setImageScale(),
setImageSubBuffer(),
setJPEGQuality(),
setLIsymbol(),
setLanguageArray(),
setLastH(),
setListIndentWidth(),
setOpenCell(),
setPDFVersion(),
setPage(),
setPageBuffer(),
setPageFormat(),
setPageMark(),
setPageOrientation(),
setPageUnit(),
setPrintFooter(),
setPrintHeader(),
setRTL(),
setSignature(),
setSpacesRE(),
setTableHeader(),
setTempRTL(),
setUserRights(),
setViewerPreferences(),
setVisibility(),
set_mqr(),
startPage(),
startPageGroup(),
startTransaction(),
swapMargins(),
unhtmlentities(),
unichr(),
utf8Bidi(),
utf8StrArrRev(),
utf8StrRev(),
write1DBarcode(),
write2DBarcode(),
writeBarcode(),
writeDiskCache(),
writeHTML(),
writeHTMLCell()
Magic methods summary
Properties summary
public
array
|
$meta |
#
An array of meta data for this invoice |
public
|
$CurrencyFormat |
#
The CurrencyFormat object used to format currency values |
public
|
$Date |
#
The Date object used to format date values |
public
array
|
$invoice |
#
An array of invoice data for this invoice |
public
boolean
|
$include_address |
Properties inherited from TCPDF
$AliasNbPages,
$AliasNumPage,
$AutoPageBreak,
$ColorFlag,
$CoreFonts,
$CurOrientation,
$CurrentFont,
$DrawColor,
$FillColor,
$FontAscent,
$FontDescent,
$FontFamily,
$FontFiles,
$FontSize,
$FontSizePt,
$FontStyle,
$HREF,
$InFooter,
$LayoutMode,
$LineWidth,
$OutlineRoot,
$Ovalue,
$PDFVersion,
$PageAnnots,
$PageBreakTrigger,
$PageMode,
$Pvalue,
$TextColor,
$Uvalue,
$ZoomMode,
$annot_obj_id,
$annotation_fonts,
$annots_start_obj_id,
$apxo_obj_id,
$apxo_start_obj_id,
$author,
$bMargin,
$barcode,
$bgcolor,
$booklet,
$buffer,
$bufferlen,
$byterange_string,
$cMargin,
$cache_UTF8StringToArray,
$cache_file_length,
$cache_maxsize_UTF8StringToArray,
$cache_size_UTF8StringToArray,
$cell_height_ratio,
$cntmrk,
$column_start_page,
$columns,
$compress,
$creator,
$curr_annot_obj_id,
$current_column,
$currpagegroup,
$customlistindent,
$default_form_prop,
$default_monospaced_font,
$default_table_columns,
$diffs,
$diskcache,
$dpi,
$embedded_start_obj_id,
$embeddedfiles,
$enc_obj_id,
$encoding,
$encrypted,
$encryption_key,
$endlinex,
$epsmarker,
$extgstates,
$feps,
$fgcolor,
$fhPt,
$font_obj_ids,
$fontkeys,
$fontlist,
$fonts,
$footer_font,
$footer_margin,
$footerlen,
$footerpos,
$form_action,
$form_enctype,
$form_mode,
$form_obj_id,
$fwPt,
$gradients,
$h,
$hPt,
$header_font,
$header_logo,
$header_logo_width,
$header_margin,
$header_string,
$header_title,
$htmlLinkColorArray,
$htmlLinkFontStyle,
$htmlvspace,
$imagekeys,
$images,
$img_rb_x,
$img_rb_y,
$imgscale,
$internal_encoding,
$inthead,
$intmrk,
$isunicode,
$javascript,
$jpeg_quality,
$js_obj_id,
$js_objects,
$js_start_obj_id,
$k,
$keywords,
$l,
$lMargin,
$last_rc4_key,
$last_rc4_key_c,
$lasth,
$linestyleCap,
$linestyleDash,
$linestyleJoin,
$linestyleWidth,
$linethrough,
$links,
$lispacer,
$listcount,
$listindent,
$listnum,
$listordered,
$lisymbol,
$n,
$n_js,
$n_ocg_print,
$n_ocg_view,
$newline,
$newpagegroup,
$num_columns,
$numfonts,
$numimages,
$numpages,
$objcopy,
$offsets,
$oldcMargin,
$openMarkedContent,
$opencell,
$original_lMargin,
$original_rMargin,
$outlines,
$padding,
$page,
$page_obj_id,
$pagedim,
$pagegroups,
$pagelen,
$pageopen,
$pages,
$premode,
$print_footer,
$print_header,
$rMargin,
$radio_groups,
$radiobutton_groups,
$re_spaces,
$rtl,
$sig_annot_ref,
$sig_obj_id,
$sign,
$signature_data,
$signature_max_length,
$spot_colors,
$start_transaction_page,
$start_transaction_y,
$state,
$subject,
$tMargin,
$tagvspaces,
$tempfontsize,
$textindent,
$thead,
$theadMargins,
$title,
$tmprtl,
$transfmatrix,
$transfmatrix_key,
$transfmrk,
$underline,
$ur,
$ur_annots,
$ur_document,
$ur_form,
$ur_signature,
$viewer_preferences,
$visibility,
$w,
$wPt,
$x,
$y