Class PDFExporterIText

java.lang.Object
org.ofdrw.converter.export.PDFExporterIText
All Implemented Interfaces:
Closeable, AutoCloseable, OFDExporter

public class PDFExporterIText extends Object implements OFDExporter
iText7 实现的OFD转换PDF
Since:
2023-3-7 21:30:40
Author:
权观宇
  • Constructor Details

    • PDFExporterIText

      public PDFExporterIText(Path ofdFilePath, Path pdfFilePath) throws IOException
      通过文件路径 创建PDF转换器
      Parameters:
      ofdFilePath - 待转换的OFD文件路径
      pdfFilePath - 生成PDF文件路径
      Throws:
      IOException - 文件创建失败
    • PDFExporterIText

      public PDFExporterIText(InputStream ofdInStream, OutputStream pdfOutStream) throws IOException
      通过流 创建PDF转换器

      注意:流由调用者负责关闭!

      Parameters:
      ofdInStream - 待转换的OFD文件流,流由调用者负责关闭。
      pdfOutStream - 生成PDF文件流,流由调用者负责关闭。
      Throws:
      IOException - 流操作失败
  • Method Details