Dear,
I'm trying to call a lc web service from c#
PDFUtilityServiceClient client = new PDFUtilityServiceClient(); | |
client.ClientCredentials.UserName.UserName = "administrator"; | |
client.ClientCredentials.UserName.Password = "password"; | |
string version = client.getVersion(); |
returning: "11.0.0.20130128.2.324633"
When I try to call convertXdpToPdf I get Fault Exception:
"Caused by: com.adobe.livecycle.pdfutility.client.PDFUtilityException: ALC-UTL-S04-005: Failed to convert document to a PDF document. Caused by: com.adobe.internal.pdfutil.PDFUDocHandleException: ALC-UTL-S02-014: The XDP document could not be opened.; nested exception is:
com.adobe.livecycle.pdfutility.client.PDFUtilityException: ALC-UTL-S04-005: Failed to convert document to a PDF document."
I guess I made some mistake when creating the blob object. I've made the xdp file with designer and saved the form as xdp.
BLOB input = new BLOB();
input.binaryData = Encoding.ASCII.GetBytes(File.ReadAllText(@"C:\adobe\alma.xdp"));
var result = client.convertXDPtoPDF(input);
client.Close();
I've also tryed different encodings also in reading the file, further reading the whole file in binary
File.ReadAllByte(@"C:\adobe\alma.xdp");
With the same result. What else parameters should be filled in the BLOB object:
contentType | |
remoteURL | |
ExtensionData |
and how to add the xml file properly
thanks in advice:
gimp