ExcelToPdfConverter Class

This class is the main class of the Excel to PDF Converter which offers the necessary methods to create a PDF document from an Excel file or an Excel document data. The generated PDF document can be saved into a memory buffer or into a file

Definition

Namespace: EvoPdfClient
Assembly: EvoPdfClient (in EvoPdfClient.dll) Version: 11.0.0.0 (11.0.0.0)
C#
public class ExcelToPdfConverter
Inheritance
Object    ExcelToPdfConverter

Constructors

ExcelToPdfConverter Constructs a Excel to PDF converter which will connect to localhost on the default port
ExcelToPdfConverter(String) Constructs a Excel to PDF converter which will connect to the server specified by IP or by name on the default port
ExcelToPdfConverter(UInt32) Constructs a Excel to PDF converter which will connect to localhost on the specified port
ExcelToPdfConverter(Boolean, String) Constructs a Excel to PDF converter which will connect to a web service URL
ExcelToPdfConverter(String, UInt32) Constructs a Excel to PDF converter which will connect to the server specified by IP or by name on the specified port

Properties

ClientProxy You can set this property with an object implementing the IWebProxy interface to be used when accessing the Web Service through a proxy server. This property does not have any effect when using a TCP Service
LicenseKey Gets or sets the license key string received from the vendor in Excel to PDF converter. If this property is null the converter will automatically enter in evaluation mode and a demo watermark will be displayed on the generated PDF document.
PdfDocumentInfo Gets a reference to the object to controlling the generated PDF document information like the document title, author, subject or creation date.
PdfDocumentOptions Gets a reference to the object controlling the conversion process and the generated PDF document properties. This property can be used to control the PDF document margins, PDF compression level, JPEG compression level, the PDF page size and orientation, the PDF document headers and footers, true type fonts embedding, fit width and stretch to fit, conversion to a single PDF page, append or prepend external PDF documents.
PdfFooterOptions Gets a reference to an object to control the generated PDF document footer options. The footer is displayed in the generated PDF document only if the ShowFooter property is true.
PdfHeaderOptions Gets a reference to an object to control the generated PDF document header options. The header is displayed in the generated PDF document only if the ShowHeader property is true.
PdfSecurityOptions Gets a reference to the object to controlling the generated PDF document security settings like user and owner password, restrict printing or editing of the generated PDF document.
PdfViewerPreferences Gets a reference to the object controlling how the generated PDF is displayed by a PDF viewer.
Port The server port number
Server The server IP or name
ServicePassword Gets or sets the converter service password. You have to set this property if the ervice is password protected.
ShowAllContent Gets or sets a flag indicating if the cells are resized to show all content. The default value is true
UseWebService A flag indicating if the client library will call the Web service or the TCP service to perform the conversion
WebServiceUrl The web service URL

Methods

ConvertExcelData(Byte) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document into a memory buffer
ConvertExcelData(Byte, Int32) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document into a memory buffer. You can specify the list of worksheets to be exported to PDF
ConvertExcelData(Byte, String) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document into a memory buffer
ConvertExcelData(Byte, String, Int32) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document into a memory buffer. You can specify the password to open the Excel File and the list of worksheets to be exported to PDF
ConvertExcelDataToFile(Byte, String) Converts an Excel document read from a data buffer to PDF and writes the rendered PDF document into a file
ConvertExcelDataToFile(Byte, Int32, String) Converts an Excel document read from a data buffer to PDF and writes the rendered PDF document into a file. You can specify the list of worksheets to be exported to PDF
ConvertExcelDataToFile(Byte, String, String) Converts an Excel document read from a data buffer to PDF and writes the rendered PDF document into a file
ConvertExcelDataToFile(Byte, String, Int32, String) Converts an Excel document read from a data buffer to PDF and writes the rendered PDF document into a file. You can specify the password to open the Excel document and the list of worksheets to be exported to PDF
ConvertExcelDataToPdfDocumentObject(Byte) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects
ConvertExcelDataToPdfDocumentObject(Byte, Int32) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects. You can specify the list of worksheets to be exported to PDF
ConvertExcelDataToPdfDocumentObject(Byte, String) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects
ConvertExcelDataToPdfDocumentObject(Byte, String, Int32) Converts an Excel document read from a data buffer to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects. You can specify the password to open the Excel document and the list of worksheets to be exported to PDF
ConvertExcelFile(String) Converts an Excel file to PDF and returns the rendered PDF document into a memory buffer
ConvertExcelFile(String, Int32) Converts an Excel file to PDF and returns the rendered PDF document into a memory buffer. You can specify the list of worksheets to be exported to PDF
ConvertExcelFile(String, String) Converts an Excel file to PDF and returns the rendered PDF document into a memory buffer
ConvertExcelFile(String, String, Int32) Converts an Excel file to PDF and returns the rendered PDF document into a memory buffer. You can specify the list of worksheets to be exported to PDF
ConvertExcelFileToFile(String, String) Converts an Excel file to PDF and writes the rendered PDF document into a file
ConvertExcelFileToFile(String, Int32, String) Converts an Excel file to PDF and writes the rendered PDF document into a file. You can specify the list of worksheets to be exported to PDF
ConvertExcelFileToFile(String, String, String) Converts an Excel file to PDF and writes the rendered PDF document into a file
ConvertExcelFileToFile(String, String, Int32, String) Converts an Excel file to PDF and writes the rendered PDF document into a file. You can specify the password to open the Excel document and the list of worksheets to be exported to PDF
ConvertExcelFileToPdfDocumentObject(String) Converts an Excel file to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects
ConvertExcelFileToPdfDocumentObject(String, Int32) Converts an Excel file to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects. You can specify the list of worksheets to be exported to PDF
ConvertExcelFileToPdfDocumentObject(String, String) Converts an Excel file to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects
ConvertExcelFileToPdfDocumentObject(String, String, Int32) Converts an Excel file to PDF and returns the rendered PDF document as an object of the Document class that can be further used in other operations requiring this type of objects. You can specify the password to open the Excel document and the list of worksheets to be exported to PDF
EqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also