Package com.itextpdf.pdf2data
Class Pdf2DataTemplateConverter
java.lang.Object
com.itextpdf.pdf2data.Pdf2DataTemplateConverter
Contains methods for creating p2dta.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
convertP2dtaToP2d
(File unprocessedP2dtaFile, File processedP2dFile) Converts passed p2dta file to it processed representation.static void
convertPdfV3ToP2dta
(InputStream pdfStream, File p2dtaFile) Converts pdf templateV3 to p2dta.static void
convertXmlV3ToP2d
(InputStream xmlStream, File p2dFile) Converts xml templateV3 to p2dta.
-
Method Details
-
convertPdfV3ToP2dta
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
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
-