'Declaration
Public Overloads Function EmbedFile( _ ByVal Stream As Stream, _ ByVal FileTitle As String, _ ByVal Description As String _ ) As GdPictureStatus
public GdPictureStatus EmbedFile( Stream Stream, string FileTitle, string Description )
public function EmbedFile( Stream: Stream; FileTitle: String; Description: String ): GdPictureStatus;
public function EmbedFile( Stream : Stream, FileTitle : String, Description : String ) : GdPictureStatus;
public: GdPictureStatus EmbedFile( Stream* Stream, string* FileTitle, string* Description )
public: GdPictureStatus EmbedFile( Stream^ Stream, String^ FileTitle, String^ Description )
Parameters
- Stream
- The stream that contains file data to embed. This stream object must be initialized before it can be sent into this method and it should remain open for subsequent use.
Any kind of file data, and any numbers of files, can be embedded into a PDF file.
- FileTitle
- The file title to use for the embedded file data.
- Description
- The verbal description of this attachment, for example, a purpose of embedding this file.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.