Renders and saves the current area of the current page.

 

   

Syntax
 

[C#]
virtual void Save(string path)
virtual void Save(string name, Stream stream)

[Visual Basic]
Sub Save(ByVal path As String)
Sub Save(ByVal name As String, ByRef stream As Stream)

Throws Exceptions may throw Exception()

 

   

Params
 
Name Description
path The destination file path.
name A dummy file name used to determine the type of image required.
stream The destination stream.

 

   

Notes
 

Use this method to render the PDF.

The output is a render of the current Doc.Rect of the current Doc.Page.

Any page rotation specified in the PDF page is applied so that the output render is the correct orientation. This may mean that the output width and height are transposed copies of the width and height as specified in the Doc.Rect.

The file path extension determines the format of the output. The file name extensions which may be used are .TIF, .TIFF, .JPG, .GIF, .PNG, .BMP, .JP2, .EMF and .PS. JP2 is used for the JPEG 2000 format. EMF is a vector rather than raster format which can be useful when you require resolution independence and smaller files. PS is raw vector PostScript-compatible output.

 

   

Example
 

See the AntiAliasPolygons property.