PdfAttachmentAnnotation Constructor (RectangleF, String, Stream)
|
Initializes a new instance of theclass.
Namespace:
Spire.Pdf.Annotations
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public PdfAttachmentAnnotation(
RectangleF rectangle,
string fileName,
Stream stream
)
Public Sub New (
rectangle As RectangleF,
fileName As String,
stream As Stream
)
public:
PdfAttachmentAnnotation(
RectangleF rectangle,
String^ fileName,
Stream^ stream
)
new :
rectangle : RectangleF *
fileName : string *
stream : Stream -> PdfAttachmentAnnotation
Parameters
-
rectangle
-
Type:
System.Drawing
RectangleF
The rectangle.
-
fileName
-
Type:
System
String
A string value specifying the full path to the file to be embedded in the PDF file.
-
stream
-
Type:
System.IO
Stream
The stream specifying the content of the annotation's embedded file.
Remarks
If both FileName and FileContent are specified, the FileContent takes precedence.
See Also