/** * Qoppa Software - Sample Source Code */ package jPDFFieldsSamples; import com.qoppa.pdfFields.PDFFields; public class FlattenFields { public static void main (String [] args) { try { // Load the document PDFFields pdfDoc = new PDFFields ("input.pdf", null); // Flatten fields pdfDoc.flattenFields(false, false); // Save the document pdfDoc.saveDocument ("output.pdf"); } catch (Throwable t) { t.printStackTrace(); } } }