mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 21:52:34 +08:00
32 lines
815 B
C#
32 lines
815 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using iTextSharp.text;
|
|
using iTextSharp.text.pdf;
|
|
|
|
namespace PDFPatcher.Processor
|
|
{
|
|
sealed class DocProcessorContext
|
|
{
|
|
internal const int OcrData = 9010;
|
|
internal const int CoordinateTransition = 9020;
|
|
|
|
public PdfReader Pdf { get; }
|
|
public PdfWriter Writer { get; }
|
|
public Document OutputDocument { get; }
|
|
public bool IsModified { get; set; }
|
|
public Dictionary<int, object> ExtraData { get; }
|
|
|
|
public DocProcessorContext(PdfProcessingEngine engine, PdfWriter writer, Document outputDocument) {
|
|
Pdf = engine.Pdf;
|
|
Writer = writer;
|
|
OutputDocument = outputDocument;
|
|
ExtraData = engine.ExtraData;
|
|
}
|
|
|
|
public DocProcessorContext(PdfProcessingEngine engine, PdfWriter writer)
|
|
: this(engine, writer, null) {
|
|
}
|
|
}
|
|
}
|