$isPdf
$isPdf : boolean
Is the current writer creating PDF?
Abstract PDF renderer
Not supported: PreserveText, PageBreak, Object
$phpWord : \PhpOffice\PhpWord\PhpWord
PHPWord object
__construct(\PhpOffice\PhpWord\PhpWord $phpWord)
Create new instance
\PhpOffice\PhpWord\PhpWord | $phpWord | PhpWord object |
getPhpWord() : \PhpOffice\PhpWord\PhpWord
Get PhpWord object
None found |
setPhpWord(\PhpOffice\PhpWord\PhpWord $phpWord = null) : self
Set PhpWord object
\PhpOffice\PhpWord\PhpWord | $phpWord |
None found |
getWriterPart(string $partName = '') : mixed
Get writer part
string | $partName | Writer part name |
None found |
None found |
setUseDiskCaching(boolean $value = false, string $directory = null) : self
Set use disk caching status
boolean | $value | |
string | $directory |
None found |
getDiskCachingDirectory() : string
Get disk caching directory
None found |
None found |
setTempDir(string $value) : self
Set temporary directory
string | $value |
None found |
codeCoverageIgnore |
---|
None found |
setFont(string $fontName) : self
Set font. Examples: 'arialunicid0-chinese-simplified' 'arialunicid0-chinese-traditional' 'arialunicid0-korean' 'arialunicid0-japanese'
string | $fontName |
None found |
None found |
setPaperSize(integer $value = 9) : self
Set Paper Size
integer | $value | Paper size = PAPERSIZE_A4 |
None found |
None found |
setOrientation(string $value = 'default') : self
Set Orientation
string | $value | Page orientation ORIENTATION_DEFAULT |
None found |
getTempFile(string $filename) : string
Get temporary file name
If $filename is php://output or php://stdout, make it a temporary file
string | $filename |
None found |
cleanupTempFile()
Cleanup temporary file.
None found |
None found |
getZipArchive(string $filename) : \PhpOffice\PhpWord\Shared\ZipArchive
Get ZipArchive object
string | $filename |
None found |
openFile(string $filename) : resource
Open file for writing
string | $filename |
since | 0.11.0 |
---|
writeFile(resource $fileHandle, string $content)
Write content to file.
resource | $fileHandle | |
string | $content |
since | 0.11.0 |
---|
addFilesToPackage(\PhpOffice\PhpWord\Shared\ZipArchive $zip, mixed $elements)
Add files to package.
\PhpOffice\PhpWord\Shared\ZipArchive | $zip | |
mixed | $elements |
None found |
addFileToPackage(\PhpOffice\PhpWord\Shared\ZipArchive $zipPackage, string $source, string $target)
Add file to package.
Get the actual source from an archive image.
\PhpOffice\PhpWord\Shared\ZipArchive | $zipPackage | |
string | $source | |
string | $target |
None found |
prepareForSave(string $filename = null) : resource
Save PhpWord to PDF file, pre-save
string | $filename | Name of the file to save as |
None found |
restoreStateAfterSave(resource $fileHandle)
Save PhpWord to PDF file, post-save
resource | $fileHandle |
None found |
None found |