Search code examples
phprtfdocuments

How do I split an RTF document into individual pages using PHP


I have an RTF document that serves as a template for input data from a web page. I need to know how to break the base template into individual pages for display on the website. Is there a way to do this using PHP? I have tried searching through the RTF code inside the document, but cannot find anything that gives me a good breaking point. If anyone has a code snipit or and idea of how to do this I would be forever greatful.


Solution

  • There are no explicit page breaks in RTF files, unless the user put them there. "Paging" is computed when the document is rendered. No easy answer it seems, IIUC.