naps2/NAPS2.Sdk/ImportExport/Pdf/PdfExporter.cs
2019-03-10 13:43:26 -04:00

30 lines
837 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using NAPS2.Ocr;
using NAPS2.Images;
using NAPS2.Util;
namespace NAPS2.ImportExport.Pdf
{
public abstract class PdfExporter
{
private static PdfExporter _default = new PdfSharpExporter();
public static PdfExporter Default
{
get
{
TestingContext.NoStaticDefaults();
return _default;
}
set => _default = value ?? throw new ArgumentNullException(nameof(value));
}
public abstract Task<bool> Export(string path, ICollection<ScannedImage.Snapshot> snapshots, PdfSettings settings,
OcrContext ocrContext, ProgressHandler progressCallback, CancellationToken cancelToken);
}
}