If I add ● to the text will it show up in the final word document as a Black dot or do I need an image? Thanks
If I add ● to the text will it show up in the final word document as a Black dot or do I need an image? Thanks
Hello,
What license and version of phpdocx are you using?
We have tested it using the latest release of phpdocx and it's working perfectly; the character is added correctly.
Regards.
O good. Just the trial version at the moment. I haven't tried it yet - I was just wondering if that would work. If the experiment works which it should do my Client will be buying the full version.
array(
'value' => '●',
'backgroundColor' => 'FFFFFF',
'width' => 2150,
'borderColor'=> '0000000',
'cellMargin' => 100,
),
Is coming out in the Word Doument as ●
I thought you said it would come out as a black circle?
I am trying to add black circles as a table entry
Thanks
Am I right in thinking i need to do
$circle = new WordFragment($docx);
$circle->embedHTML("•");
then use $circle as the value?
We need tidy installing if I am correct
Hello,
You need to install tidy to transform HTML to DOCX. You can also use addText to insert strings:
$html = '<p>Character ● other</p>';
$docx->embedHTML($html);
$text = 'Character ' . html_entity_decode('●') . ' other';
$docx->addText($text);
The dot character can also be added directly instead of the encoded value.
Regards.
Thought so. I have emailed my Client telling them that I thought we needed it. I will now tell him we definately do. My demo page should work once that is installed and hopefully if his client is happy which I expect they will be we can go ahead and buy the Pro version. Thanks for all your help.