[]
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.
Create a folder named PdfRoot, in your service application.
Add the desired PDF files to this folder.
From the Solution Explorer, select and open Startup.cs file.
In the Startup.cs file, add disk storage in Configure method of Startup.
app.UseStorageProviders()
.AddDiskStorage ("PdfRoot", System.IO.Path.Combine(System.Web.HttpRuntime.AppDomainAppPath, "PdfRoot"));
type=note
Append the URL path (for example: http://localhost:1234/api/pdf/<FolderName>/<PDF name>$pdf) in the address bar of the browser to see the output.