You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: svg/src/main/java/com/itextpdf/svg/renderers/impl/PathSvgNodeRenderer.java
+49-21Lines changed: 49 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ public class PathSvgNodeRenderer extends AbstractSvgNodeRenderer {
76
76
/**
77
77
* The regular expression to find invalid operators in the <a href="https://www.w3.org/TR/SVG/paths.html#PathData">PathData attribute of the <path> element</a>
78
78
* <p>
79
-
* Find any occurence of a letter that is not an operator
79
+
* Find any occurrence of a letter that is not an operator
@@ -85,9 +85,17 @@ public class PathSvgNodeRenderer extends AbstractSvgNodeRenderer {
85
85
* The regular expression to split the <a href="https://www.w3.org/TR/SVG/paths.html#PathData">PathData attribute of the <path> element</a>
86
86
* <p>
87
87
* Since {@link PathSvgNodeRenderer#containsInvalidAttributes(String)} is called before the use of this expression in {@link PathSvgNodeRenderer#parsePathOperations()} the attribute to be split is valid.
88
-
* The regex splits at each letter.
88
+
*
89
+
* SVG defines 6 types of path commands, for a total of 20 commands:
0 commit comments