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
WnvWordToPdfWordToPdfConverter
Namespace: WnvWordToPdf
Assembly: wnvwordtopdf (in wnvwordtopdf.dll) Version: 10.0.0.0
Syntax
The WordToPdfConverter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WordToPdfConverter |
Creates a Word to PDF converter using the default settings
|
Properties
Name | Description | |
---|---|---|
LicenseKey |
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.
| |
PdfConverterConcurrencyLevel |
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.
| |
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.
|
Methods
Name | Description | |
---|---|---|
ConvertWordFile(String) |
Converts a Word file to PDF and returns the rendered PDF document into a memory buffer
| |
ConvertWordFile(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
| |
ConvertWordFile(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
| |
ConvertWordFile(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
| |
ConvertWordFileToFile(String, String) |
Converts a Word file to PDF and writes the rendered PDF document into a file
| |
ConvertWordFileToFile(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
| |
ConvertWordFileToFile(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
| |
ConvertWordFileToFile(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
| |
ConvertWordFileToPdfDocumentObject(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
| |
ConvertWordFileToPdfDocumentObject(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
| |
ConvertWordFileToPdfDocumentObject(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
| |
ConvertWordFileToPdfDocumentObject(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
| |
ConvertWordFileToStream(String, Stream) |
Converts a Word file to PDF and writes the rendered PDF document into a stream
| |
ConvertWordFileToStream(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
| |
ConvertWordFileToStream(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
| |
ConvertWordFileToStream(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
| |
ConvertWordStream(Stream) |
Converts a Word document read from a stream to PDF and returns the rendered PDF document into a memory buffer
| |
ConvertWordStream(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
| |
ConvertWordStream(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
| |
ConvertWordStream(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
| |
ConvertWordStreamToFile(Stream, String) |
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a file
| |
ConvertWordStreamToFile(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
| |
ConvertWordStreamToFile(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
| |
ConvertWordStreamToFile(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
| |
ConvertWordStreamToPdfDocumentObject(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
| |
ConvertWordStreamToPdfDocumentObject(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
| |
ConvertWordStreamToPdfDocumentObject(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
| |
ConvertWordStreamToPdfDocumentObject(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
| |
ConvertWordStreamToStream(Stream, Stream) |
Converts a Word document read from a stream to PDF and writes the rendered PDF document into a stream
| |
ConvertWordStreamToStream(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
| |
ConvertWordStreamToStream(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
| |
ConvertWordStreamToStream(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
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetPageCount(Stream) |
A fast method to obtain the page count of a PDF document from the specified stream.
| |
GetPageCount(String) |
A fast method to obtain the page count of a PDF document from the specified file path.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
AfterRenderPdfPageEvent |
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.
| |
BeforeRenderPdfPageEvent |
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.
| |
PrepareRenderPdfPageEvent |
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.
|
See Also