PdfAnnotationDataExporterExport 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.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,
SecureString userPassword,
SecureString ownerPassword
)
Public Sub Export (
sourceStream As Stream,
destStream As Stream,
pageSize As SizeF,
units As AnnotationUnit,
resolution As Dpi,
layer As LayerData,
frameIndex As Integer,
userPassword As SecureString,
ownerPassword As SecureString
)
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. - userPassword
- Type: System.SecuritySecureString
The user password to use when opening and saving the PDF. - ownerPassword
- Type: System.SecuritySecureString
The owner password to use when opening and saving the PDF.
Exceptions Exception | Condition |
---|
| 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