Method | Description | |
---|---|---|
appendChapterTitle ( string $title ) | Append a chapter title (H2) | |
appendImage ( resource $img ) | Append an image. | |
appendPageBreak ( ) | ||
appendParagraph ( string $text ) | Append a paragraph of text to the file. | |
appendSectionTitle ( string $title ) | Append a section title (H3) | |
get ( $key ) | Get the file's settings. | |
getImages ( ) | Get the file records of the images | |
getMetaData ( ) | Get the metadata | |
getTextData ( ) | Get the text data (the "html" code) | |
set ( $key, $value ) | Change the file's settings. For example set("author", "John Doe") or set("title", "The adventures of John Doe"). |
Method | Description | |
---|---|---|
addFilepos ( $str, $name ) | ||
addGuide ( $str ) | ||
addTOC ( $str, $entries ) | Generate a TOC | |
addText ( $str ) : array($string, | Generate the body's text and the chapter entries | |
filepos ( $position ) | ||
resolveFilepos ( $str, $name ) |
public appendChapterTitle ( string $title ) | ||
$title | string | The title to insert. |
public appendImage ( resource $img ) | ||
$img | resource | An image file (for example, created by `imagecreate`) |
public appendParagraph ( string $text ) | ||
$text | string | The text to insert. |
public appendSectionTitle ( string $title ) | ||
$title | string | The title to insert. |
public set ( $key, $value ) | ||
$key | Key of the setting to insert. |