Skip to content

Commit 869b5fd

Browse files
committed
IMPROVED : Samples\Sample01
1 parent 95180b5 commit 869b5fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/Sample_01_SimpleText.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'ODText');
4040
$objWriter->save(str_replace('.php', '.odt', __FILE__));
4141

42+
echo date('H:i:s') , " Write to RTF format" , EOL;
43+
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'RTF');
44+
$objWriter->save(str_replace('.php', '.rtf', __FILE__));
45+
4246

4347
// Echo memory peak usage
4448
echo date('H:i:s') , " Peak memory usage: " , (memory_get_peak_usage(true) / 1024 / 1024) , " MB" , EOL;

0 commit comments

Comments
 (0)