S
S
SuperNatural2013-06-20 16:09:42
PHP
SuperNatural, 2013-06-20 16:09:42

How to fill textboxes in .doc files?

Surely, my question will seem perverted to many, but these are the conditions of the problem.
There is a doc file in the Office 2003 format, which is a questionnaire that is forbidden to be changed in all places except for a few textbox fields. The file needs to be filled out and sent to a third-party server, where it is analyzed.
To optimize, I wrote a php code using the example from the article about livedocx , replacing the fields from texbox with plain text. But alas, the file does not go to the server, giving an error about the wrong structure.
After reading about api livedocx, I saw that there is no way to somehow edit textboxes, but what then?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Borisovich, 2013-06-20
@Alexufo

use docx format. There is xmlka, parsing is not a problem with a ready-made or not

A
Alexander Borisovich, 2013-06-20
@Alexufo

By the way, PDF now works exactly the same way. Allows you to enter data into fields and save the document. Then it is attached and then the script parses it. It seems like they do it for foreign applications.

A
Alexander Borisovich, 2013-06-25
@Alexufo

Do you have some kind of profile like teaching what thread of the visa? You can try using com objects, using Word to read the 2003 format in the same place and fill in the fields. And in general, anything to do with the document. Here the server is necessary screw and office. By the way, protection is removed from these documents.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question