コード例 #1
0
 virtual public void SetUp()
 {
     i.SetCssAppliers(new CssAppliersImpl());
     I.Attributes[HTML.Attribute.SRC] = RESOURCES + "images.jpg";
     workerContextImpl = new WorkerContextImpl();
     workerContextImpl.Put(typeof(HtmlPipeline).FullName, new HtmlPipelineContext(null));
 }
コード例 #2
0
        public override IPipeline Init(IWorkerContext context)
        {
            HtmlPipelineContext clone = (HtmlPipelineContext)hpc.Clone();

            context.Put(GetContextKey(), clone);
            return(GetNext());
        }
コード例 #3
0
 public override IPipeline Init(IWorkerContext context) {
     try {
         ObjectContext<ICSSResolver> mc = new ObjectContext<ICSSResolver>(resolver.Clear());
         context.Put(GetContextKey(), mc);
         return base.Init(context);
     } catch (CssResolverException e) {
         throw new PipelineException(e);
     }
 }
コード例 #4
0
ファイル: CssResolverPipeline.cs プロジェクト: NKINC/pdforms
 public override IPipeline Init(IWorkerContext context) {
     try {
         ObjectContext<ICSSResolver> mc = new ObjectContext<ICSSResolver>(resolver.Clear());
         context.Put(GetContextKey(), mc);
         return base.Init(context);
     } catch (CssResolverException e) {
         throw new PipelineException(e);
     }
 }
コード例 #5
0
ファイル: SvgPipeline.cs プロジェクト: w16014936/itextsharp
 public override IPipeline Init(IWorkerContext context)
 {
     try {
         SvgPipelineContext clone = (SvgPipelineContext)hpc.Clone();
         context.Put(GetContextKey(), clone);
     } catch (Exception e) {
         String message = String.Format(LocaleMessages.GetInstance().GetMessage(LocaleMessages.UNSUPPORTED_CLONING),
                                        hpc.GetType().FullName);
         throw new PipelineException(message, e);
     }
     return(GetNext());
 }
コード例 #6
0
 public override IPipeline Init(IWorkerContext context) {
     MapContext mc = new MapContext();
     continiously = true;
     mc[CONTINUOUS] = continiously;
     if (null != doc) {
         mc[DOCUMENT] = doc;
     }
     if (null != writer) {
         mc[WRITER] = writer;
     }
     context.Put(GetContextKey(), mc);
     return base.Init(context);
 }
コード例 #7
0
 public override IPipeline Init(IWorkerContext context) {
     MapContext mc = new MapContext();
     continiously = true;
     mc[CONTINUOUS] = continiously;
     if (null != doc) {
         mc[DOCUMENT] = doc;
     }
     if (null != writer) {
         mc[WRITER] = writer;
     }
     context.Put(GetContextKey(), mc);
     return base.Init(context);
 }
コード例 #8
0
ファイル: ImageTest.cs プロジェクト: newlysoft/itextsharp
 virtual public void SetUp() {
     i.SetCssAppliers(new CssAppliersImpl());
     I.Attributes[HTML.Attribute.SRC] = RESOURCES + "images.jpg";
     workerContextImpl = new WorkerContextImpl();
     workerContextImpl.Put(typeof (HtmlPipeline).FullName, new HtmlPipelineContext(null));
 }
コード例 #9
0
        public override IPipeline Init(IWorkerContext context) {
            HtmlPipelineContext clone = (HtmlPipelineContext)hpc.Clone();
            context.Put(GetContextKey(), clone);
            return GetNext();

        }
コード例 #10
0
	    public override IPipeline Init(IWorkerContext context) {
		    try {
			    SvgPipelineContext clone = (SvgPipelineContext)hpc.Clone();
			    context.Put(GetContextKey(), clone);
		    } catch (Exception e) {
			    String message = String.Format(LocaleMessages.GetInstance().GetMessage(LocaleMessages.UNSUPPORTED_CLONING),
					    hpc.GetType().FullName);
			    throw new PipelineException(message, e);
		    }
		    return GetNext();

	    }