Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
79 views

i am creating laravel project that parsing word doc and docx file into elements in json format. I use phpword library and loading IOFactory::load($path) code. In loading time i get error DOMDocument::...
Nuriddin Rashidov's user avatar
1 vote
0 answers
82 views

Using PhpWord in my PHP project gives me issues. I do have a variable containing CR/LF (\n) and HTML code. Something like: $str='<div style="font-style: italic; text-align:center">...
OfiserChris's user avatar
0 votes
0 answers
62 views

I have a template word document with a placeholder that needs to be replaced by HTML code. That HTML code has test wrapped images as well. Ill break down my requirement and the issue below. ...
Ara's user avatar
  • 83
0 votes
0 answers
23 views

I've written a Laravel application that generates content for documents and inserts it into existing Word templates using PHPWord. My desired approach is pretty simple: I generate the content that I ...
Cornel Verster's user avatar
-2 votes
1 answer
48 views

I downloaded and installed the dompdf release http://dompdf_3-0-2.zip/ I am not using composer, so I added this line: require_once '../dompdf/autoload.inc.php'; Running some sample code: $phpWord = ...
Cymro's user avatar
  • 1,484
0 votes
0 answers
59 views

I have created a WORD docx document with phpWord. It can be opened and looks ok (just as intended) with LibreOffice (newest version). I do not have a WORD version myself but a colleague told me it ...
Tacitus5's user avatar
0 votes
1 answer
91 views

Using PHPWord, I've managed with this line: $section->addText('<'); to provoke an Error in Microsoft Word opening the .docx file: +---------------------------------------------------------------...
Cymro's user avatar
  • 1,484
0 votes
0 answers
72 views

When creating word documents, PHPWord allows for defining custom paragraph styles, which in turn text content can be assigned to. The features that can be defined when creating paragraph styles seem ...
TheodorusMaximus's user avatar
1 vote
0 answers
36 views

Im trying to do an offline file filler (but they specifically asked for a browser experience so aigth) for a company that does the same paperwork over and over again. they assigned me to do a fairly ...
Jugador Misterio's user avatar
1 vote
1 answer
137 views

I have a doc template which contains the following table: and with php I fill the variable with this line: $templateProcessor->setValues(array("{key1}" => 59, "{key2}" => ...
Fabbio's user avatar
  • 353
0 votes
0 answers
39 views

I'm using laravel 9, vue 3 and phpoffice/phpword. I've also uploaded a word document which lives in my storage folder and that word document has stylings in it. What I'm trying to do is display that ...
Chibi's user avatar
  • 21
0 votes
1 answer
651 views

I attempted to convert my Word document to PDF, but the formatting was lost and did not match the original. Specifically, I was converting a certificate from a Word file to PDF, resulting in incorrect ...
puvanandy24's user avatar
0 votes
1 answer
620 views

I use PhpWord to generate a .docx file using TemplateProcessor. In the script, I include an image with a statement $templateProcessor->setImageValue('aName', [ 'path' => '/path/to/file', ...
Dima Dz's user avatar
  • 546
1 vote
1 answer
565 views

I want to autofit phpword table to window. So, I has add array('unit' => 'pct', 'width' => 5000) when create table. But , the table column show in reversed order in output docx file. I don't ...
Premlatha's user avatar
  • 2,004
0 votes
1 answer
510 views

I has create table using phpword. I want set border for specific cell only. For testing, I have create two array style, border=6 and border=0. I set style1 to cell 1 and style2 to cell 2. In word file ...
Premlatha's user avatar
  • 2,004
1 vote
0 answers
159 views

I'm attempting to convert a DOCX document to HTML using the PHPWord library. However, during the conversion process, it doesn't include images, backgrounds, headers, or footers. It only retains tables ...
user2048789's user avatar
0 votes
1 answer
147 views

I am using PhpWord to create a document that contains comments. I can create the file successfully, but when I try to open it, Word reports that it contains unreadable content. Although Word will ...
Doom_Cat's user avatar
0 votes
0 answers
87 views

I am building a document workflow system (in PHP) which utilises word templates. I will populate some content (document number, title, issue, and signatures) from a mySQL database. The rest of the ...
JJ279's user avatar
  • 9
1 vote
2 answers
338 views

Am trying to save a word document using PhpWord 1.0 object Writer within the storage folder in laravel 10 but am getting an exception "mkdir(): No such file or directory". The logic is as ...
peter chege's user avatar
0 votes
1 answer
951 views

Hi I am using PhpWord to convert a docx file to a html file. This works well however it contains HTML, HEAD and BODY tags, how do I convert a file without these tags, just the body content. $...
user3459394's user avatar
0 votes
0 answers
293 views

I have template.docx template with mark ${table} inside. I create document.docx using phpWord and need to convert it to PDF using LibreOffice on Ubuntu. Here is my code v1 filling table $...
Garry's user avatar
  • 81
0 votes
1 answer
137 views

I create multiple object which link to different sheets from same excel file using phpword template processor. I have create customized function in template processor.php to create object link to ...
Premlatha's user avatar
  • 2,004
1 vote
0 answers
221 views

I am creating table of content using phpword from heading 1. I have added 2 heading 1 in different page. The heading 1 on last page only added to table of content in output file. <?php ...
Premlatha's user avatar
  • 2,004
1 vote
1 answer
1k views

I am new to the PHPWord library, and have just now installed it using composer. I want to generate a basic word file. This is my code: <?php // (A) LOAD PHPWORD require "vendor/...
user avatar
0 votes
1 answer
371 views

I have a Full HTML text which needs to be converted accordingly to phpword and added finally in word. HTML code is : $html = '<table style="height:500px;width:600px;"><thead><...
Dinesh Chandra's user avatar

1
2 3 4 5
14