Skip to main content
Filter by
Sorted by
Tagged with
1 vote
3 answers
180 views

I'm trying to apply firstLine indentation to a paragraph but it's not working. Below is my code: $phpWord = new \PhpOffice\PhpWord\PhpWord(); $section = $phpWord->addSection(); $fontStyle = array(...
kilo636's user avatar
  • 41
1 vote
1 answer
93 views

I am using PHPWord from within PHP to generate a word docment. I do use addHtml to transform some Mysql text containing multiple lines into a Word paragraph. My input text contains: <pre> Lorem ...
OfiserChris's user avatar
1 vote
0 answers
87 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
1 vote
2 answers
136 views

I'm using the PHPWord package in Laravel to replace placeholders in a DOCX template. I have a placeholder ${html} in my DOCX file, and I'm trying to replace it with HTML content like: <p>Hello,&...
Kishan's user avatar
  • 11
0 votes
0 answers
71 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
40 views

In phpWord, I would like to modify the text that appears on the Table of Contents to be different from what appears in the individual section titles. // Add title styles $phpWord->addTitleStyle(1,[]...
Matthew's user avatar
  • 189
0 votes
0 answers
24 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
0 votes
0 answers
241 views

I'm writing code that inserts sections of content into a pre-defined Word template using PHPWord. I put tags like ${INTRODUCTION} in my template, and then I use the Template Processors's setValue ...
Cornel Verster's user avatar
-2 votes
1 answer
49 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
23 views

Using this code with PhPWord, the addImage() function seems to inject a line break. $Format['width']=36; $Format['height']=36; $Format['wrappingStyle']='square'; $Format['positioning']='absolute'; $...
Cymro's user avatar
  • 1,484
0 votes
0 answers
62 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
-1 votes
1 answer
70 views

When generating a file from a word template, is it possible to delete personal data left in the template? For example, the author's name. I checked if the author's name is left in the template, in the ...
Dmitriy's user avatar
0 votes
1 answer
96 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
1 vote
1 answer
178 views

The image showing in docx file is not visible in pdf when converted using unoconv where the image is displayed using $document = new \PhpOffice\PhpWord1\TemplateProcessor($docx_temp_file_path); $...
user_777's user avatar
  • 805
0 votes
0 answers
79 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

15 30 50 per page
1
2 3 4 5
46