Class BatikSVGImage
java.lang.Object
com.openhtmltopdf.svgsupport.BatikSVGImage
- All Implemented Interfaces:
SVGDrawer.SVGImage
-
Constructor Summary
ConstructorsConstructorDescriptionBatikSVGImage(Element svgElement, Box box, double cssWidth, double cssHeight, double cssMaxWidth, double cssMaxHeight, double dotsPerPixel, CssContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawSVG(OutputDevice outputDevice, RenderingContext ctx, double x, double y) intintvoidsetFontResolver(PDFTranscoder.OpenHtmlFontResolver fontResolver) voidsetSecurityOptions(boolean allowScripts, boolean allowExternalResources, Set<String> allowedProtocols) voidsetUserAgentCallback(UserAgentCallback userAgentCallback)
-
Constructor Details
-
BatikSVGImage
public BatikSVGImage(Element svgElement, Box box, double cssWidth, double cssHeight, double cssMaxWidth, double cssMaxHeight, double dotsPerPixel, CssContext ctx)
-
-
Method Details
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceSVGDrawer.SVGImage
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceSVGDrawer.SVGImage
-
setFontResolver
-
setSecurityOptions
-
setUserAgentCallback
-
drawSVG
- Specified by:
drawSVGin interfaceSVGDrawer.SVGImage
-