archaic0 Posted June 9, 2011 Share Posted June 9, 2011 I am starting a new project where I have various documents coming in from various sources. At present the authors of these documents have probably made them all in Word and have .DOC files. What I'm doing is taking all of these documents and turning them into templates to spit out new versions of the files. Say I have a form letter with [$var] in the actual text. I need to be able to open the file and replace that [$var] with new text. In the end though, the files need to end up PDF files. I'm just starting my research into file formats and how I might read/edit them and found this forum. I found several topics that sort of are related to what I want to do, but not quite. My first question is really, how would YOU do this sort of thing? Force an ODF or DOCX format? Can you edit an ODF or DOCX using PHP (unzip the XML and then rezip it after you edit the text file?) Quote Link to comment https://forums.phpfreaks.com/topic/238883-can-you-edit-an-odf-or-docx-file/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.