OK, I've put together a quick sample that seems to work. Key point is that you use the generatePDFOutput method, but pass in null as the XML data. Here's a snippet: ... flattenXfaForm(File inXfa, String outputFolder) { .... Document doc=null; String xfaNam...