dependabot[bot] on composer
dependabot[bot] on composer
Update dompdf/dompdf requiremen… (compare)
I see in the docs
width. Table width in percent.
but I'd rather do
$table->setWidth(Converter::inchToTwip(7));
then
$table->setWidth(5200);
@Progi1984 Hey, we are trying to use PHPWord in a new project but we aren't having much success. The sample is currently not working as expected. Do you have any pointers or are you already working in a hot fix? issue in question: PHPOffice/PHPWord#970
We also noticed that the columns are not working and a lot of styles aren't recognized
@phpdave Thanks for Reply.
But i noticed that span tag is not working properly inside any other tag like heading tag, paragraph tag and list tag in addHtml() case.
Below is the the code i am fetching from database after replacing template {keywords}. Even Heading tags are also not working for writing doc file. if there is any span tag inside li tag then li content is not printing in word file.
<h1><span style="text-decoration: underline;">LME Copper 3 Month Forward - 2017-01-24 06:30:00 Contract</span></h1>
<p class="MsoNormal" style="font-size: 12.16px;">Furthermore, <span style="font-size: 12.16px;">the mid-January push above a key resistance at 2210, neutralised the bearish intermediate-term trend, shifting the intermediate term outlook to neutral.</span></p>
<ul>
<li>We see an upside bias for 1873; break here aims maybe up to 1900/1910.</li>
<li>But below 1841 opens risk down to <span style="font-size: 12.16px;">1811</span>.</li>
</ul>
Please help me to sort out these issues.
Hello, I'm trying to generate pdf from .docx, however, some style could not be set also most important table data doesnot show inside pdf. it generate blank table.
I use following code
use PhpOffice\PhpWord\IOFactory;
use PhpOffice\PhpWord\PhpWord;
use PhpOffice\PhpWord\TemplateProcessor;
$fileName = base_path('templates').'/'.'FINAL Desk.docx';
$newFilePdf = base_path('templates').'/'.'final_'.time().'.pdf';
Settings::setPdfRendererName('dompdf');
Settings::setPdfRendererPath('.');
$phpWord = IOFactory::load($fileName, 'Word2007');
$phpWord->save($newFilePdf , 'PDF');