Skip to main content
Skip table of contents

SVG: support exponent notation for numbers with capital E

There was a bug in SVG processing where the use of a capital 'E' for exponent notation would cause rendering issues by causing incorrect calculation of parameters.

In earlier versions of iText 7 Core, the notation below would cause problems with dimension calculations in a rectangle, for example:  
<rect width="3E2" height="1E2px"style="...">

would result in the rectangle being rendered incorrectly, like this:


In 7.2.3. lower case and upper case 'E' exponent notation may be used interchangeably and rendering will work without issues. The rectangle shown above will now be rendered like this:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.