A object that contains the name of the security settings to be used.A object that contains the name of the Adobe PDF settings to be used.A object that contains the name of the file to be converted.The object that represents the PS, EPS, or PRN file to be converted.Invoke the DistillerServiceClient object’s createPDF method and pass the following values: Create a object by using its constructor and passing the java.io.FileInputStream object.Create a java.io.FileInputStream object that represents the file to convert by using its constructor and passing a string value that specifies the location of the file.Create an DistillerServiceClient object by using its constructor and passing the ServiceClientFactory object.Create a ServiceClientFactory object that contains connection properties.Include client JAR files, such as adobe-distiller-client.jar, in your Java project’s class path. Output Service API Quick Starts Convert a PostScript file to PDF using the Java APIĬonvert a PostScript file to PDF document by using the Distiller Service API (Java):
You can save the PDF document as a PDF file.Ĭonvert a PostScript file to PDF using the Java APIĬonverting a PostScript file to PDF using the web service API
This operation will need information about the document to be converted, including the path to the target document. For example, to convert a PS file to a PDF document, you must retrieve the PS file.Īfter you create the service client, you can then invoke the PDF creation operation. You must retrieve the file that you want to convert. If you are using the web service API, create a DistillerServiceService object. If you are using the Java API, create a DistillerServiceClient object. If you are using web services, make sure you include the proxy files.īefore you can programmatically perform a Distiller service operation, you must create a Distiller service client. If you are creating a client application by using Java, include the necessary JAR files. Include the necessary files in your development project. To convert any of the supported types to a PDF document, perform the following steps: To convert PostScript files to PDF documents, one of the following needs to be installed on the server hosting AEM Forms: Acrobat 9 or Microsoft Visual C++ 2005 redistributable package.