Class NonGotoActionHandler

java.lang.Object
org.ofdrw.archive.convert.handler.NonGotoActionHandler
All Implemented Interfaces:
ArchiveHandler

public class NonGotoActionHandler extends Object implements ArchiveHandler
处理器 6:删除非 Goto 动作,Goto→Link 注释(GB/T 42133-2022 6.2.2c/6.2.3c/6.3.3b)

三级处理:

  • Document 级:直接删除全部 Actions
  • Page 级:遍历页面/图元对象 Actions,GotoA→Link注释,非Goto删除
Since:
2.4.0
Author:
权观宇
  • Constructor Details

    • NonGotoActionHandler

      public NonGotoActionHandler()
  • Method Details

    • handle

      public void handle(OFDReader reader, org.ofdrw.pkg.container.OFDDir ofdDir) throws IOException
      Description copied from interface: ArchiveHandler
      执行去技术化转换操作,就地修改 OFD 容器

      处理结果直接写入 ofdDir,调用者负责最终持久化和打包。

      Specified by:
      handle in interface ArchiveHandler
      Parameters:
      reader - OFD 阅读器,提供文档结构访问
      ofdDir - OFD 虚拟容器,修改结果写入此处
      Throws:
      IOException - 文件操作异常