S. Bishop,<br /><br />The title of this thread requests how to Flatten a PDF but after reading your post I'm unclear if that is what you are specifically trying to do =). One way you can flatten a PDF form is to stick it in an xfaForm variable and run it through Output's generatePDFOutput service.<br /><br />This service accepts many parameters as input but most are optional. The ones to concern yourself with at first would be:<br /><br />1) Transformation Format: The format which you would like to flatten your PDF to. You may choose either PDF (as in going from dynamic to static) or PDF/A (commmon archival standard PDF)<br /><br />2) Form: This is a string that represents the URL path to your form's template. If you are using an xfaForm variable, then you can just pass the variable's templateURL property in here.<br /><br />3) Content Root: The Content Root URL associated with the repository in which 2) above resides. The value of 2) above is actually appended to the end of this. The value to pass in for this is most often "repository://" (no quotes).<br /><br />4) Input Data: This is where you would specify any data you'd like populate the flattened PDF with. If you are using an xfaForm variable, you should pass in "process_data/<your xfa variable>/object/data/xdp/datasets/data/*" (no quotes).<br /><br />The service returns:<br /><br />1) PDF Output: The flattened PDF as a Document variable.<br /><br />Shoot me an email should you run into any snags as I'd be happy to help.<br /><br />Josh Boyle<br />jboyle@cardinalsolutions.com<br />Cardinal Solutions Group