IDocumentConversionService
Wisej.AI.Services.IDocumentConversionService
public interface IDocumentConversionServicePublic Interface IDocumentConversionServiceMethods
Convert(stream, fileType, metadata, iterator)
Parameter
Type
Description
using System.IO;
public class DocumentConverter
{
private readonly IDocumentConversionService _conversionService;
public DocumentConverter(IDocumentConversionService conversionService)
{
_conversionService = conversionService;
}
public void ConvertDocument()
{
using (FileStream fileStream = new FileStream("input.docx", FileMode.Open, FileAccess.Read))
{
string convertedDocument = _conversionService.Convert(fileStream, "pdf");
// Use the converted document
}
}
}
Implemented By
Name
Description
Last updated
