Insert a RTF into a docx document using PHPDocX
- Jun 03, 2011
This information is outdated, please, refer to the addRTF documentation for up to date info.
In the same way that we can insert a docx document into another docx document, we can also insert a RTF document.
The Rich Text Format (often abbreviated RTF) is a proprietary document file format with published specification developed by Microsoft Corporation for cross-platform document interchange.
To add a RTF is simple:
$docx = new CreateDocx();
// Open import of an RTF document
// Route to the document
// Close import of the document
$docx->addText('End RTF content');