Search results

Set author name to annotation in ASP.NET MVC PDF Viewer control

20 Jan 2022 / 1 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.

Copied to clipboard
<script>
    function documentLoad()
    {
        var viewer = document.getElementById('pdfviewer').ej2_instances[0];
        // set author name to annotation.
        viewer.annotationSettings.author = "user1";
    }
</script>

Download the sample how to set author name to annotation