Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
mFop Class Reference

Public Member Functions

 __construct ()
 getPdfFromFO ($fo_path)
 outputPdfFromFO ($fo_path, $exit=true)
 getPdfFromXML ($xml_path, $xsl_path)
 outputPdfFromXML ($xml_path, $xsl_path, $exit=true)
 getPdfFromFOString ($fo)
 outputPdfFromFOString ($fo, $exit=true)
 getPdfFromXMLString ($xml, $xsl)
 outputPdfFromXMLString ($xml, $xsl, $exit=true)

Data Fields

const temp_folder = 'd:\webserver\temp'
const fop_home = 'd:\tools\fop'
const windir = 'c:\windows'
 $disable_warnings

Constructor & Destructor Documentation

Constructor


Member Function Documentation

getPdfFromFO ( fo_path)

Converts an FO file into PDF and return its content

Parameters:
string$fo_pathLocation of the FO file
Returns:
string|false PDF data or FALSE in case of error
getPdfFromFOString ( fo)

Converts an FO string into PDF and return its content

Parameters:
string$foFull FO document data
Returns:
string PDF data
getPdfFromXML ( xml_path,
xsl_path 
)

Converts an XML file into PDF using XSL and return its content

Parameters:
string$xml_pathLocation of the XML file
string$xsl_pathLocation of the XSL file
Returns:
string|false PDF data or FALSE in case of error
getPdfFromXMLString ( xml,
xsl 
)

Converts an XML string into PDF and return its content

Parameters:
string$xmlFull XML document data
string$xslFull XSL document data OR XSL file path
Returns:
string PDF data
outputPdfFromFO ( fo_path,
exit = true 
)

Converts an FO file into PDF and output it to the browser

Parameters:
string$fo_pathLocation of the FO file
Returns:
string|false PDF data or FALSE in case of error
outputPdfFromFOString ( fo,
exit = true 
)

Converts an FO string into PDF and output it to the browser

Parameters:
string$foFull FO document data
Returns:
string PDF data
outputPdfFromXML ( xml_path,
xsl_path,
exit = true 
)

Converts an XML file into PDF using XSL and output it to the browser

Parameters:
string$xml_pathLocation of the XML file
string$xsl_pathLocation of the XSL file
Returns:
string|false PDF data or FALSE in case of error
outputPdfFromXMLString ( xml,
xsl,
exit = true 
)

Converts an XML string into PDF and output it to the browser

Parameters:
string$xmlFull XML document data
string$xslFull XSL document data OR XSL file path
Returns:
string PDF data

Field Documentation

$disable_warnings
const fop_home = 'd:\tools\fop'
const temp_folder = 'd:\webserver\temp'
const windir = 'c:\windows'

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