C# Class PDF_From_Template.PDFFromTemplateHelper

Mostra file Open project: BernhardPosselt/itp-bif3

Public Methods

Method Description
AddPictureInPdfDocument ( Stream inputImageStream, AbsolutPosition absolutPosition ) : void
AddTableInPdfDocument ( string tableIdentifier, Table table ) : void
CloseDocumentAndReturnStream ( ) : MemoryStream
LoadPdfDocumentFromTemplate ( string pathToPdfTemplate ) : PDFFromTemplateHelper
SetPDFFieldValueInPdfDocument ( string pdfFieldName, string value ) : void
SetPDFFieldValueInPdfDocument ( string pdfFieldName, string value, string display ) : void

Private Methods

Method Description
ClosePdfDocument ( ) : void
CreatePDFDocument ( string templateFileName ) : PdfDocument
DisableFieldsForEditing ( ) : void
GetPDFReader ( FileStream templateFileStream ) : PdfReader
GetPDFStamper ( FileStream templateFileStream, MemoryStream outputStream ) : PdfStamper
GetPdfTable ( float width, Table table ) : PdfPTable
InitPDFStamper ( PdfReader pdfReader, MemoryStream outputStream ) : PdfStamper
PDFFromTemplateHelper ( PdfDocument pdfDocument ) : System.IO
SetColumnValues ( Table table, PdfPTable pdfTable ) : void

Method Details

AddPictureInPdfDocument() public method

public AddPictureInPdfDocument ( Stream inputImageStream, AbsolutPosition absolutPosition ) : void
inputImageStream System.IO.Stream
absolutPosition AbsolutPosition
return void

AddTableInPdfDocument() public method

public AddTableInPdfDocument ( string tableIdentifier, Table table ) : void
tableIdentifier string
table iTextSharp.text.Table
return void

CloseDocumentAndReturnStream() public method

public CloseDocumentAndReturnStream ( ) : MemoryStream
return System.IO.MemoryStream

LoadPdfDocumentFromTemplate() public static method

public static LoadPdfDocumentFromTemplate ( string pathToPdfTemplate ) : PDFFromTemplateHelper
pathToPdfTemplate string
return PDFFromTemplateHelper

SetPDFFieldValueInPdfDocument() public method

public SetPDFFieldValueInPdfDocument ( string pdfFieldName, string value ) : void
pdfFieldName string
value string
return void

SetPDFFieldValueInPdfDocument() public method

public SetPDFFieldValueInPdfDocument ( string pdfFieldName, string value, string display ) : void
pdfFieldName string
value string
display string
return void