Пример #1
0
 public PdfRenderer(PdfFontResolver fontResolver = null)
 {
     _disposeFontResolver = fontResolver == null;
     FontResolver         = fontResolver ?? new PdfFontResolver();
     RegisterRenderer(new PanelRenderer());
     RegisterRenderer(new TextRenderer <Link>());
     RegisterRenderer(new TextRenderer <Label>());
     RegisterRenderer(new TextRenderer <TextBox>());
     RegisterRenderer(new ImageRenderer());
     RegisterRenderer(new ViewportRenderer());
 }
Пример #2
0
 public PdfRendererContext(XGraphics graphics, PdfFontResolver fontResolver, PdfBitmapCache localBitmapCache)
 {
     _localBitmapCache = localBitmapCache;
     Graphics          = graphics;
     FontResolver      = fontResolver;
 }