|
|
To convert an HTML, Microsoft Office, AutoCAD, or other type of file to a PDF document using LiveCycle Remoting, perform the following tasks:Include the files that enable you to perform remoting. For information, see Invoking LiveCycle ES Using LiveCycle Remoting.With LiveCycle Remoting, you do this by creating a dynamic ChannelSet instance that uses the AMF channel.
• Create a new flash.net.FileReference instance.
•
• Call the FileReference.browse method to display a file selection dialog box.
• In the select event handler, create a flash.net.URLRequest instance that specifies the URL of the server script configured to handle upload through HTTP POST calls. For LiveCycle Remoting, this is http://lcserver:port/remoting/lcfileupload. Then call the FileReferences.upload method.
• In the upload complete event, populate the DocumentReference instance and call a method that converts the file, as explained in the next step.
•
• Invoke the CreatePDF method, passing the ActionScript object as a parameter.
• In the event handler for the CreatePDF call, create an ActionScript object to contain the result.
•
• Retrieve the new PDF document by accessing the LiveCycle Remoting DocumentReference object in the Result element named ConvertedDoc.
•
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/generatePdfJavaAndWSConversionsToPDF.66.5.html