Hi,
We’re are trying to evaluate GroupDocs Viewer Cloud for our application. Our application consists of UI (Angular 7) with API (.NET Core 2.1) and we use aws s3 for our file storage. We have the following scenario questions and would appreciate if you could provide the answers to them.
It looks like the only option for us is to use CURL and not with SDK for cloud as you only have support for .NET Framework. When we look at your CURL operation for Creating View With HTML View Format, (Quick Start | GroupDocs.Viewer Cloud | Documentation) we noticed that we need to pass access token and file path
where do we get the access token from?
where does the file path point to? if we use aws s3 for our file storage, we’re not sure how we link that this file path.
Please configure Amazon S3 storage to use it with GroupDocs Cloud REST APIs. You can pass configured storage name in cURL command as StorageName parameter. For File path question, if you do not pass foldername then path points to the root of storage otherwise respective folder. For example, viewerdocs/one-page.docx points to file one-page.docx in the viewerdocs folder.
We will check the options to support .NET Core and will guide you accordingly.
We have logged a ticket VIEWERCLOUD-283 for the support of .NET Core support in GroupDocs.Viewer SDK for .NET. We will notify you as soon as it is resolved.
Thanks Ahmad for your quick response. Following your instructions, we were able to obtain an access token and use it to Create View With HTML View Format for a file we have on aws s3 bucket. We ran into a bit of a problem and need further assistance.
{"Error":{"Code":"errorAmazonS3Storage","Message":"AmazonS3 Storage exception: The specified key does not exist. Bucket 'gfc-filestorage', FilePath '20238/d604e3b8-df10-4cca-b966-ed36c5f1211e/viewer/aha-email_msg/p1.html'","Description":"Operation Failed. The remote server returned an error: (404) Not Found.","InnerError":{"RequestId":null,"Date":"2019-04-01T20:46:01.128416Z"}}}* Connection #0 to host api.groupdocs.cloud left intact
My questions are:
Are we following the correct flow here for our application setup (angular 7 + .net core web api + aws s3)?
We are sorry for your inconvenience. You are following correct path, but file download option is not working as expected. We have logged tickets following tickets for investigation and resolution. We will notify you as soon as these are updated.
You can configure multiple aws buckets with different storage names in groupdocs.cloud. But I am afraid currently you can only configure the 3rd Party Storage via GUI not via API call. However, please confirm, if you are interested to use API calls for configuring the storage, then we will log a feature request and investigate it further.
We are looking into it and will update you shortly.
We are sorry for the confusion. We have updated the documentation for clarity. You need to use ViewFormat for rendering document to image view.
ViewFormat allows to set rendering format, available values are HTML, JPG, PNG, BMP, PDF. HTML is default value of VIewFormat, so you are getting HTML view. Please use following options for PNG. Hopefully it will help you to accomplish the task.
We have logged a feature request(6742) in our issue tracking system for further investigation and implementation. We will notify you soon as it is resolved.
We are sorry for your inconvenience. While testing the scenario, we have noticed the reported issue and logged a ticket VIEWERCLOUD-305 for further investigation. We will share updates with you soon.
Please use following cURL command for image view. Please note “ExternalResources” is HtmlOptions property so the API interprets RenderOptions as HtmlOptions and Width and Height could be ignored, so use ImageOptions and HtmlOptions only with corresponding ViewFormat.
Furthermore, please use “RenderOptions”, because ImageOptions and HtmlOptions are, just type names and should not be used.
Thank for your feedback. The subjected feature request is pending for analysis. We will be in position to share the further updates with you after initial investigation.