TCPDF 【初心者向けWordPressブログ始め方!完全解説】

TCPDF
TCPDF

PHPでPDFを出力したいときにおススメなのが今回紹介するTCPDFです。このTCPDFは2002年に公開されたオープンソースソフトウェアです。PDF出力ができるPHPライブラリは他にもいくつかありますが、TCPDFが機能が豊富で実績があるのでおススメです。

TCPDF  ロリポップ ConoHa WING

一般的な リナックスコマンドの一覧です

名前戻り値メソッド
__construct__construct( $orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8', $diskcache = false, $pdfa = false )
cropMarkcropMark( $x, $y, $w, $h, $type = 'T,R,B,L', $color = array(100,100,100,100,'All') )
CurveCurve( $x0, $y0, $x1, $y1, $x2, $y2, $x3, $y3, $style = '', $line_style = array(), $fill_color = array() )
deletePageTRUEdeletePage( $page )
EllipseEllipse( $x0, $y0, $rx, $ry = '', $angle = 0, $astart = 0, $afinish = 360, $style = '', $line_style = array(), $fill_color = array(), $nc = 2 )
endLayerendLayer( )
endPageendPage( $tocpage = false )
endTemplateintegerendTemplate( )
endTOCPageendTOCPage( )
ErrorError( $msg )
fixHTMLCodestringfixHTMLCode( $html, $default_css = '', $tagvs = '', $tidy_options = '' )
FooterFooter( )
getAbsFontMeasurefloatgetAbsFontMeasure( $s )
GetAbsXfloatGetAbsX( )
getAliasNbPagesstringgetAliasNbPages( )
getAliasNumPagestringgetAliasNumPage( )
getAliasRightShiftstringgetAliasRightShift( )
getAllSpotColorsarraygetAllSpotColors( )
getAlphaarray.getAlpha( )
GetArrStringWidthmixedGetArrStringWidth( $sa, $fontname = '', $fontstyle = '', $fontsize = 0, $getarray = false )
getAutoPageBreakbooleangetAutoPageBreak( )
getBarcodestringgetBarcode( )
getBreakMarginintegergetBreakMargin( $pagenum = '' )
getCellHeightgetCellHeight( $fontsize, $padding = TRUE )
getCellHeightRatiogetCellHeightRatio( )
getCellMarginsarraygetCellMargins( )
getCellPaddingsarraygetCellPaddings( )
getCharBBoxmixedgetCharBBox( $char )
GetCharWidthfloatGetCharWidth( $char, $notlast = true )
getColumnintegergetColumn( )
getCSSBorderMarginarraygetCSSBorderMargin( $cssbspace, $width = 0 )
getCSSMarginarraygetCSSMargin( $cssmargin, $width = 0 )
getCSSPaddingarraygetCSSPadding( $csspadding, $width = 0 )
getDestinationarraygetDestination( )
getDocCreationTimestampintgetDocCreationTimestamp( )
getDocModificationTimestampintgetDocModificationTimestamp( )
getFontAscentintegergetFontAscent( $font, $style = '', $size = 0 )
getFontBBoxarraygetFontBBox( )
getFontDescentintegergetFontDescent( $font, $style = '', $size = 0 )
getFontFamilystringgetFontFamily( )
getFontFamilyNamestringgetFontFamilyName( $fontfamily )
getFontSizecurrentgetFontSize( )
getFontSizePtcurrentgetFontSizePt( )
getFontSpacingintegergetFontSpacing( )
getFontStretchingfloatgetFontStretching( )
getFontStylestringgetFontStyle( )
getFontSubsettingbooleangetFontSubsetting( )
getFooterFontarraygetFooterFont( )
getFooterMarginfloatgetFooterMargin( )
getFormDefaultProparraygetFormDefaultProp( )
getGroupPageNocurrentgetGroupPageNo( )
getGroupPageNoFormattedgetGroupPageNoFormatted( )
getHeaderDataarraygetHeaderData( )
getHeaderFontarraygetHeaderFont( )
getHeaderMarginfloatgetHeaderMargin( )
getHTMLFontUnitsfloatgetHTMLFontUnits( $val, $refsize = 12, $parent_size = 12, $defaultunit = 'pt' )
getHTMLUnitToUnitsfloatgetHTMLUnitToUnits( $htmlval, $refsize = 1, $defaultunit = 'px', $points = false )
getImageRBXfloatgetImageRBX( )
getImageRBYfloatgetImageRBY( )
getImageScalefloatgetImageScale( )
getLastHlastgetLastH( )
GetLineWidthintegerGetLineWidth( )
getMarginsarraygetMargins( )
getNumberOfColumnsintegergetNumberOfColumns( )
GetNumCharsintegerGetNumChars( $s )
getNumLinesfloatgetNumLines( $txt, $w = 0, $reseth = false, $autopadding = true, $cellpadding = '', $border = 0 )
getNumPagesintegergetNumPages( )
getOriginalMarginsarraygetOriginalMargins( )
getOverprintarray.getOverprint( )
getPageintegergetPage( )
getPageDimensionsarraygetPageDimensions( $pagenum = '' )
getPageGroupAliasaliasgetPageGroupAlias( )
getPageHeightintegergetPageHeight( $pagenum = '' )
getPageNumGroupAliasaliasgetPageNumGroupAlias( )
getPageRegionsarraygetPageRegions( )
getPageWidthintegergetPageWidth( $pagenum = '' )
getPDFDatagetPDFData( )
getRawCharWidthfloatgetRawCharWidth( $char )
__destruct__destruct( )
getRTLbooleangetRTL( )
getScaleFactorintegergetScaleFactor( )
getStringHeightfloatgetStringHeight( $w, $txt, $reseth = false, $autopadding = true, $cellpadding = '', $border = 0 )
GetStringWidthmixedGetStringWidth( $s, $fontname = '', $fontstyle = '', $fontsize = 0, $getarray = false )
getTextShadowArraygetTextShadow( )
GetXfloatGetX( )
GetYfloatGetY( )
GradientGradient( $type, $coords, $stops, $background = array(), $antialias = false )
HeaderHeader( )
hyphenateTextarrayhyphenateText( $text, $patterns, $dictionary = array(), $leftmin = 1, $rightmin = 2, $charmin = 1, $charmax = 8 )
ImageimageImage( $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() )
ImageEpsImageEps( $file, $x = '', $y = '', $w = 0, $h = 0, $link = '', $useBoundingBox = true, $align = '', $palign = '', $border = 0, $fitonpage = false, $fixoutvals = false )
ImageSVGImageSVG( $file, $x = '', $y = '', $w = 0, $h = 0, $link = '', $align = '', $palign = '', $border = 0, $fitonpage = false )
IncludeJSIncludeJS( $script )
isCharDefinedbooleanisCharDefined( $char, $font = '', $style = '' )
isRTLTextDirbooleanisRTLTextDir( )
isUnicodeFontTRUEisUnicodeFont( )
lastPagelastPage( $resetmargins = false )
LineLine( $x1, $y1, $x2, $y2, $style = array() )
LinearGradientLinearGradient( $x, $y, $w, $h, $col1 = array(), $col2 = array(), $coords = array(0,0,1,0) )
LinkLink( $x, $y, $w, $h, $link, $spaces = 0 )
ListBoxListBox( $name, $w, $h, $values, $prop = array(), $opt = array(), $x = '', $y = '', $js = false )
LnLn( $h = '', $cell = false )
MirrorHMirrorH( $x = '' )
MirrorLMirrorL( $angle = 0, $x = '', $y = '' )
MirrorPMirrorP( $x = '', $y = '' )
MirrorVMirrorV( $y = '' )
movePageTRUEmovePage( $frompage, $topage )
MultiCellintegerMultiCell( $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 )
OpenOpen( )
OutputstringOutput( $name = 'doc.pdf', $dest = 'I' )
PageNointegerPageNo( )
PageNoFormattedPageNoFormatted( )
PieSectorPieSector( $xc, $yc, $r, $a, $b, $style = 'FD', $cw = true, $o = 90 )
PieSectorXYPieSectorXY( $xc, $yc, $rx, $ry, $a, $b, $style = 'FD', $cw = false, $o = 0, $nc = 2 )
pixelsToUnitsfloatpixelsToUnits( $px )
PolycurvePolycurve( $x0, $y0, $segments, $style = '', $line_style = array(), $fill_color = array() )
PolygonPolygon( $p, $style = '', $line_style = array(), $fill_color = array(), $closed = true )
PolyLinePolyLine( $p, $style = '', $line_style = array(), $fill_color = array() )
printTemplateprintTemplate( $id, $x = '', $y = '', $w = 0, $h = 0, $align = '', $palign = '', $fitonpage = false )
RadialGradientRadialGradient( $x, $y, $w, $h, $col1 = array(), $col2 = array(), $coords = array(0.5,0.5,0.5,0.5,1) )
RadioButtonRadioButton( $name, $w, $prop = array(), $opt = array(), $onvalue = 'On', $checked = false, $x = '', $y = '', $js = false )
RectRect( $x, $y, $w, $h, $style = '', $border_style = array(), $fill_color = array() )
registrationMarkregistrationMark( $x, $y, $r, $double = false, $cola = array(100,100,100,100,'All'), $colb = array(0,0,0,0,'None') )
registrationMarkCMYKregistrationMarkCMYK( $x, $y, $r )
RegularPolygonRegularPolygon( $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() )
removePageRegionremovePageRegion( $key )
replaceMissingCharsstringreplaceMissingChars( $text, $font = '', $style = '', $subs = array() )
resetColumnsresetColumns( )
resetHeaderTemplateresetHeaderTemplate( )
resetLastHresetLastH( )
rollbackTransactionTCPDFrollbackTransaction( $self = false )
RotateRotate( $angle, $x = '', $y = '' )
RoundedRectRoundedRect( $x, $y, $w, $h, $r, $round_corner = '1111', $style = '', $border_style = array(), $fill_color = array() )
RoundedRectXYRoundedRectXY( $x, $y, $w, $h, $rx, $ry, $round_corner = '1111', $style = '', $border_style = array(), $fill_color = array() )
ScaleScale( $s_x, $s_y, $x = '', $y = '' )
ScaleXScaleX( $s_x, $x = '', $y = '' )
ScaleXYScaleXY( $s, $x = '', $y = '' )
ScaleYScaleY( $s_y, $x = '', $y = '' )
selectColumnselectColumn( $col = '' )
serializeTCPDFtagParametersstringserializeTCPDFtagParameters( $data )
SetAbsXSetAbsX( $x )
SetAbsXYSetAbsXY( $x, $y )
SetAbsYSetAbsY( $y )
setAlphasetAlpha( $stroking = 1, $bm = 'Normal', $nonstroking = '', $ais = false )
SetAuthorSetAuthor( $author )
SetAutoPageBreakSetAutoPageBreak( $auto, $margin = 0 )
setBarcodesetBarcode( $bc = '' )
SetBookletSetBooklet( $booklet = true, $inner = -1, $outer = -1 )
setBookmarksetBookmark( $txt, $level = 0, $y = -1, $page = '', $style = '', $color = array(0,0,0), $x = -1, $link = '' )
setCellHeightRatiosetCellHeightRatio( $h )
setCellMarginssetCellMargins( $left = '', $top = '', $right = '', $bottom = '' )
SetCellPaddingSetCellPadding( $pad )
setCellPaddingssetCellPaddings( $left = '', $top = '', $right = '', $bottom = '' )
setColorstringsetColor( $type, $col1 = 0, $col2 = -1, $col3 = -1, $col4 = -1, $ret = false, $name = '' )
setColorArraystringsetColorArray( $type, $color, $ret = false )
setColumnsArraysetColumnsArray( $columns )
SetCompressionSetCompression( $compress = true )
SetCreatorSetCreator( $creator )
SetDefaultMonospacedFontSetDefaultMonospacedFont( $font )
setDefaultTableColumnssetDefaultTableColumns( $cols = 4 )
setDestinationstringsetDestination( $name, $y = -1, $page = '', $x = -1 )
SetDisplayModeSetDisplayMode( $zoom, $layout = 'SinglePage', $mode = 'UseNone' )
setDocCreationTimestampsetDocCreationTimestamp( $time )
SetDocInfoUnicodeSetDocInfoUnicode( $unicode = true )
setDocModificationTimestampsetDocModificationTimestamp( $time )
SetDrawColorstringSetDrawColor( $col1 = 0, $col2 = -1, $col3 = -1, $col4 = -1, $ret = false, $name = '' )
SetDrawColorArraystringSetDrawColorArray( $color, $ret = false )
SetDrawSpotColorSetDrawSpotColor( $name, $tint = 100 )
setEqualColumnssetEqualColumns( $numcols = 0, $width = 0, $y = '' )
setExtraXMPsetExtraXMP( $xmp )
SetFillColorstringSetFillColor( $col1 = 0, $col2 = -1, $col3 = -1, $col4 = -1, $ret = false, $name = '' )
SetFillColorArraySetFillColorArray( $color, $ret = false )
SetFillSpotColorSetFillSpotColor( $name, $tint = 100 )
SetFontSetFont( $family, $style = '', $size = null, $fontfile = '', $subset = 'default', $out = true )
SetFontSizeSetFontSize( $size, $out = true )
setFontSpacingsetFontSpacing( $spacing = 0 )
setFontStretchingsetFontStretching( $perc = 100 )
setFontSubsettingsetFontSubsetting( $enable = true )
setFooterDatasetFooterData( $tc = array(0,0,0), $lc = array(0,0,0) )
setFooterFontsetFooterFont( $font )
setFooterMarginsetFooterMargin( $fm = 10 )
setFormDefaultPropsetFormDefaultProp( $prop = array() )
setHeaderDatasetHeaderData( $ln = '', $lw = 0, $ht = '', $hs = '', $tc = array(0,0,0), $lc = array(0,0,0) )
setHeaderFontsetHeaderFont( $font )
setHeaderMarginsetHeaderMargin( $hm = 10 )
setHeaderTemplateAutoresetsetHeaderTemplateAutoreset( $val = true )
setHtmlLinksStylesetHtmlLinksStyle( $color = array(0,0,255), $fontstyle = 'U' )
setHtmlVSpacesetHtmlVSpace( $tagvs )
setImageScalesetImageScale( $scale )
setJPEGQualitysetJPEGQuality( $quality )
SetKeywordsSetKeywords( $keywords )
setLanguageArraysetLanguageArray( $language )
setLastHsetLastH( $h )
SetLeftMarginSetLeftMargin( $margin )
SetLineStylestringSetLineStyle( $style, $ret = false )
SetLineWidthSetLineWidth( $width )
SetLinkSetLink( $link, $y = 0, $page = -1 )
setListIndentWidthsetListIndentWidth( $width )
setLIsymbolsetLIsymbol( $symbol = '!' )
SetMarginsSetMargins( $left, $top, $right = -1, $keepmargins = false )
setOpenCellsetOpenCell( $isopen )
setOverprintsetOverprint( $stroking = true, $nonstroking = '', $mode = 0 )
setPagesetPage( $pnum, $resetmargins = false )
setPageMarksetPageMark( )
setPageOrientationsetPageOrientation( $orientation, $autopagebreak = '', $bottommargin = '' )
setPageRegionssetPageRegions( $regions = array() )
setPageUnitsetPageUnit( $unit )
setPDFVersionsetPDFVersion( $version = '1.7' )
setPrintFootersetPrintFooter( $val = true )
setPrintHeadersetPrintHeader( $val = true )
SetProtectionSetProtection( $permissions = array('print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high'), $user_pass = '', $owner_pass = null, $mode = 0, $pubkeys = null )
setRasterizeVectorImagessetRasterizeVectorImages( $mode )
SetRightMarginSetRightMargin( $margin )
setRTLsetRTL( $enable, $resetx = true )
setSignaturesetSignature( $signing_cert = '', $private_key = '', $private_key_password = '', $extracerts = '', $cert_type = 2, $info = array(), $approval = '' )
setSignatureAppearancesetSignatureAppearance( $x = 0, $y = 0, $w = 0, $h = 0, $page = -1, $name = '' )
setSpacesREsetSpacesRE( $re = '/[^Sxa0]/' )
setSpotColorstringsetSpotColor( $type, $name, $tint = 100 )
setSRGBmodesetSRGBmode( $mode = false )
setStartingPageNumbersetStartingPageNumber( $num = 1 )
SetSubjectSetSubject( $subject )
setTempRTLsetTempRTL( $mode )
SetTextColorstringSetTextColor( $col1 = 0, $col2 = -1, $col3 = -1, $col4 = -1, $ret = false, $name = '' )
SetTextColorArraySetTextColorArray( $color, $ret = false )
setTextRenderingModesetTextRenderingMode( $stroke = 0, $fill = true, $clip = false )
setTextShadowsetTextShadow( $params = array('enabled'=>false, 'depth_w'=>0, 'depth_h'=>0, 'color'=>false, 'opacity'=>1, 'blend_mode'=>'Normal') )
SetTextSpotColorSetTextSpotColor( $name, $tint = 100 )
setTimeStampsetTimeStamp( $tsa_host = '', $tsa_username = '', $tsa_password = '', $tsa_cert = '' )
SetTitleSetTitle( $title )
SetTopMarginSetTopMargin( $margin )
setViewerPreferencessetViewerPreferences( $preferences )
setVisibilitysetVisibility( $v )
SetXSetX( $x, $rtloff = false )
SetXYSetXY( $x, $y, $rtloff = false )
SetYSetY( $y, $resetx = true, $rtloff = false )
SkewSkew( $angle_x, $angle_y, $x = '', $y = '' )
SkewXSkewX( $angle_x, $x = '', $y = '' )
SkewYSkewY( $angle_y, $x = '', $y = '' )
StarPolygonStarPolygon( $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() )
startLayerstartLayer( $name = '', $print = true, $view = true, $lock = true )
startPagestartPage( $orientation = '', $format = '', $tocpage = false )
startPageGroupstartPageGroup( $page = '' )
startTemplateintegerstartTemplate( $w = 0, $h = 0, $group = false )
startTransactionstartTransaction( )
StartTransformStartTransform( )
StopTransformStopTransform( )
stringLeftTrimleftstringLeftTrim( $str, $replace = '' )
stringRightTrimrightstringRightTrim( $str, $replace = '' )
stringTrimtrimmedstringTrim( $str, $replace = '' )
TextText( $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 )
TextFieldTextField( $name, $w, $h, $prop = array(), $opt = array(), $x = '', $y = '', $js = false )
TranslateTranslate( $t_x, $t_y )
TranslateXTranslateX( $t_x )
TranslateYTranslateY( $t_y )
unhtmlentitiesstringunhtmlentities( $text_to_convert )
WritemixedWrite( $h, $txt, $link = '', $fill = false, $align = '', $ln = false, $stretch = 0, $firstline = false, $firstblock = false, $maxh = 0, $wadj = 0, $margin = '' )
write1DBarcodewrite1DBarcode( $code, $type, $x = '', $y = '', $w = '', $h = '', $xres = '', $style = array(), $align = '' )
write2DBarcodewrite2DBarcode( $code, $type, $x = '', $y = '', $w = '', $h = '', $style = array(), $align = '', $distort = false )
writeHTMLwriteHTML( $html, $ln = true, $fill = false, $reseth = false, $cell = false, $align = '' )
writeHTMLCellwriteHTMLCell( $w, $h, $x, $y, $html = '', $border = 0, $ln = 0, $fill = false, $reseth = true, $align = '', $autopadding = true )
_putshaders_putshaders( )
AcceptPageBreakbooleanAcceptPageBreak( )
addEmptySignatureAppearanceaddEmptySignatureAppearance( $x = 0, $y = 0, $w = 0, $h = 0, $page = -1, $name = '' )
AddFontarrayAddFont( $family, $style = '', $fontfile = '', $subset = 'default' )
_destroy_destroy( $destroyall = false, $preserve_objcopy = false )
addHtmlLinktheaddHtmlLink( $url, $name, $fill = false, $firstline = false, $color = '', $style = -1, $firstblock = false )
addHTMLTOCaddHTMLTOC( $page = '', $toc_name = 'TOC', $templates = array(), $correct_align = true, $style = '', $color = array(0,0,0) )
addJavascriptObjectintegeraddJavascriptObject( $script, $onload = false )
AddLinkAddLink( )
AddPageAddPage( $orientation = '', $format = '', $keepmargins = false, $tocpage = false )
addPageRegionaddPageRegion( $region )
AddSpotColorAddSpotColor( $name, $c, $m, $y, $k )
addTOCaddTOC( $page = '', $numbersfont = '', $filler = '.', $toc_name = 'TOC', $style = '', $color = array(0,0,0) )
addTOCPageaddTOCPage( $orientation = '', $format = '', $keepmargins = false )
AnnotationAnnotation( $x, $y, $w, $h, $text, $opt = array('Subtype'=>'Text'), $spaces = 0 )
ArrowArrow( $x0, $y0, $x1, $y1, $head_style = 0, $arm_size = 5, $arm_angle = 15 )
BookmarkBookmark( $txt, $level = 0, $y = -1, $page = '', $style = '', $color = array(0,0,0), $x = -1, $link = '' )
ButtonButton( $name, $w, $h, $caption, $action, $prop = array(), $opt = array(), $x = '', $y = '', $js = false )
CellCell( $w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M' )
CheckBoxCheckBox( $name, $w, $checked = false, $prop = array(), $opt = array(), $onvalue = 'Yes', $x = '', $y = '', $js = false )
CircleCircle( $x0, $y0, $r, $angstr = 0, $angend = 360, $style = '', $line_style = array(), $fill_color = array(), $nc = 2 )
CloseClose( )
colorRegistrationBarcolorRegistrationBar( $x, $y, $w, $h, $transition = true, $vertical = false, $colors = 'A,R,G,B,C,M,Y,K' )
ComboBoxComboBox( $name, $w, $h, $values, $prop = array(), $opt = array(), $x = '', $y = '', $js = false )
commitTransactioncommitTransaction( )
CoonsPatchMeshCoonsPatchMesh( $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 )
copyPageTRUEcopyPage( $page = 0 )

タイトルとURLをコピーしました