惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hacker News: Ask HN
Hacker News: Ask HN
IT之家
IT之家
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
J
Java Code Geeks
博客园 - 聂微东
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
The Cloudflare Blog
博客园_首页
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 【当耐特】
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
V
V2EX
宝玉的分享
宝玉的分享
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客
NISL@THU
NISL@THU
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
aimingoo的专栏
aimingoo的专栏
L
LINUX DO - 热门话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
F
Fortinet All Blogs
博客园 - Franky
L
Lohrmann on Cybersecurity
S
Secure Thoughts
量子位
V
Vulnerabilities – Threatpost
Last Week in AI
Last Week in AI
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LINUX DO - 最新话题
I
InfoQ
C
CERT Recently Published Vulnerability Notes
Security Archives - TechRepublic
Security Archives - TechRepublic
P
Proofpoint News Feed
G
GRAHAM CLULEY
Cisco Talos Blog
Cisco Talos Blog

Inside Nutrient

A guide to the invisible work behind documents Introducing Nutrient Documents for Salesforce: Native document generation and signing Document AI vs. traditional OCR: Choosing between OCR, AI, and hybrid pipelines PDF SDK compliance and security evaluation checklist for enterprise teams (2026) Invariant Corp replaces paper processes with Nutrient Workflow and scales without limits What is process mapping? A complete guide Nutrient vs. Conga Composer for Salesforce document generation (2026) Document routing: How to automate document distribution The CTO’s AI playbook: Why accountability architecture beats orchestration Compliance workflow automation: Why built-in compliance is table stakes Workflow diagrams: Examples, symbols, and how to build one that actually runs Digital forms: Replace paper forms with automated workflows Approval workflow software: How to automate approvals Why document-centric automation is different The CEO’s AI playbook: Why decision architecture beats model selection Nutrient SDK product updates for Q1 2026 PDF redaction verification: How to prove sensitive data is permanently removed What is a VPAT? The complete guide to accessibility conformance reports What is PDF/UA? The accessible PDF standard explained Salesforce eSignatures: Generate, sign, and track documents in one flow Online document viewer: Options, tradeoffs, and how to embed one Document viewer for web apps: React, Vue, Angular (2026) Best document viewers in 2026: A buyer’s guide How to edit a PDF in Python: Add text, images, and annotations Nutrient advances Workflow platform with agentic AI for enterprise-grade speed and consistency in document-heavy operations How to create a Salesforce quote template from opportunity data The business case for accessibility: Five ways it drives enterprise value Python PDF library comparison (2026): 7 libraries for developers Why your AI agent hallucinates PDF table data PDF.js limitations: When to upgrade to a commercial PDF SDK How Subject scaled 5× with Nutrient’s PDF SDK without rebuilding its document layer I replaced our sales training with an AI coach that runs in Slack — here’s what broke Redirecting to: https://securitybuzz.com/cybersecurity-news/why-enterprise-permissions-are-ais-most-dangerous-inheritance/ Nutrient .NET SDK vs. iText Core: Complete comparison for .NET developers DocuVieware: Support’s most frequently asked setup questions Introducing Nutrient Workflow How to convert PDF to Word in C# (.NET) When email and spreadsheets stop working: Work order approval workflows for field teams on the move Compliance with confidence: Why document-centric automation is the foundation of your mission Nutrient expands AI Assistant, automating multistep document workflows inside any application What is document generation? A developer’s guide to PDF generation Document Converter data flow and how real-time watermarks skip the queue PDF/UA compliance guide: Requirements, standards, and best practices Computers still can’t understand you How Athena Intelligence built AI agents for regulated enterprises with Nutrient’s document infrastructure How to convert HTML to PDF (2026): 4 methods from browser print to SDK How to build a document extraction pipeline with Nutrient Vision API OCR vs. intelligent document processing: Choosing the right document extraction engine Beyond OCR: How document intelligence eliminates manual processing in regulated industries Nutrient vs. IronPDF: Complete comparison for .NET developers Nutrient vs. Aspose.PDF: Complete comparison for .NET developers Redirecting to: https://fortune.com/2026/02/19/openclaw-who-is-peter-steinberger-openai-sam-altman-anthropic-moltbook/ Lufthansa Systems uses Nutrient to deliver reliable, scalable PDF rendering for pilots worldwide Nutrient vs. Syncfusion: Complete comparison for .NET developers React’s useTransition: The hook you’re probably using wrong First City Monument Bank streamlines banking processes with Nutrient Workflow Redirecting to: https://www.sdcexec.com/warehousing/automation/article/22957364/nutrient-workflow-automation-the-missing-link-in-supply-chain-efficiency The complete guide to digital signatures: PAdES, CAdES, and XAdES explained Nutrient Python SDK: Production-grade document processing for Python Introducing agentic document editing for web applications with AI Assistant Nutrient vs. QuestPDF: Complete comparison for .NET developers How we fixed the GdPicture license expiration (and what to do if you’re affected) Red team security testing with agentic AI The future of healthcare document automation Best healthcare workflow software compared Nutrient SDK product updates for Q4 2025 How Harvey scaled legal document workflows 50 percent MoM without rebuilding infrastructure HIPAA-compliant document management in hospitals How we optimized rendering performance while handling thousands of annotations in React — Part 2 Automated PII removal with Nutrient API Redirecting to: https://www.devopsdigest.com/2026-low-code-no-code-predictions Redirecting to: https://www.kmworld.com/Articles/Editorial/ViewPoints/Leaders-predict-AI-to-continue-permeating-all-aspects-of-KM-in-2026-172594.aspx What are deep agents and how do they solve complex problems? Whipping up document magic: Your easy-bake recipe for Vue and Nutrient Web SDK 🧁 What I’ve learned about product iteration planning while building SDKs Passwordless document signing: Three-layer security guide New zip folder functionality streamlines file management in Document Automation Server The keyboard shortcuts playbook: Taking control of keyboard events in Nutrient Web SDK From experienced engineer to AI beginner: My unexpected journey AI-assisted manual testing: Handling Safari’s PDF rendering and UI quirks How to keep a 20-year-old SDK up to date How we optimized rendering performance while handling thousands of annotations in React — Part 1 Nutrient announces new executive hires to accelerate next phase of growth High performance UI using web workers Automate document conversion at scale with Python and Nutrient DCS From curiosity to PLG (and AI): My journey to understanding product-led growth Prost to progress: One year as Nutrient Pigeon usage at Nutrient: Bridging native SDKs to Flutter Modernizing CI build servers: How to migrate from Chef to Ansible Unix man pages: AI-friendly documentation since 1971 Consistent hashing for even load distribution Best AI redaction APIs: Complete comparison guide for 2025 Why AI document redaction matters for modern security From coding to coordinating: How AI transformed my workflow What is intelligent document processing (IDP)? A complete guide Enterprise PDF SDKs: Best PSPDFKit (now Nutrient) alternatives Nutrient SDK product updates for Q3 2025 GdPicture support best practices Redacting sensitive data with Nutrient AI redaction API How AI is transforming the customer experience at Nutrient: From instant answers to intelligent support
Supported annotation flags in the PDF spec and Nutrient
Veronica Marini · 2023-12-01 · via Inside Nutrient

