Simple Java program to import form field data into a PDF form from an FDF file using Qoppa’s library Java PDF form fields library jPDFFields. jPDFFields can also import XDP and XFDF data.

// Load the document
PDFFields pdfDoc = new PDFFields ("input.pdf", null);
 
// Import the data in FDF format
pdfDoc.importFDF("input.fdf");
 
// Save the document
pdfDoc.saveDocument("output.pdf");

Download Full java Sample