We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Convert HTML to PDF from Dropbox Storage in C# using Aspose.PDF REST API

Hi!
The following snippet works fine with Aspose.Storage for Cloud, but I get an exception for DropBox Storage ‘Error calling PutCreateDocument: {“Message”:“DropBox exception: One or more errors occurred.”}’. It’s some strange because I see a converted file in Dropbox folder and this file is correct.

private static void TestHtml2Pdf()
    {
        //const string storageName = "First Storage";
        const string storageName = "Dropbox1";
        var item_Name = "demo01.html";
        Console.WriteLine(item_Name);
        var result = pdfApi.PutCreateDocument(
                name: item_Name.Replace("html","pdf"),
                templateFile: $"/Html-Demo/{item_Name}",
                folder: "/Html-Demo/",
                dataFile: "",
                templateType: "html",
                storage: storageName);
        Console.WriteLine(result.Status);
    }

@Andruhovski

Thank you for contacting Aspose Support.

We are trying to reproduce the issue on our end and will share our findings with you shortly.

@Andruhovski

We are able to reproduce the issue on our end and have logged the issue BILLING-3991 in our internal tracking software for our Platform team to fix the issue at the earliest. We will update you here as soon as the issue is fixed.

@Andruhovski

As an update please note we have already fixed your reported issue. Aspose.PDF Cloud API is working fine with Dropbox storage. Please feel free to contact us for any further questions/suggestions.