Table of contents

    Supported annotation flags in the PDF spec and Nutrient

    Summary

    This comprehensive guide explains annotation flags defined in the PDF specification and their support in Nutrient Web SDK. It covers essential flags — like Print, Hidden, ReadOnly, Locked, and LockedContents — that control annotation behavior and user interaction. The article demonstrates how to apply these flags when creating annotations or modifying existing ones, providing practical code examples for implementing print control, content protection, and interaction restrictions in PDF documents.

    Every annotation in a PDF document can specify flags that further define the annotation’s behavior and capabilities.

    This post will give you an overview of the annotation flags defined in the PDF specification. Then, you’ll find out which flags Nutrient Web SDK supports.

    Annotation flags in the PDF specification

    Here’s how the latest PDF spec(opens in a new tab) defines annotation flags:

    • Print — When this flag is set to true, an annotation should be printable, unless the hidden flag is also set. If it’s false, the annotation is never printable, regardless of any other flag. If an annotation doesn’t contain an appearance stream, this flag will be ignored.
    • Invisible — Applies only to unknown annotations, meaning they don’t belong to one of the standard annotation types and no annotation handler is available. If set to true, the annotation isn’t rendered and isn’t printed, even if it has the noPrint flag set to false. If the Invisible flag is set to false, render such an unknown annotation using an appearance stream specified by its appearance dictionary, if any.
    • Hidden — An annotation with the hidden flag set to true won’t be rendered and can’t be interacted with.
    • noZoom — If an annotation has this flag set to true, scaling the annotation’s appearance to match the page zoom isn’t allowed.
    • NoRotate — An annotation with the noRotate flag set to true won’t change its rotation when a page rotation is specified. Instead, it’ll be locked to the top-left corner of its bounding box.
    • noView — An annotation with the NoView flag won’t be rendered in the UI. It might still be printable.
    • ReadOnly — An annotation with this flag set to true won’t interact with the user. The annotation may be rendered and printed (according to the NoView and Print flags), but it won’t respond to mouse clicks or change its appearance according to mouse inputs. This flag is ignored for widget annotations, as the ReadOnly flag of the associated form field supersedes it. It’s also ignored by link annotations.
    • Locked — If set to true, this doesn’t allow the annotation to be deleted. Nor does it allow its properties — like position, size, and color — to be modified by the user. However, this flag doesn’t restrict changes to the annotation’s contents, such as the text of a text annotation.
    • ToggleNoView — When true, it inverts the interpretation of the NoView flag, meaning that annotations will be visible when hovered or when it’s selected.
    • LockedContents — If set to true, this doesn’t allow the contents of the annotation to be modified by the user. This flag doesn’t restrict deletion of the annotation or changes to other annotation properties, such as position and size, meaning that, for example, a text annotation can have its position, color, and size modified, but not its text.

    Annotation flags supported by Nutrient Web SDK

    Nutrient Web SDK 2023.5.0 supports the following flags:

    • noView — Defaults to false.
    • noPrint — By default, we assign print: true to annotations, but this flag allows customers to disable printing.
    • noRotate — Currently only enabled for note annotations, defaults to false.
    • readOnly — Defaults to false.
    • locked — Supported by all annotation types except widget annotations, defaults to false.
    • lockedContents — Supported by all annotation types except widget annotations, defaults to false.

    Using annotation flags

    Here’s how to create a new annotation with the readOnly and noPrint flags set to true:

    const annotation = new PSPDFKit.Annotations.TextAnnotation({

    pageIndex: 0,

    text: { format: "plain", value: "Welcome to\nPSPDFKit" },

    font: "Helvetica",

    isBold: true,

    horizontalAlign: "center",

    boundingBox: new PSPDFKit.Geometry.Rect({

    left: 10,

    top: 20,

    width: 30,

    height: 40,

    }),

    fontColor: PSPDFKit.Color.RED,

    readOnly: true,

    noPrint: true,

    });

    Here’s how to set the locked and lockedContents flags on an annotation that already exists:

    // Create a new text annotation.

    let annotation = new PSPDFKit.Annotations.TextAnnotation({

    pageIndex: 0,

    text: { format: "plain", value: "Welcome to\nPSPDFKit" },

    font: "Helvetica",

    isBold: true,

    horizontalAlign: "center",

    boundingBox: new PSPDFKit.Geometry.Rect({

    left: 10,

    top: 20,

    width: 30,

    height: 40,

    }),

    fontColor: PSPDFKit.Color.RED,

    noPrint: true,

    });

    await instance.create(annotation);

    // Set flags on the text annotation.

    annotation = annotation.set("locked", true).set("lockedContents", true);

    await instance.update(annotation);

    Conclusion

    In this post, you learned all about annotation flags, and you saw how to use Nutrient to apply them to the annotations in your document.

    If you want to learn more about Nutrient, you can request a free trial of our SDK, or browse our demo page to see what our API is capable of.

    Explore related topics

    Try for free Ready to get started?

    Related SDK articles

    Explore more