Click or drag to resize
Pdf Library for .NET

WordToPdfConvertBytes(Byte) Method

Converts a Word document held in memory to pdf. The format is detected from the content (docx family, doc, rtf, WordML); plain text, html and markdown have no signature and must be named with ConvertBytes(Byte, WordFormat).

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

Parameters

data  Byte
The bytes of the document. Cannot be null.

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