mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-23 08:48:39 +08:00
29 lines
643 B
C#
29 lines
643 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using iTextSharp.text.pdf;
|
|
|
|
namespace PDFPatcher.Processor
|
|
{
|
|
sealed class RemoveBookmarkProcessor : IDocProcessor
|
|
{
|
|
#region IDocProcessor 成员
|
|
public string Name { get { return "删除导航书签"; } }
|
|
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
|
|
}
|
|
}
|