Jump to content

Recommended Posts

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?)

 

 

Link to comment
https://forums.phpfreaks.com/topic/238883-can-you-edit-an-odf-or-docx-file/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.