Click or drag to resize

AnnotationDataExporterExport Method (Stream, Stream, SizeF, AnnotationUnit, Dpi, LayerData, Int32)

Exports a single page of annotations to a given stream.

Namespace:  Atalasoft.Annotate.Exporters
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Export(
	Stream sourceStream,
	Stream destStream,
	SizeF pageSize,
	AnnotationUnit units,
	Dpi resolution,
	LayerData layer,
	int frameIndex
)

Parameters

sourceStream
Type: System.IOStream
The original source stream for the document.
destStream
Type: System.IOStream
The destination stream for the document.
pageSize
Type: System.DrawingSizeF
The size of the source page.
units
Type: Atalasoft.AnnotateAnnotationUnit
The units in which the page size is expressed.
resolution
Type: Atalasoft.ImagingDpi
The resolution of the page.
layer
Type: Atalasoft.AnnotateLayerData
The page of annotations to export.
frameIndex
Type: SystemInt32
The page number for exporting.
Exceptions
ExceptionCondition
Thrown if sourceStream or destStream is null (Nothing in VB).
Thrown if frameIndex is less than zero.
Thrown if both CanExport and CanExportOver properties are false.
Remarks
A source stream is necessary for some file formats like PDF which require an entire document to hold the annotations. Other formats may ignore the source stream entirely.
See Also