Free Support Forum - aspose.com

Error code 500 is returned when converting Word document to PDF

Error code 500 is returned when converting Word document to PDF.

Code being used:

Product.setBaseProductUri(“http://api.saaspose.com/v1.0”); SaasposeApp.setAppKey(KEY); SaasposeApp.setAppSID(APP_SID); final String strURI = “http://api.saaspose.com/v1.0/words/convert?format=pdf”; final String signedURI = sign(strURI); final FileInputStream fis = new FileInputStream(new File(ORIGINAL_FILE_PATH)); final InputStream responseStream = processCommand(signedURI, “PUT”, fis); saveStreamToFile(FINAL_FILE_NAME, responseStream); responseStream.close();


Submitted from: http://saaspose.com/

Hi Ricardo,

Thank you very much for your interest in Saaspose APIs and we're sorry for the inconvenience caused due to this issue.

Please share you complete code file with us along with the values you have specified for app key and app sid. We'll further investigate this issue and guide you appropriately.

We're looking forward to help you.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.

Hello,

Thank you for the prompt reply.

I've attached the Java class I was using to test this.

Best regards,
Ricardo

From:
Shahzad Latif <notifications-support@saaspose.zendesk.com>
To:
Ricardo <respiritosanto@epo.org>
Date:
11-10-2012 12:37
Subject:
[Saaspose Support] Re: Error code 500 is returned when converting Word
document to PDF

Hi Ricardo,

There is nothing wrong with your code, you just need to swap APP_SID and KEY values i.e. you have passed App SID value to App Key and App Key value to App SID.

Please feel free to contact us in case you have further comments or questions.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi Ricardo,

Did the last suggestion given by our support team worked for you? I hope this ticket is now resolved. I'm closing this ticket. If you still find any more questions or concerns, or need further assistance, please create a new ticket. We'll be pleased to help you. I'm sure you'll be happy working with Saaspose API.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.