Example #1
0
 public override void Visit(ExportPage page)
 {
     PdfPage = pdfDocument.AddPage();
     xGraphics = XGraphics.FromPdfPage(PdfPage);
     textFormatter  = new XTextFormatter(xGraphics);
     base.Visit(page);
 }
Example #2
0
 public virtual void Visit(ExportPage page)
 {
     foreach (var element in page.ExportedItems) {
         var ac = element as IAcceptor;
         ac.Accept(this);
     }
 }
		public static FixedPage CreateFixedPage(ExportPage exportPage) {
			var fixedPage = new FixedPage();
			fixedPage.Width = exportPage.Size.ToWpf().Width;
			fixedPage.Height = exportPage.Size.ToWpf().Height;
			fixedPage.Background = new SolidColorBrush(System.Drawing.Color.White.ToWpf());
			return fixedPage;
		}
Example #4
0
		public override void Visit(ExportPage page){
			fixedPage = FixedDocumentCreator.CreateFixedPage(page);
			FixedPage = fixedPage;
			foreach (var element in page.ExportedItems) {
				AsAcceptor(element).Accept(this);
				fixedPage.Children.Add(sectionCanvas);
			}
		}
		public override void Visit(ExportPage page)
		{
			evaluator.AddPageInfo(page.PageInfo);
			base.Visit(page);
		}
Example #6
0
		ExportContainer CreateContainerForSection(ExportPage parent,Point location ){
			var detail = (ExportContainer)CurrentSection.CreateExportColumn();
			detail.Location = location;
			detail.Parent = parent;
			return detail;
		}
Example #7
0
 public override void Visit(ExportPage page)
 {
     base.Visit(page);
 }