[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.EmbeddedFileStream.FromFile

FromFile Method

FromFile(GcPdfDocument, string)

Creates a new instance of EmbeddedFileStream from the specified file name.

The file data will be read when the GcPdfDocument is saved.

Declaration
public static EmbeddedFileStream FromFile(GcPdfDocument doc, string fileName)
Public Shared Function FromFile(doc As GcPdfDocument, fileName As String) As EmbeddedFileStream
Parameters
Type Name Description
GcPdfDocument doc

The owner document.

string fileName

The file name.

Returns
Type Description
EmbeddedFileStream

The newly created object.