WordToPdfConverterConvertToPdf(String) Method

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.

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.5.0
C#
public byte[] ConvertToPdf(
	string docxFilePath
)

Parameters

docxFilePath  String
The full path to the DOCX file that will be converted to PDF

Return Value

Byte
A byte array containing the generated PDF document

See Also