View PDF documents in your web apps with PdfViewer, a lightweight viewer used to display PDFs without any third party PDF reader or software.
PdfViewer allows your users to display PDF documents in web or hybrid mobile apps.
Every feature you’d expect from a document viewer is included out-of-the-box:
To show the PDF file from C1 Web API PDFDocument Services, set the following basic properties:
serviceUrl: The url of C1 Web API PDFDocument Services. For example, ''.
filePath: The full path to the pdf file. For example, 'PdfRoot/DefaultDocument.pdf'.
The 'PdfRoot' is the key of the pdf file disk storage provider, which is registered at server for locating the specified pdf file.
The 'DefaultDocument.pdf' is the relative path of the pdf file, which can be located by the disk storage provider.
Also the PdfViewer control has the following properties, which allow you to customize its appearance and behavior:
The example below allows you to see what happens when you change these properties.