| Accusoft.PdfXpressSdk Namespace > Document Class : SaveToBuffer Method |
Saves a PDF Document into a new local memory buffer.
'Declaration Public Function SaveToBuffer( _ ByVal options As SaveOptions _ ) As Byte()
'Usage Dim instance As Document Dim options As SaveOptions Dim value() As Byte value = instance.SaveToBuffer(options)
public byte[] SaveToBuffer( SaveOptions options )
public: byte[]* SaveToBuffer( SaveOptions* options )
public: array<byte>^ SaveToBuffer( SaveOptions^ options )
The local memory buffer containing the saved PDF Document.
| Exception | Description |
|---|---|
| System.ArgumentNullException | |
| PdfXpressLibraryException | This exception occurs in the underlying PDF library. |
| PdfXpressLicensingException | Thrown if this feature is unavailable for the current license edition.
|
| PdfXpressException | This exception occurs in the main PDF library. |
The Document must contain at least one page to successfully save.