Free Support Forum -

Convert DOCX to PDF example of Aspose.Words Cloud SDK for .NET misses Namespace for Sign- ProcessCommand and CopyStream

Refer below code, I am unable to trace the namespaces for highlighted classes. I am using as a namespace for below code

string appSID = “******************”;
string appKey = “******************”;
string fileName = “MyFile.docx”;

//build URI to convert MS Word file to other format using storage
string strURI = “” + fileName + “?format=pdf”;

//Use the following line to use API version 1.1
//string strURI = “” + fileName + “?format=pdf”;

//sign URI
string signedURI = Sign(strURI, appSID, appKey);

//get response stream
Stream responseStream = ProcessCommand(signedURI, “GET”);
using (Stream fileStream = System.IO.File.OpenWrite(“c:\temp\MyFile.pdf”))
CopyStream(responseStream, fileStream);

Hi Raju,

Thanks for your inquiry. Please see attached Utils.cs. You can use Aspose.Cloud.Common namespace. I hope, this helps.

Best regards,