mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-21 12:49:43 +03:00
30 lines
837 B
C#
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);
|
|
}
|
|
}
|