-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Milestone
Description
Hello,
I am confused about the paragraph style indent units. The docs say that the defaults measurement units are twips, which is fine, but when adding an indent value to a paragaraph style, they are not in twips. The value set is multiplied by 720. So, if I enter a value of 4, it comes out as 2880 twips, or 2 inches (5.08 cm). Why not just use twips? Then one could use the converters.
PHPWord/src/PhpWord/Style/Paragraph.php
Line 181 in 3f13650
$value = $value * 720; |
$phpWord->addTitleStyle(1, [
'size'=>22,
'color'=>'194775',
'bold'=>true,
'name'=>'Cambria',
'allCaps'=>true
], [
'align'=>'right',
'indent'=>4 // 2880 twips = confusion
]);
Comments?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
samsullivan, chong3397, kaeldric, nk-sn and qwertynik
Metadata
Metadata
Assignees
Labels
No labels