Print PDFs without annotations using JavaScript
Use the programmatic API to print a document without annotations by setting the excludeAnnotations flag:
NutrientViewer.load(configuration) .then((instance) => { instance.print({ excludeAnnotations: true }); }) .catch((error) => { console.error("Failed to load document:", error.message); });This option also excludes form field values. The SDK displays form fields with widget annotations.
If you need to print form field values or signatures, refer to the prevent printing PDF annotations guide.