/// <summary> /// Creates new /// <see cref="SvgProcessorResult"/> /// entity. /// </summary> /// <param name="namedObjects"> /// a map of named-objects with their id's as /// <see cref="System.String"/> /// keys and /// the /// <see cref="iText.Svg.Renderers.ISvgNodeRenderer"/> /// objects as values. /// </param> /// <param name="root"> /// a wrapped /// <see cref="iText.Svg.Renderers.ISvgNodeRenderer"/> /// root renderer. /// </param> /// <param name="context"> /// a /// <see cref="SvgProcessorContext"/> /// instance. /// </param> public SvgProcessorResult(IDictionary <String, ISvgNodeRenderer> namedObjects, ISvgNodeRenderer root, SvgProcessorContext context) { this.namedObjects = namedObjects; this.root = root; this.fontProvider = context.GetFontProvider(); this.tempFonts = context.GetTempFonts(); this.context = context; }
/// <summary>Load in configuration, set initial processorState and create/fill-in context of the processor</summary> /// <param name="converterProps">that contains configuration properties and operations</param> internal virtual void PerformSetup(INode root, ISvgConverterProperties converterProps) { processorState = new ProcessorState(); if (converterProps.GetRendererFactory() != null) { rendererFactory = converterProps.GetRendererFactory(); } context = new SvgProcessorContext(converterProps); cssResolver = new SvgStyleResolver(root, context); new SvgFontProcessor(context).AddFontFaceFonts(cssResolver); //TODO RND-1042 namedObjects = new Dictionary<String, ISvgNodeRenderer>(); cssContext = new SvgCssContext(); }