Click or drag to resize
Pdf Library for .NET

WordToPdfConvertBytes(Byte, WordFormat) Method

Converts a Word document held in memory to pdf, reading it as the given format.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfDocument ConvertBytes(
	byte[] data,
	WordFormat format
)

Parameters

data  Byte
The bytes of the document. Cannot be null.
format  WordFormat
The format the bytes are read as.

Return Value

PdfDocument
A PdfDocument containing the converted content. The caller is responsible for saving and closing the returned document.
Exceptions
ExceptionCondition
WordToPdfException Thrown when data is null, or the document cannot be read or rendered.
See Also