Take the 2-minute tour ×

I have a set of images (jpeg specifics are needed), which I wish to present in a table as a .doc.

Preferably I'd like to use PHP.

Two issues:

  1. While the html->doc is a very good candidate, it can't embed jpegs as far as I can see. Maybe inserting the jpegs as binary data will give me a .doc with no need for "external gets"?
  2. COM can not be used. This will be running on a server, without access to a word installation.

Any pointers are greatly appreciated

share|improve this question
Can you get a server with COM and Word to generate this stuff for you? The Word .doc format is no laughing matter. You might be able to replace the image resource within the .doc internal file structure, but that assumes all of your resulting documents are identical otherwise. –  Brad Mar 7 '11 at 21:07
If the resource is accesible to the server, then yes. Some ->AddPicture() bla bla –  Chuck Mar 7 '11 at 21:18
Whatever library you use to export the .doc, needs to support images as a feature for this to work. Building that ability into an existing library is likely to be extremely difficult or impossible. –  Pekka 웃 Mar 7 '11 at 21:28
add comment


Your Answer



Browse other questions tagged or ask your own question.