Exemplo n.º 1
0
        private static void SetUp(PdfRenderer renderer)
        {
            renderer.AddRenderer(new PanelRenderer());
            renderer.AddRenderer(new TextBlockRenderer());
            renderer.AddRenderer(new BorderRenderer());
            renderer.AddRenderer(new RectangleRenderer());
            renderer.AddRenderer(new LineRenderer());
#if WPF
            renderer.AddRenderer(new ShapeRenderer());
            renderer.AddRenderer(new FrameworkElementRenderer(
                                     typeof(ContentPresenter),
                                     typeof(Control),
                                     typeof(ItemsPresenter),
                                     typeof(System.Windows.Documents.AdornerLayer)));
#elif SILVERLIGHT
            renderer.AddRenderer(new PathRenderer());
            renderer.AddRenderer(new FrameworkElementRenderer(
                                     typeof(ContentPresenter),
                                     typeof(Control),
                                     typeof(ItemsPresenter)));
#endif
        }
Exemplo n.º 2
0
 internal PdfRenderContext(FixedContentEditor drawingSurface, PdfRenderer facade)
 {
     this.drawingSurface = drawingSurface;
     this.facade         = facade;
     this.opacity        = 1;
 }
Exemplo n.º 3
0
 static ExportHelper()
 {
     pdfRenderer = new PdfRenderer();
     SetUp(pdfRenderer);
 }