|
|
• Create a FormsService object and set authentication values.
• Create a PDFFormRenderSpec object by using its constructor.
• Set the RenderAtClient run-time option by invoking the PDFFormRenderSpec object’s setRenderAtClient method and passing the string value RenderAtClient.Yes.
• A BLOB object that contains data to merge with the form. If you do not want to merge data, pass null. For information, see Prepopulating Dynamic Forms.
• A PDFFormRenderSpec object that stores run-time options required to render a form at the client.
• A URLSpec object that contains URI values that are required by the Forms service. For information, see Specify URI values.
• A java.util.HashMap object that stores file attachments. This is an optional parameter and you can specify null if you do not want to attach files to the form. For information, see Attach files to the form.
• An empty com.adobe.idp.services.holders.BLOBHolder object that is populated by the method. This parameter is used to store the rendered PDF form.
• An empty javax.xml.rpc.holders.LongHolder object that is populated by the method. (This argument will store the number of pages in the form).
• An empty javax.xml.rpc.holders.StringHolder object that is populated by the method. (This argument will store the locale value).
• An empty com.adobe.idp.services.holders.FormsResultHolder object that will contain the results of this operation.The renderPDFForm method populates the com.adobe.idp.services.holders.FormsResultHolder object that is passed as the last argument value with a form data stream that must be written to the client web browser.
• Create a FormResult object by getting the value of the com.adobe.idp.services.holders.FormsResultHolder object’s value data member.
• Create a BLOB object that contains form data by invoking the FormsResult object’s getOutputContent method.
•
• Set the javax.servlet.http.HttpServletResponse object’s content type by invoking its setContentType method and passing the content type of the BLOB object.
• Create a javax.servlet.ServletOutputStream object used to write the form data stream to the client web browser by invoking the javax.servlet.http.HttpServletResponse object’s getOutputStream method.
• Create a byte array and populate it by invoking the BLOB object’s getBinaryData method. This task assigns the content of the FormsResult object to the byte array.
• Invoke the javax.servlet.http.HttpServletResponse object’s write method to send the form data stream to the client web browser. Pass the byte array to the write method.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/renderingClient.34.4.html