Set author name to annotation

17 Feb 20221 minute to read

The PDF Viewer server library allows you to set author name to all annotations in the PDF document. Use the author property to set author name to all annotations.

The following steps are used to set author name to all annotation for PDF Viewer,

Step 1: Follow the steps provided in the link to create simple PDF Viewer sample.

Step 2: Set author name to annotations using below code snippet.

    function documentLoad()
        var viewer = document.getElementById('pdfviewer').ej2_instances[0];
        // set author name to annotation. = "user1";

Download the sample how to set author name to annotation