views:

357

answers:

2

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.

+1  A: 

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.

ashawley
A: 

The RTF specification denotes \page as the command for a page break, but it seems to be ignored by most viewers. Google docs, for example, doesn't produce an RTF with page breaks when saving a document that contains page breaks.

David Caunt