Winnovative Word to PDF Converter

WordToPdfConverter Class

Winnovative Word to PDF Converter Documentation
This class is the main class of the Word to PDF Converter which offers the necessary methods to create a PDF document from a Word file or a Word stream. The generated PDF document can be saved into a memory buffer or into a file
Inheritance Hierarchy

SystemObject
  WnvWordToPdfWordToPdfConverter

Namespace:  WnvWordToPdf
Assembly:  wnvwordtopdf (in wnvwordtopdf.dll) Version: 10.0.0.0
Syntax

public class WordToPdfConverter

The WordToPdfConverter type exposes the following members.

Constructors

  NameDescription
Public methodWordToPdfConverter
Creates a Word to PDF converter using the default settings
Top
Properties

  NameDescription
Public propertyLicenseKey
Gets or sets the license key string received from the vendor in Word 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.
Public propertyStatic memberPdfConverterConcurrencyLevel
This static parameter gives the maximum number of threads in the current .NET application domain that can convert Word to PDF simultaneously. This parameter must be set before the first conversion performed in the current application domain. When this property is set with a negative value or zero the concurrency level is maximum. The default value is 4.
Public propertyPdfDocumentInfo
Gets a reference to the object to controlling the generated PDF document information like the document title, author, subject or creation date.
Public propertyPdfDocumentOptions
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.
Public propertyPdfFooterOptions
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.
Public propertyPdfHeaderOptions
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.
Public propertyPdfSecurityOptions
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.
Public propertyPdfViewerPreferences
Gets a reference to the object controlling how the generated PDF is displayed by a PDF viewer.
Top
Methods

  NameDescription
Public methodConvertWordFile(String)
Converts a Word file to PDF and returns the rendered PDF document into a memory buffer
Public methodConvertWordFile(String, String)
Converts a Word file to PDF and returns the rendered PDF document into a memory buffer. You can specify the password to open the Word document
Public methodConvertWordFile(String, Int32, Int32)
Converts a Word file to PDF and returns the rendered PDF document into a memory buffer. You can specify the page range to be exported to PDF
Public methodConvertWordFile(String, String, Int32, Int32)
Converts a Word file to PDF and returns the rendered PDF document into a memory buffer. You can specify the password to open the Word document and page range to be exported to PDF
Public methodConvertWordFileToFile(String, String)
Converts a Word file to PDF and writes the rendered PDF document into a file
Public methodConvertWordFileToFile(String, String, String)
Converts a Word file to PDF and writes the rendered PDF document into a file. You can specify the password to open the Word document
Public methodConvertWordFileToFile(String, Int32, Int32, String)
Converts a Word file to PDF and writes the rendered PDF document into a file. You can specify the page range to be exported to PDF
Public methodConvertWordFileToFile(String, String, Int32, Int32, String)
Converts a Word file to PDF and writes the rendered PDF document into a file. You can specify the password to open the Word document and the page range to be exported to PDF
Public methodConvertWordFileToPdfDocumentObject(String)
Converts a Word 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
Public methodConvertWordFileToPdfDocumentObject(String, String)
Converts a Word 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 Word document
Public methodConvertWordFileToPdfDocumentObject(String, Int32, Int32)
Converts a Word 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 page range to be exported to PDF
Public methodConvertWordFileToPdfDocumentObject(String, String, Int32, Int32)
Converts a Word 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 Word document and the page range to be exported to PDF
Public methodConvertWordFileToStream(String, Stream)
Converts a Word file to PDF and writes the rendered PDF document into a stream
Public methodConvertWordFileToStream(String, String, Stream)
Converts a Word file to PDF and writes the rendered PDF document into a stream. You can specify the password to open the Word document
Public methodConvertWordFileToStream(String, Int32, Int32, Stream)
Converts a Word file to PDF and writes the rendered PDF document into a stream. You can specify the page range to be exported to PDF
Public methodConvertWordFileToStream(String, String, Int32, Int32, Stream)
Converts a Word file to PDF and writes the rendered PDF document into a stream. You can specify the password to open the Word document and the page range to be exported to PDF
Public methodConvertWordStream(Stream)
Converts a Word document read from a stream to PDF and returns the rendered PDF document into a memory buffer
Public methodConvertWordStream(Stream, String)
Converts a Word document read from a stream to PDF and returns the rendered PDF document into a memory buffer. You can specify the password to open the Word document
Public methodConvertWordStream(Stream, Int32, Int32)
Converts a Word document read from a stream to PDF and returns the rendered PDF document into a memory buffer. You can specify the page range to be exported to PDF
Public methodConvertWordStream(Stream, String, Int32, Int32)
Converts a Word document read from a stream to PDF and returns the rendered PDF document into a memory buffer. You can specify the password to open the Word document and the page range to be exported to PDF
Public methodConvertWordStreamToFile(Stream, String)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a file
Public methodConvertWordStreamToFile(Stream, String, String)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a file. You can specify the password to open the Word document
Public methodConvertWordStreamToFile(Stream, Int32, Int32, String)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a file. You can specify the page range to be exported to PDF
Public methodConvertWordStreamToFile(Stream, String, Int32, Int32, String)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a file. You can specify the password to open the Word document and the page range to be exported to PDF
Public methodConvertWordStreamToPdfDocumentObject(Stream)
Converts a Word document read from a stream 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
Public methodConvertWordStreamToPdfDocumentObject(Stream, String)
Converts a Word document read from a stream 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 Word document
Public methodConvertWordStreamToPdfDocumentObject(Stream, Int32, Int32)
Converts a Word document read from a stream 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 page range to be exported to PDF
Public methodConvertWordStreamToPdfDocumentObject(Stream, String, Int32, Int32)
Converts a Word document read from a stream 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 Word document and the page range to be exported to PDF
Public methodConvertWordStreamToStream(Stream, Stream)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a stream
Public methodConvertWordStreamToStream(Stream, String, Stream)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a stream. You can specify the password to open the Word document
Public methodConvertWordStreamToStream(Stream, Int32, Int32, Stream)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a stream. You can specify the page range to be exported to PDF
Public methodConvertWordStreamToStream(Stream, String, Int32, Int32, Stream)
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a stream. You can specify the password to open the Word document and the page range to be exported to PDF
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetPageCount(Stream)
A fast method to obtain the page count of a PDF document from the specified stream.
Public methodStatic memberGetPageCount(String)
A fast method to obtain the page count of a PDF document from the specified file path.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events

  NameDescription
Public eventAfterRenderPdfPageEvent
The event is raised right after the Word to PDF converter finished PDF page rendering. The PDF page configuration like size, orientation, header or footer is already defined and cannot be changed. In the handler of this event PDF elements can be added in the foreground of the rendered PDF page.
Public eventBeforeRenderPdfPageEvent
The event is raised right before the page is rendered by Word to PDF converter. The PDF page configuration like size, orientation, header or footer is already defined and cannot be changed. In the handler of this event PDF elements can be added in the background of the PDF page to be rendered.
Public eventPrepareRenderPdfPageEvent
The event is raised after the Word to PDF converter created the PDF page and before starting rendering it. In the handler of this event the PDF page configuration like size, orientation, header or footer can still be changed before starting rendering.
Top
See Also

Reference