Rtf To Pdf

Rtf To Pdf
I need a PHP solution that will allow me to pass an array of search strings and an array of replacement of replacement strings to a function that will search and replace in an RTF file, make a unique copy as a PDF, zip it, and present it to the browser for download.

Here is the process:

1. User completes a form online (not part of the spec for you)
2. Form passes values to the function:

– RTF file name

– Array of search strings

– Array of replacement strings

The following steps are performed:

– RTF file is opened read into memory.

– Function performs search and replace on RTF contents.

– Function converts newly modified file to PDF.

– Function closes RTF without saving changes.

– Function zips PDF and prompts the user to download

I am running in a LAMP environment.

Leave a Reply

Your email address will not be published. Required fields are marked *