Renders a page into an array of bytes.

 

   

Syntax
 

[C#]
byte[] GetData(string name)

[Visual Basic]
Function GetData(name As String) As Byte()

Throws Exceptions may throw Exception()

 

   

Params
 
Name Description
name A dummy file name used to determine the type of image required.
return The image as an array of bytes.

 

   

Notes
 

Renders a page into an array of bytes. The current page at the time the operation has been created is rendered.

This method is similar in functionality to XRendering.GetData(), but it can be safely called on different instances of RenderOperation from different threads even for the same page of the same document provided the page is not modified while being rendered because the document rendering options and current page are saved when the operation is created.

 

   

Example
 

See the Save method.