Click or drag to resize

PdfAnnotationDataExporter.Export Method (Stream, Stream, SizeF, AnnotationUnit, Dpi, LayerData, Int32, SecureString, SecureString)

Exports a single page of annotations to a given stream.

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

Parameters

sourceStream
Type: System.IO.Stream
The original source stream for the document.
destStream
Type: System.IO.Stream
The destination stream for the document.
pageSize
Type: System.Drawing.SizeF
The size of the source page.
units
Type: Atalasoft.Annotate.AnnotationUnit
The units in which the page size is expressed.
resolution
Type: Atalasoft.Imaging.Dpi
The resolution of the page.
layer
Type: Atalasoft.Annotate.LayerData
The page of annotations to export.
frameIndex
Type: System.Int32
The page number for exporting.
userPassword
Type: System.Security.SecureString
The user password to use when opening and saving the PDF.
ownerPassword
Type: System.Security.SecureString
The owner password to use when opening and saving the PDF.
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