-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Paragraph Indent Units #507
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
Milestone
Comments
looks even weirder here... is it using half inches? |
i can confirm the issue. Sample code without any changes made by custom code, only read and write operations (you need to specify paragraph's indent in sample docx file) $phpWord = \PhpOffice\PhpWord\IOFactory::load($tempFile);
$phpWord->save('sample.docx', 'Word2007', true);
|
4 tasks
This issue has been fixed by a maintainer. You can help him by sponsoring him through Github sponsors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Comments?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: