ComHelper.OpenFile

OpenFile(string)

Just create and return Document using filename. The same as Document.

public Document OpenFile(string filename)
ParameterTypeDescription
filenameStringThe name of the pdf document file.

Return Value

Document object

See Also


OpenFile(string, string)

Initialize and return new instance of the Document class for working with encrypted document.

public Document OpenFile(string filename, string password)
ParameterTypeDescription
filenameStringDocument file name.
passwordStringUser or owner password.

Return Value

Document object

See Also


OpenFile(string, string, bool)

Initialize new instance of the Document class for working with encrypted document.

public Document OpenFile(string filename, string password, bool isManagedStream)
ParameterTypeDescription
filenameStringDocument file name.
passwordStringUser or owner password.
isManagedStreamBooleanif set to true inner stream is closed before exit; otherwise, is not.

Return Value

Document object

See Also


OpenFile(string, LoadOptions)

Open an existing document from a file providing necessary converting oprions to get pdf document.

public Document OpenFile(string filename, LoadOptions options)
ParameterTypeDescription
filenameStringInput file to convert into pdf document.
optionsLoadOptionsRepresents properties for converting filename into pdf document.

Return Value

Document object

See Also