Answer the question
In order to leave comments, you need to log in
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
For PDF use this .
For the Word, they suggested above: PHPWord (Excel is also there)
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 questionAsk a Question
731 491 924 answers to any question