V
V
Vadim Ivanenko2014-12-09 11:10:59
PHP
Vadim Ivanenko, 2014-12-09 11:10:59

How to populate a .doc or .pdf document with data in PHP?

We make an automated medical card management system. There is a document template - called "Medical record of an inpatient" (.doc format). We need to get a document at the output with filled fields, the ability to convert it to pdf and print it. Or work directly with pdf.
How to work with such documents (doc, pdf) in PHP? How to navigate through this document and enter data in the appropriate places?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir, 2014-12-09
@supra7sky

Will it go? https://github.com/PHPOffice/PHPWord

R
RJs45, 2014-12-09
@RJs45

For PDF use this .
For the Word, they suggested above: PHPWord (Excel is also there)

I
Ivan Nikolaevich, 2014-12-21
@north_leshiy

I sorted through a bunch of all kinds of PDF generators at one time for the task and settled on the TCDPF library, which in my opinion is optimal)
There were many prerequisites, but those that I remember now - it seems that problems with fonts and encodings are easier to solve there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question