Forum


Replies: 2   Views: 2136
Border styles
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Knutsford  · 18-01-2020 - 14:40


https://www.phpdocx.com/api-documentation/word-content/add-paragraph-text-Word-document-with-PHP

 

Says

border    string    Available values are:
none (default)
double
dashed
outset
inset
threeDEmboss
threeDEngrave
You can access to the complete list in: Border Styles.


I can't see a complete list of Border Styles anywhere? Single is one but are there any others? I could do with one with rounded corners if possible but I expect there isn't one. Thanks

Posted by admin  · 20-01-2020 - 09:40

Hello,

You can see the supported border styles in MS Word on http://officeopenxml.com/WPtableBorders.php . Or you can create a custom one using MS Word and import it to be used in your DOCX: https://www.phpdocx.com/api-documentation/layout-and-general/import-styles-from-a-Word-document-with-PHP

MS Word doesn't support adding rounded borders in contents, only using shapes: https://answers.microsoft.com/en-us/msoffice/forum/all/word-table-borders-are-rounded-corners-possible/7c9bfcf6-3820-4ed3-bc70-0b7e2030a5a1

Regards.

Posted by Knutsford  · 20-01-2020 - 09:45

I thought not - thanks - I expect single will do