More Samples
Download Wijmo


View PDF documents in your web apps with PdfViewer, a lightweight viewer used to display PDFs without any third party PDF reader or software.

  • Includes top document viewer features like thumbnail display, scrolling, paging, and zooming
  • Print support
  • Export features


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:

  • Print support
  • Responsive viewer
  • Thumbnails
  • Search
  • Pagination
  • Full-screen and resizing options
  • Continuous scrolling options


To show the PDF file from C1 Web API PDFDocument Services, set the following basic properties:

  1. serviceUrl: The url of C1 Web API PDFDocument Services. For example, ''.

  2. 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.

The C1 Web API PDFDocument Services uses C1PdfDocumentSource to render and export pdf files. Please refer to How to set up C1 Web API PDFDocument Services for details.

Also the PdfViewer control has the following properties, which allow you to customize its appearance and behavior:

  • fullScreen: Indicates whether the viewer is under full screen mode.
  • mouseMode: Indicates the mouse behavior.
  • viewMode: Indicates how to show the document pages.
  • zoomFactor: Indicates the current zoom factor to show the document pages.

The example below allows you to see what happens when you change these properties.