My goal is to create a pdf from some html. I read the following documentation and none of it seems to work:
- Create PDF from HTML|Documentation
- GitHub - aspose-pdf-cloud/aspose-pdf-cloud-dotnet: .NET library for communicating with the Aspose.PDF Cloud API
Github samples:
The sample code shows method calls and classes that don’t exist. In the readme the Configuration class can’t be instantiated that way (code from readme posted below) nor does it have ClientId and ClientSecret properties. It does have ApiKey and ApiSid are those the same as the ones in the portal that say Client Id and Secret?
var config = new Configuration
{
ClientId = "MY_CLIENT_ID",
ClientSecret = "MY_CLIENT_SECRET",
ApiBaseUrl = baseUrl,
};
var pdfApi = new PdfApi(config);
In the c# sdk sample located here ( Create PDF from HTML|Documentation ) the method signature for PutCreateDocument(fileName, templateFile, dataFile, templateType, storage, folder);
doesn’t exist either.
My question is how is one supposed to upload an HTML document and convert it to PDF. None of the samples posted seem correct. The error I am getting with what I think are the correct changes is:
ClientId is undefined. Please check authorization.","Description":"Operation Failed. General