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.
|
void |
resolveContentAndCountersStyles(com.itextpdf.styledxmlparser.node.INode node, CssContext context)
Resolves content and counter(s) styles of a node given the passed context.
|
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 ListgetFonts()
CssFontFaceRule
instances
public void resolveContentAndCountersStyles(com.itextpdf.styledxmlparser.node.INode node, CssContext context)
node
- the node
context
- the CSS context (RootFontSize, etc.)
Copyright © 1998–2021 iText Group NV. All rights reserved.