private void initPdfWriter(Stream stream) { if ((int)_pdfRptData.DocumentPreferences.ConformanceLevel > (int)PdfXConformance.PDFX32002) { PdfWriter = PdfAWriter.GetInstance(PdfDoc, stream, PdfConformance.PdfXToPdfA[_pdfRptData.DocumentPreferences.ConformanceLevel]); } else { PdfWriter = PdfWriter.GetInstance(PdfDoc, stream); } var pageEvents = new PageEvents { PdfRptHeader = _pdfRptData.Header, PageSetup = _pdfRptData.DocumentPreferences, PdfRptFooter = _pdfRptData.Footer, CurrentRowInfoData = LastRenderedRowData, ColumnSummaryCellsData = ColumnSummaryCellsData }; PdfWriter.PageEvent = pageEvents; _pdfConformance = new PdfConformance { PdfWriter = PdfWriter, PageSetup = _pdfRptData.DocumentPreferences }; _pdfConformance.SetConformanceLevel(); }
private void initPdfWriter(Stream stream) { PdfWriter = PdfWriter.GetInstance(PdfDoc, stream); var pageEvents = new PageEvents { PdfRptHeader = _pdfRptData.Header, PageSetup = _pdfRptData.DocumentPreferences, PdfRptFooter = _pdfRptData.Footer, CurrentRowInfoData = LastRenderedRowData, ColumnSummaryCellsData = ColumnSummaryCellsData, MainTableEvents = _pdfRptData.MainTableEvents, PdfFont = _pdfRptData.PdfFont, PdfColumnsAttributes = _pdfRptData.PdfColumnsAttributes }; PdfWriter.PageEvent = pageEvents; _pdfConformance = new PdfConformance { PdfWriter = PdfWriter, PageSetup = _pdfRptData.DocumentPreferences }; _pdfConformance.SetConformanceLevel(); }