
Create a byte array that stores the content of the System.IO.FileStream object. Converting .ps to pdf pdf#
Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the PDF document to convert and the mode to open the file in. The BLOB object is used to store a PDF document that is converted to a PostScript file. Create a BLOB object by using its constructor. Reference the PDF document to convert to a PostScript file. Assign the constant value BasicHttpSecurityMode.TransportCredentialOnly to the field. Assign the constant value HttpClientCredentialType.Basic to the field. Assign the corresponding password value to the field. Assign the AEM forms user name to the field. This value ensures that MTOM is used.Įnable basic HTTP authentication by performing the following tasks: Set the object’s MessageEncoding field to WSMessageEncoding.Mtom. Cast the return value to BasicHttpBinding.
However, specify ?blob=mtom.Ĭreate a object by getting the value of the field. Pass a string value that specifies the WSDL to the AEM Forms service (for example, You do not need to use the lc_version attribute.
Replace localhost with the IP address of the server hosting AEM Forms.Ĭreate a ConvertPdfServiceClient object by using its default constructor.Ĭreate a object by using the constructor. Ensure that you use the following WSDL definition: Converting PDF to Postscript and Image Files Ĭonvert a PDF document to PostScript by using the Convert PDF Service API (web service):Ĭreate a Microsoft.