Document Solutions for PDF
Document Solutions PDF Viewer Overview / Licensing and Redistribution
In This Topic
    Licensing and Redistribution
    In This Topic

    License Information

    Document Solutions PDF Viewer supports the following types of license:

    Evaluation License

    You can obtain a free 30-day evaluation key by contacting The evaluation version is fully functional and displays the below watermark:

    'Powered by Document Solutions PDF Viewer. Your temporary deployment key expires in [x] days.'

    The evaluation key will allow you to develop and test your application on both your development machine and staging server for 30 days.

    Production License

    Once you purchase the license, you will receive a license key that removes all watermarks. The production license offers two types of licenses: standard and professional.

    Standard License

    Included with every DsPdf license purchase. This deployment includes all features of the viewer except those that require the viewer to use SupportApi property (i.e., connect the viewer to DsPdf on the server). For more information, see View PDF.

    Professional License

    Includes all the features of the Standard license in addition to features that require the viewer to use the SupportApi property (i.e., connect the viewer to DsPdf on the server). For more information, see Edit PDF.

    Please refer to DsPdfViewer License Options to know more about Standard and Professional Viewer License.

    How to apply your license key

    To apply evaluation/production license in DsPdfViewer, set DsPdfViewer licensed deployment key to DsPdfViewer.License property before creating and initializing DsPdfViewer:

    Copy Code
         // Add your license
         DsPdfViewer.LicenseKey = 'your_license_key';
         // Add your code
         window.onload = function(){
          const viewer = new DsPdfViewer("#viewer1", { file: 'helloworld.pdf' });

    This must precede the code that references the js files:

    Copy Code
    <!DOCTYPE html>
    <html lang="en">
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="theme-color" content="#000000">
        <title>PDF Viewer Demo | PDF Plugin</title>
            function loadPdfViewer(selector) {
                DsPdfViewer.LicenseKey = 'your_license_key';
                var viewer = new DsPdfViewer(selector, { renderInteractiveForms: true /*, documentListUrl: "/documentslist.json" */ });
    <body onload="loadPdfViewer('#root')">
    <div id="root"></div>
    <script type="text/javascript" src="dspdfviewer.js"></script></body>



    Note that the following files should be included while redistributing DsPdfViewer.

    Script Files

    CSS Files

    Note: If you are using the default theme, the above-mentioned css files can be excluded. If you want to use a different theme, make a "themes" subfolder in the folder where the viewer files are already placed. Place the css files specific to the themes in the subfolder. This will allow the themes to work automatically.