 |
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.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic PdfDocument ConvertBytes(
byte[] data
)
Public Function ConvertBytes (
data As Byte()
) As PdfDocument
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| Exception | Condition |
|---|
| WordToPdfException |
Thrown when data is null, or the document cannot be read or rendered.
|
See Also