Skip to content

Conversation

troosan
Copy link
Contributor

@troosan troosan commented Jan 21, 2017

fix for issue #976
I opted for the call to the Convertor as I'm not for duplicating code :-)

@troosan
Copy link
Contributor Author

troosan commented Jan 22, 2017

So, I broke the tests ...
It seems to me the constants defined in Section are wrong too.
DEFAULT_WIDTH is set to 11870 for instance

Using http://www.unitconversion.org/typography/twips-to-millimeters-conversion.html for instance, when you convert 11870 in mm, you end up with 209.373611111, which should in fact be 210 (A4 format is 210 x 297)

As far as I can see those values were changed by @ivanlanin. I guess all this started from the wrong conversion rate used in the Paper class.

@troosan troosan added this to the v0.14.0 milestone Jun 27, 2017
@troosan troosan merged commit f59b722 into PHPOffice:develop Jul 1, 2017
@troosan troosan deleted the paper_size_computation branch July 10, 2017 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant