Processor.From
From(string, LoadOptions)
Specifies input document for processing.
public Processor From(string input, LoadOptions loadOptions = null)
Parameter | Type | Description |
---|---|---|
input | String | Input document file name. |
loadOptions | LoadOptions | Optional load options used to load the document. |
Return Value
Returns processor with specified input file.
Remarks
If the processor accepts only one file as an input, only the last specified file will be processed. Merger
processor accepts multiple files as an input, as the result all the specified documents will be merged. Converter
processor accepts only one file as an input, so only the last specified file will be converted.
Examples
Shows how to convert DOCX document to PDF using Fluent API.
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "Converter.ConvertToPdf.pdf")
.Execute();
See Also
- class LoadOptions
- class Processor
- namespace Wordize
- assembly Wordize
From(Stream, LoadOptions)
Specifies input document for processing.
public Processor From(Stream input, LoadOptions loadOptions = null)
Parameter | Type | Description |
---|---|---|
input | Stream | Input document stream. |
loadOptions | LoadOptions | Optional load options used to load the document. |
Return Value
Returns processor with specified input file stream.
Remarks
If the processor accepts only one file as an input, only the last specified file will be processed. Merger
processor accepts multiple files as an input, as the result all the specified documents will be merged. Converter
processor accepts only one file as an input, so only the last specified file will be converted.
See Also
- class LoadOptions
- class Processor
- namespace Wordize
- assembly Wordize