Class ImageToPdfConverter
Represents the image to PDF converter
Inheritance
System.Object
ImageToPdfConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class ImageToPdfConverter
Constructors
ImageToPdfConverter()
Initializes the new instance of the image to PDF converter class
Declaration
public ImageToPdfConverter()
Properties
ImagePosition
Gets or sets the position of the image
Declaration
public PdfImagePosition ImagePosition { get; set; }
Property Value
| Type |
|---|
| PdfImagePosition |
Margin
Gets or sets the margin of the PDF page
Declaration
public PdfMargins Margin { get; set; }
Property Value
| Type |
|---|
| PdfMargins |
PageSize
Gets or sets the size of the PDF page
Declaration
public SizeF PageSize { get; set; }
Property Value
| Type |
|---|
| System.Drawing.SizeF |
Methods
Convert(IEnumerable<Image>)
Convert images to PDF document
Declaration
public PdfDocument Convert(IEnumerable<Image> images)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Drawing.Image> | images | Collection of images |
Returns
| Type | Description |
|---|---|
| PdfDocument | PDF document |
Convert(IEnumerable<Stream>)
Convert images to PDF Document
Declaration
public PdfDocument Convert(IEnumerable<Stream> images)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.IO.Stream> | images | Collection of image streams |
Returns
| Type | Description |
|---|---|
| PdfDocument | PDF document |
Convert(IEnumerable<String>)
Convert images to PDF document
Declaration
public PdfDocument Convert(IEnumerable<string> imageFileNames)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.String> | imageFileNames | Collection of image file path |
Returns
| Type | Description |
|---|---|
| PdfDocument | PDF document |
Convert(Image)
Convert image to PDF document
Declaration
public PdfDocument Convert(Image image)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Image | image | System.Drawing.Image instance to convert PDF |
Returns
| Type | Description |
|---|---|
| PdfDocument | PDF document |
Convert(Stream)
Convert image to PDF document
Declaration
public PdfDocument Convert(Stream image)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | image | The image stream |
Returns
| Type | Description |
|---|---|
| PdfDocument | PDF document |
Convert(String)
Convert image to PDF document
Declaration
public PdfDocument Convert(string imageFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | imageFileName | Image file path |
Returns
| Type | Description |
|---|---|
| PdfDocument | PDF document |