WordToPdfConverter Class

Provides functionality for converting Word (.docx) documents to PDF format with support for customization options such as metadata, security and viewer preferences

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.5.0
C#
public class WordToPdfConverter
Inheritance
Object    WordToPdfConverter

Constructors

WordToPdfConverter Initializes a new instance of the WordToPdfConverter class with default options

Properties

PdfDocumentOptions Gets a reference to the object controlling the conversion process and the generated PDF document properties like PDF document margins, PDF page size and orientation, PDF document header and footer
ProcessPageBreakMarks Gets or sets a value indicating whether page break marks from Word documents should be processed and rendered in the output PDF. The default value is true.
WordLoaderFilePath Sets the full path of Word loader file

Methods

ConvertToPdf(Byte) Converts a Word document to a PDF byte array. The input must be a valid DOCX file provided as a byte array. The resulting PDF content is returned as a byte array, which can be saved, streamed or transmitted as needed.
ConvertToPdf(String) Converts a Word file from the specified file path to a PDF byte array. The input file must be a valid DOCX format document. The resulting PDF content is returned as a byte array, which can be saved to disk, sent over a network, or written directly to a response stream.
ConvertToPdfFile(Byte, String) Converts a Word document from a byte array to PDF and saves the result to a specified file path
ConvertToPdfFile(String, String) Converts a Word document from a file path to PDF and saves the result to a specified file path
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also