public class DefaultCssResolver extends Object implements com.itextpdf.styledxmlparser.css.ICssResolver
ICssResolver
interface.
Constructor and Description |
---|
DefaultCssResolver(com.itextpdf.styledxmlparser.node.INode treeRoot, com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription mediaDeviceDescription, com.itextpdf.styledxmlparser.resolver.resource.ResourceResolver resourceResolver)
Creates a new DefaultCssResolver instance.
|
DefaultCssResolver(com.itextpdf.styledxmlparser.node.INode treeRoot, ProcessorContext context)
Creates a new DefaultCssResolver instance.
|
Modifier and Type | Method and Description |
---|---|
List |
getFonts()
Gets the list of fonts.
|
Map<String,String> |
resolveStyles(com.itextpdf.styledxmlparser.node.INode element, com.itextpdf.styledxmlparser.css.resolve.AbstractCssContext context) |
public DefaultCssResolver(com.itextpdf.styledxmlparser.node.INode treeRoot, com.itextpdf.styledxmlparser.css.media.MediaDeviceDescription mediaDeviceDescription, com.itextpdf.styledxmlparser.resolver.resource.ResourceResolver resourceResolver)
DefaultCssResolver
instance.
treeRoot
- the root node
mediaDeviceDescription
- the media device description
resourceResolver
- the resource resolver
public DefaultCssResolver(com.itextpdf.styledxmlparser.node.INode treeRoot, ProcessorContext context)
DefaultCssResolver
instance.
treeRoot
- the root node
context
- the processor context
public Map<String,String> resolveStyles(com.itextpdf.styledxmlparser.node.INode element, com.itextpdf.styledxmlparser.css.resolve.AbstractCssContext context)
resolveStyles
in interface com.itextpdf.styledxmlparser.css.ICssResolver
public ListgetFonts()
CssFontFaceRule
instances
Copyright © 1998–2019 iText Group NV. All rights reserved.