mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 21:52:34 +08:00
27 lines
568 B
C#
27 lines
568 B
C#
using System;
|
|
using iTextSharp.text.pdf;
|
|
|
|
namespace PDFPatcher.Processor
|
|
{
|
|
sealed class RemoveBookmarkProcessor : IDocProcessor
|
|
{
|
|
#region IDocProcessor 成员
|
|
public string Name => "删除导航书签";
|
|
public void BeginProcess(DocProcessorContext context) {
|
|
}
|
|
public void EndProcess(DocProcessorContext context) {
|
|
}
|
|
public int EstimateWorkload(PdfReader pdf) {
|
|
return 1;
|
|
}
|
|
|
|
public bool Process(DocProcessorContext context) {
|
|
Tracker.IncrementProgress(1);
|
|
OutlineManager.KillOutline(context.Pdf);
|
|
return true;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|