Processor.From

Processor From method. Specifies input document for processing.

From(string, LoadOptions)

Specifies input document for processing.

public Processor From(string input, LoadOptions loadOptions = null)
ParameterTypeDescription
inputStringInput document file name.
loadOptionsLoadOptionsOptional 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


From(Stream, LoadOptions)

Specifies input document for processing.

public Processor From(Stream input, LoadOptions loadOptions = null)
ParameterTypeDescription
inputStreamInput document stream.
loadOptionsLoadOptionsOptional 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