Class DocContext

java.lang.Object
org.ofdrw.tool.merge.DocContext
All Implemented Interfaces:
Closeable, AutoCloseable

public class DocContext extends Object implements Closeable
OFD文档上下文,用于在合并时提供文档相关信息
Since:
2021-11-09 20:47:34
Author:
权观宇
  • Field Details

  • Constructor Details

  • Method Details

    • getDefaultArea

      public org.ofdrw.core.basicStructure.doc.CT_PageArea getDefaultArea(int numOfDoc) throws org.dom4j.DocumentException, FileNotFoundException
      获取默认情况的页面信息
      Parameters:
      numOfDoc - 文档序号,一般为0
      Returns:
      页面尺寸信息
      Throws:
      org.dom4j.DocumentException - 文档解析异常
      FileNotFoundException - 文件缺失
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException