Questions tagged [phpdocx]

PHPDocX is a PHP library designed to generate completely dynamic, fully customizable and digitally signed Word documents.

PHPDocX can create, and digitally sign if required, Word documents from scratch or use predefined templates to simplify your work. With a few lines of code you may integrate PHPDocX in your website or intranet and offer a valuable service to your customers and employees

.

61 questions
18
votes
4 answers

Generating word documents with PHP

Do you know any way to generate doc and docx files with PHP and without COM component? I've tried PHPWord, which creates docx files, but these cannot be opened in OpenOffice because they cause it to crash. I've also tried PHPDocx, but it didn't…
EL_W
  • 181
  • 1
  • 1
  • 3
4
votes
2 answers

pass dynamic values when export to docx using PHPWord in laravel

I am trying to export user details to .docx file. The file successfully exported but, it's giving the object. Phpword format is not working. How to write code to export the dynamic values properly, would someone help me, please? In…
Rashed Hasan
  • 3,721
  • 11
  • 40
  • 82
3
votes
4 answers

php docx template modification

Has anybody had any experience editing a docx template. My php admin area needs the functionality to modify docx templates, this functionality will be used a lot so memory is important. I have found phpword which is in beta, it works but not 100% I…
Blu Towers
  • 1,908
  • 4
  • 17
  • 20
3
votes
2 answers

Php can't find tidy

I am using a php7 in docker container to run a service based on phpdocx library. It needs tidy and some other extensions installed and active to work. I have installed php-tidy however I am getting following warning. PHP Warning: PHP Startup:…
Singh Lalit
  • 471
  • 5
  • 9
3
votes
1 answer

Export from tinymce to pdf/docx

I use the tinyMCE editor, I save its data with mysql, in html from what I can see. How can I export this data of my users to pdf and docx with php (serverside) ? I believe the free edition of phpDocx lacks that functionality (embedHTML function…
vga None
  • 73
  • 2
  • 6
2
votes
0 answers

phpdocx Error while trying to open a template

I have downloaded phpdocx and I am testing my code on my local environment. I can successfully create a document from scratch with the following code: $docx = new \Phpdocx\Create\CreateDocx(); $docx->addText('This is a test'); $docx->embedHTML('
three3
  • 2,756
  • 14
  • 57
  • 85
2
votes
0 answers

Merge PDFs while preserving hyperlinks

I'm currently building a download function that will generate numerous PDFs, and then merge them all together. However, the links on the Table of Contents page stop working once the PDFs are merged.. All of the links are functioning when the PDF is…
nissa
  • 21
  • 2
1
vote
0 answers

See what a string "really" contains?

With phpdocx, I am retrieving a template variable from a *.docx file. However, when var_dump()-ing the string, I receive: string(46) "Name(/)Frage(/)rad:Ja(=>ja),Nein(=>nein)" Obviously, the string's length is 40. How can I see, what else is…
phpcrack
  • 63
  • 5
1
vote
0 answers

Not able to open a word document when variable replaced with html using php

When I generate an Word document replacing a variable with a HTML the generated report is showing an error and doesn't open. $datenarray = "
Rohit Gowda
  • 41
  • 13
1
vote
0 answers

how to create docx file using php jquery

I m so much confused about how to create docx files while I submitting the data from my given form and also I need to save that data into database. Create Docx File