Summary
Gets a new document with the specified source, content stream, and metadata (in addition to the default initial metadata).
If disposeStream is true (which it is by default), the provided
System.IO.Stream will automatically be disposed when the document is disposed (I.e., the
document takes ownership of the System.IO.Stream).
Syntax
IDocument GetDocument(FilePath source, Stream stream, IEnumerable<KeyValuePair<string, Object>> items = null, bool disposeStream = true)
Parameters
| Name |
Type |
Description |
| source |
FilePath |
The source. |
| stream |
Stream |
The content stream. |
| items |
IEnumerable<KeyValuePair<string, Object>> |
The metadata items. |
| disposeStream |
bool |
If set to true the provided System.IO.Stream is disposed when the document is. |
Return Value