Services > PDF Services > Configure PDF Web API Service |
C1 Web API PDFDocument Services enable you to build HTTP services, which can be consumed by a variety of clients for viewing, loading and caching PDF files. These are REST based API services, which communicate with the HTML 5 PDFViewer control to display the pdf file content on the web.
Complete the following steps to setup PDF services.
Startup.cs |
Copy Code
|
---|---|
app.UseStorageProviders() .AddDiskStorage ("PdfRoot", System.IO.Path.Combine(System.Web.HttpRuntime.AppDomainAppPath, "PdfRoot")); |
Append the URL path (for example: http://localhost:1234/api/pdf/) in the address bar of the browser to see the output. |