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]
Overridable Sub Save(path As String)
Overridable Sub Save(name As String, 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, .PSD, .EMF, .PS and .EPS.

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. EPS is the Encapsulated Postscript format. The particular type of EPS produced by ABCpdf conforms to the DSC (Document Structuring Conventions) standard, which is a subset of EPS intended to make EPS files more usable.

In addition you can render to any of the file types specified as part of the GetText method - .TXT, .SVG, .SVG+ and .SVG+2.

 

   

Example
 

See the AntiAliasPolygons property.