Accusoft.PdfXpressSdk Namespace > Document Class : SaveToHandle Method |
Saves a PDF Document into a new global memory buffer, accessed using a global handle.
'Declaration Public Function SaveToHandle( _ ByVal options As SaveOptions _ ) As IntPtr
'Usage Dim instance As Document Dim options As SaveOptions Dim value As IntPtr value = instance.SaveToHandle(options)
public IntPtr SaveToHandle( SaveOptions options )
public: IntPtr SaveToHandle( SaveOptions* options )
public: IntPtr SaveToHandle( SaveOptions^ options )
The handle to the global memory buffer containing the saved PDF Document.
Exception | Description |
---|---|
System.ArgumentException | The exception that is thrown when a null reference is passed to a method that does not accept it as a valid argument. |
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.
The caller is responsible for releasing global handle using the Windows function GlobalFree( globalHandle ) to avoid a resource leak.