-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for paragraph with borders #294
Comments
I'll work on this enhancement this weekend. |
@CauanCabral I've added this feature to the $section->addText(
'Paragraph text.',
null,
array('borderSize' => 4, 'borderColor' => 'FF0000')
); Please test and close this issue when you confirm that this feature is working. Thanks. |
Thanks @ivanlanin . |
Can you give more detailed information about the problem with TOC? |
Sure: https://gist.github.com/CauanCabral/723e9c1c91faa980f539 When I open lib generated docx in Google Drive, TOC are OK for sample code, but in my code keep broke. Back in master branch, TOC in my docs are OK. |
There are two things that you have to do: (1) Define the heading (title) styles; (2) Change the This is the sample of how to define the heading styles: $phpWord->addTitleStyle(1, array('size' => 20, 'color' => '333333', 'bold' => true));
$phpWord->addTitleStyle(2, array('size' => 16, 'color' => '666666')); |
Thanks 👍 |
There's a way to define a paragraph border (size, color)?
If not, how can I help include that feature? I'd read Element/Table and Style/Table as base and tried changed Style/Paragraph to extends Border but didn't work.
The text was updated successfully, but these errors were encountered: