Class Pdf2DataTemplateConverter

java.lang.Object
com.itextpdf.pdf2data.Pdf2DataTemplateConverter

public final class Pdf2DataTemplateConverter extends Object
Contains methods for creating p2dta.
  • Method Details

    • convertPdfV3ToP2dta

      public static void convertPdfV3ToP2dta (InputStream pdfStream, File p2dtaFile) throws IOException
      Converts pdf templateV3 to p2dta.
      Parameters:
      pdfStream - stream with pdf template
      p2dtaFile - p2dta file which represents passed pdf template
      Throws:
      IOException - if any I/O exception occurs
    • convertXmlV3ToP2d

      public static void convertXmlV3ToP2d (InputStream xmlStream, File p2dFile) throws IOException
      Converts xml templateV3 to p2dta.
      Parameters:
      xmlStream - stream with xml template
      p2dFile - p2d file which represents passed xml template
      Throws:
      IOException - if any I/O exception occurs
    • convertP2dtaToP2d

      public static void convertP2dtaToP2d (File unprocessedP2dtaFile, File processedP2dFile) throws IOException
      Converts passed p2dta file to it processed representation.
      Parameters:
      unprocessedP2dtaFile - unprocessed p2dta
      processedP2dFile - new p2d file which represents processed passed p2dta
      Throws:
      IOException - if any I/O exception occurs