public static IEnumerable<DocumentFormat> EnumeratePossibleInputFormats(
DocumentFormat outputFormat,
DocumentEngine? engine = null
)
Public Shared Function EnumeratePossibleInputFormats (
outputFormat As DocumentFormat,
Optional engine As DocumentEngine? = Nothing
) As IEnumerable(Of DocumentFormat)
Enumerate possible output document formats for a given input document file with EnumeratePossibleOutputFormats method and vice versa with EnumeratePossibleInputFormats method:
foreach (var outputFormat in DocumentConverter.EnumeratePossibleOutputFormats(DocumentFormat.Docx))
{
// ...
}
foreach (var outputFormat in DocumentConverter.EnumeratePossibleOutputFormats("InputFile.docx"))
{
// ...
}
//---------------------------------------
foreach (var inputFormat in DocumentConverter.EnumeratePossibleInputFormats(DocumentFormat.Pdf))
{
// ...
}
foreach (var inputFormat in DocumentConverter.EnumeratePossibleInputFormats("OutputFile.pdf"))
{
// ...
}
For Each outputFormat As Object In DocumentConverter.EnumeratePossibleOutputFormats(DocumentFormat.Docx)
' ...
Next
For Each outputFormat As Object In DocumentConverter.EnumeratePossibleOutputFormats("InputFile.docx")
' ...
Next
'---------------------------------------
For Each inputFormat As Object In DocumentConverter.EnumeratePossibleInputFormats(DocumentFormat.Pdf)
' ...
Next
For Each inputFormat As Object In DocumentConverter.EnumeratePossibleInputFormats("OutputFile.pdf")
' ...
Next