C# 클래스 PdfRpt.Core.Helper.PdfImageHelper

iTextSharp.text.Image class utilities
파일 보기 프로젝트 열기: VahidN/PdfReport

공개 메소드들

메소드 설명
GetBarcodeImage ( this barcode, string barcodeText, PdfContentByte cb ) : Image

Converts the barcodeText to a barcode image and then returns an instance of iTextSharp.text.Image

GetITextSharpImageFromAcroForm ( this pdfWriter, string pdfTemplateFilePath, IList data, Action onFillAcroForm, IList fonts, int pageNumber = 1 ) : Image

Fills an AcroForm automatically and then Converts the selected page number of an existing pdf template file to an instance of iTextSharp.text.Image

GetITextSharpImageFromByteArray ( this data, bool cacheImages = true ) : Image

Converts an array of bytes/blobs of an image file to an instance of iTextSharp.text.Image

GetITextSharpImageFromImageFile ( this imageFilePath, bool cacheImages = true ) : Image

Gets an image's file path and returns an instance of iTextSharp.text.Image

GetITextSharpImageFromPdfTemplate ( this pdfWriter, string pdfTemplateFilePath, int pageNumber = 1 ) : Image

Converts the selected page number of an existing pdf template file to an instance of iTextSharp.text.Image

비공개 메소드들

메소드 설명
checkImage ( this img ) : Image

메소드 상세

GetBarcodeImage() 공개 정적인 메소드

Converts the barcodeText to a barcode image and then returns an instance of iTextSharp.text.Image
public static GetBarcodeImage ( this barcode, string barcodeText, PdfContentByte cb ) : Image
barcode this Barcode type defined in the iTextSharp.text.pdf namespace
barcodeText string Text to convert
cb iTextSharp.text.pdf.PdfContentByte Canvas
리턴 iTextSharp.text.Image

GetITextSharpImageFromAcroForm() 공개 정적인 메소드

Fills an AcroForm automatically and then Converts the selected page number of an existing pdf template file to an instance of iTextSharp.text.Image
public static GetITextSharpImageFromAcroForm ( this pdfWriter, string pdfTemplateFilePath, IList data, Action onFillAcroForm, IList fonts, int pageNumber = 1 ) : Image
pdfWriter this PdfWriter object
pdfTemplateFilePath string pdf file path
data IList Row's data
onFillAcroForm Action FillAcroForm Formula
fonts IList Controls fonts
pageNumber int selected page number of an existing pdf template file
리턴 iTextSharp.text.Image

GetITextSharpImageFromByteArray() 공개 정적인 메소드

Converts an array of bytes/blobs of an image file to an instance of iTextSharp.text.Image
public static GetITextSharpImageFromByteArray ( this data, bool cacheImages = true ) : Image
data this blob data
cacheImages bool If true, the image bytes will be added to the PDF only once, not per each new instance. Therefore the result won't be a bloated PDF file. Choose this option if there are many similar images in your data source.
리턴 iTextSharp.text.Image

GetITextSharpImageFromImageFile() 공개 정적인 메소드

Gets an image's file path and returns an instance of iTextSharp.text.Image
public static GetITextSharpImageFromImageFile ( this imageFilePath, bool cacheImages = true ) : Image
imageFilePath this Image's file path
cacheImages bool If true, the image bytes will be added to the PDF only once, not per each new instance. Therefore the result won't be a bloated PDF file. Choose this option if there are many similar images in your data source.
리턴 iTextSharp.text.Image

GetITextSharpImageFromPdfTemplate() 공개 정적인 메소드

Converts the selected page number of an existing pdf template file to an instance of iTextSharp.text.Image
public static GetITextSharpImageFromPdfTemplate ( this pdfWriter, string pdfTemplateFilePath, int pageNumber = 1 ) : Image
pdfWriter this PdfWriter object
pdfTemplateFilePath string pdf file path
pageNumber int selected page number of an existing pdf template file
리턴 iTextSharp.text.Image