Class jResponseTcpdf

Description

PDF Response based on TCPDF (http://tcpdf.sourceforge.net)

  • since: 1.0

Located in /core/response/jResponseTcpdf.class.php (line 24)

jResponse
   |
   --jResponseTcpdf
Variable Summary
boolean $doDownload
object $tcpdf
string $_type
Method Summary
void initPdf ([string $orientation = 'P'], [string $unit = 'mm'], [mixed $format = 'A4'], [String $encoding = null])
boolean output ()
mixed __call (string $method, array $attr)
Variables
boolean $doDownload = false (line 46)

Says if the "save as" dialog appear or not to the user.

  • access: public
string $outputFileName = 'document.pdf' (line 40)

name of the file under which the file will be send to the user

  • access: public
object $tcpdf = null (line 34)

the tcpdf object you want to send.

  • access: public
string $_type = 'tcpdf' (line 28)
  • access: protected

Redefinition of:
jResponse::$_type

Inherited Variables

Inherited from jResponse

jResponse::$forcedHttpVersion
jResponse::$httpVersion
jResponse::$_httpHeaders
jResponse::$_httpHeadersSent
jResponse::$_httpStatusCode
jResponse::$_httpStatusMsg
jResponse::$_outputOnlyHeaders
Methods
initPdf (line 89)

Creates the TCPDF object in $this->tcpdf

  • access: public
void initPdf ([string $orientation = 'P'], [string $unit = 'mm'], [mixed $format = 'A4'], [String $encoding = null])
  • string $orientation: Orientation (portrait/landscape)
  • string $unit: Page base unit (default to millimeters)
  • mixed $format: Page size (defaults to A4)
  • String $encoding: charset encoding;
output (line 52)

send the PDF to the browser.

  • return: true if it's ok
  • access: public
boolean output ()

Redefinition of:
jResponse::output()
Send the response in the correct format. If errors or exceptions appears during this method, outputErrors will be called. So the the content should be generated using the output buffer if errors can be appeared during this generation. Be care of http headers.
__call (line 100)

Transmits calls to non-existent methods to TCPDF (max : 8 params because

TCPDF methods never take more than 8 params)

  • return: Value returned by TCPDF's method
  • access: public
mixed __call (string $method, array $attr)
  • string $method: Method name
  • array $attr: Method parameters

Inherited Methods

Inherited From jResponse

jResponse::__construct()
jResponse::addHttpHeader()
jResponse::cleanCacheHeaders()
jResponse::clearHttpHeaders()
jResponse::getFormatType()
jResponse::getType()
jResponse::isValidCache()
jResponse::output()
jResponse::outputErrors()
jResponse::sendHttpHeaders()
jResponse::setExpires()
jResponse::setHttpStatus()
jResponse::setLifetime()
jResponse::_checkRequestType()
jResponse::_normalizeDate()

Documentation generated on Mon, 26 Oct 2015 21:55:47 +0100 by phpDocumentor 1.4.3