| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocumentPDF |
setName |
setName() |
Never | Work in Progress |
Sets the document name.
The name is returned as part of the header in the render() method.
void setName ( $name )
| $name | string | is a string containing the document name. |
Example
$pdfDoc =& JDocument::getInstance( 'pdf' ); $pdfDoc->setName( 'This is the document name' ); echo $pdfDoc->getName();
might produce:
Result
This is the document name