Class AnnotationHandler

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

public class AnnotationHandler extends Object implements ArchiveHandler
处理器:注释合规转换(GB/T 42133-2022 6.10.1)

处理内容:

  • 设置 ReadOnly=true, NoZoom=true, NoRotate=true
  • 展平 Appearance 中的 PageBlock 嵌套(子元素提升到 Appearance 级)
  • 不固化外观(按用户要求)

关于 6.10.2 归档后注释:管理部门添加的注释(归档章/页码等)应与原有注释分文件存储。 本处理器仅处理归档前已存在的注释,归档后的注释由生成软件负责写入独立文件。

Since:
2.4.0
Author:
权观宇
  • Constructor Details

    • AnnotationHandler

      public AnnotationHandler()
  • 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 - 文件操作异常