using System;
using System.Collections.Generic;
using System.Text;
using iTextSharp.text.pdf;
namespace PDFPatcher.Processor
{
interface IPageProcessor : IProcessor
{
///
/// 估算工作量。
///
/// 需要处理的文档。
/// 整数工作量(用于显示进度条)。
int EstimateWorkload(PdfReader pdf);
///
/// 在处理页面前调用,初始化处理器。
///
/// 包含传入文档的
/// 更改文档内容后返回 true。
void BeginProcess(DocProcessorContext context);
///
/// 处理传入的页面。
///
/// 包含传入页面的
/// 更改页面内容后返回 true。
bool Process(PageProcessorContext context);
///
/// 完成处理文档的操作,在完成处理所有页面后被调用。
///
/// 需要处理的文档。
/// 更改文档内容后返回 true。
bool EndProcess(PdfReader pdf);
}
}