Package com.itextpdf.svg.css
Class SvgStrokeParameterConverter
java.lang.Object
com.itextpdf.svg.css.SvgStrokeParameterConverter
This class converts stroke related SVG parameters and attributes into those from PDF specification.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class represents PDF dash parameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertStrokeDashParameters
(String strokeDashArray, String strokeDashOffset, float fontSize, SvgDrawContext context) Convert stroke related SVG parameters and attributes into PDF line dash parameters.
-
Constructor Details
-
SvgStrokeParameterConverter
private SvgStrokeParameterConverter()
-
-
Method Details
-
convertStrokeDashParameters
public static SvgStrokeParameterConverter.PdfLineDashParameters convertStrokeDashParameters(String strokeDashArray, String strokeDashOffset, float fontSize, SvgDrawContext context) Convert stroke related SVG parameters and attributes into PDF line dash parameters.- Parameters:
strokeDashArray
- 'stroke-dasharray' css property value.strokeDashOffset
- 'stroke-dashoffset' css property value.fontSize
- font size of the current element.context
- the svg draw context.- Returns:
- PDF line dash parameters represented by
SvgStrokeParameterConverter.PdfLineDashParameters
.
-