XOOPS  2.6.0
Xoops\Core\Service\Contract\HtmlToPdfInterface Interface Reference
Inheritance diagram for Xoops\Core\Service\Contract\HtmlToPdfInterface:
Inheritance graph

Public Member Functions

 addHtml ($response, $html)
 
 fetchPdf ($response)
 
 outputPdfDownload ($response, $name)
 
 outputPdfInline ($response, $name)
 
 setAuthor ($response, $pdfAuthor)
 
 setBaseFont ($response, $fontFamily, $fontStyle= '', $fontSize=null)
 
 setBaseUnit ($response, $unit)
 
 setDefaultMonospacedFont ($response, $monoFontFamily)
 
 setKeywords ($response, $pdfKeywords)
 
 setMargins ($response, $leftMargin, $topMargin, $rightMargin, $bottomMargin)
 
 setPageOrientation ($response, $pageOrientation)
 
 setPageSize ($response, $pageSize)
 
 setSubject ($response, $pdfSubject)
 
 setTitle ($response, $pdfTitle)
 
 startPdf ($response)
 

Public Attributes

const MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE
 

Detailed Description

Definition at line 26 of file HtmlToPdfInterface.php.

Member Function Documentation

Xoops\Core\Service\Contract\HtmlToPdfInterface::addHtml (   $response,
  $html 
)

addHtml - add HTML formatted text to document. This may be called multiple times

Parameters
Response$responseobject
string$htmlHTML formated text to include in document array user info, 'uid', 'uname' and 'email' required
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::fetchPdf (   $response)

fetchPdf - fetch rendered document as a string

Parameters
Response$responseobject
Returns
void - response->value set to string containing document

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::outputPdfDownload (   $response,
  $name 
)

outputPdfDownload - output a named pdf document file for download

Parameters
Response$responseobject
string$namefilename for file
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::outputPdfInline (   $response,
  $name 
)

outputPdfInline - output a named pdf document file inline

Parameters
Response$responseobject
string$namefilename for file
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setAuthor (   $response,
  $pdfAuthor 
)

setAuthor - set author in pdf meta data

Parameters
Response$responseobject
string$pdfAuthorauthor name
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setBaseFont (   $response,
  $fontFamily,
  $fontStyle = '',
  $fontSize = null 
)

setBaseFont - set the base font used in rendering

Parameters
Response$responseobject
string$fontFamilyfont family
string$fontStylefont style ('bold', 'italic', etc.)
float$fontSizefont size in points
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setBaseUnit (   $response,
  $unit 
)

setBaseUnit - set unit of measure for page size, margins, etc.

Parameters
Response$responseobject
string$unitunit used in page size, margins. Possible values include 'mm' = millimeter, "in" = inches, 'pt' = typographic points
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setDefaultMonospacedFont (   $response,
  $monoFontFamily 
)

setDefaultMonospacedFont - default monotype font used in rendering

Parameters
Response$responseobject
string$monoFontFamilyfont family
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setKeywords (   $response,
  $pdfKeywords 
)

setKeywords - set keywords in pdf meta data

Parameters
Response$responseobject
string[]$pdfKeywords array of keywords pertaining to document
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setMargins (   $response,
  $leftMargin,
  $topMargin,
  $rightMargin,
  $bottomMargin 
)

setMargins - set margin sizes

Parameters
Response$responseobject
float$leftMarginleft margin in base units,
See also
setBaseUnits()
Parameters
float$topMargintop margin in base units
float$rightMarginright margin in base units
float$bottomMarginbottom margin in base units
Returns
void - response->value set to absolute URL to avatar image

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setPageOrientation (   $response,
  $pageOrientation 
)

setPageOrientation - set page orientation

Parameters
Response$responseobject
string$pageOrientationpage orientation, 'P' for portrait, 'L' for landscape
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setPageSize (   $response,
  $pageSize 
)

setPageSize - set standard page size

Parameters
Response$responseobject
string$pageSizestandard named page size, i.e. 'LETTER', 'A4', etc.
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setSubject (   $response,
  $pdfSubject 
)

setSubject - set subject in pdf meta data

Parameters
Response$responseobject
string$pdfSubjectdocument subject
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::setTitle (   $response,
  $pdfTitle 
)

setTitle - set title in pdf meta data

Parameters
Response$responseobject
string$pdfTitledocument title
Returns
void

Implemented in HtmlToPdfProvider.

Xoops\Core\Service\Contract\HtmlToPdfInterface::startPdf (   $response)

startPdf - start a new pdf

Parameters
Response$responseobject
Returns
void

Implemented in HtmlToPdfProvider.

Member Data Documentation

const Xoops\Core\Service\Contract\HtmlToPdfInterface::MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE

Definition at line 28 of file HtmlToPdfInterface.php.


The documentation for this interface was generated from the following file: