Overview
ISO 21757-1:2020 - Document management - ECMAScript for PDF - Part 1: Use of ISO 32000-2 (PDF 2.0) defines a standardized ECMAScript (JavaScript) interface for automating and interacting with PDF documents that conform to ISO 32000-2 (PDF 2.0). The standard specifies object types, syntax rules, security contexts and a comprehensive ECMAScript API for programmatic access to PDF structure and content.
Key topics and technical requirements
- Scope and normative references: Aligns ECMAScript for PDF usage with the PDF 2.0 foundations of ISO 32000-2.
- Terms, definitions and notation: Establishes a consistent vocabulary and notation for PDF scripting.
- Syntax and method arguments: Defines syntax conventions and argument handling for ECMAScript methods in the PDF environment.
- Paths and Safe Path: Specifies how script paths are represented and how safe paths are enforced when accessing file or resource locations.
- Privileged vs non‑privileged contexts: Describes security models and restrictions for code running with different privilege levels inside a PDF runtime.
- ECMAScript API object model: Detailed object types and APIs for interacting with PDF elements. The table of contents shows standardized objects such as:
- Annotation, AnnotRichMedia, Annot3D
- app, Doc, Embedded PDF
- Field, Bookmark, Dialog, FullScreen
- Certificate, Icon, color, collection, Data, Error, event, global, HostContainer
- Properties and methods: For each object type the standard documents properties and callable methods to manipulate PDF content, annotations, forms, bookmarks, events, and more.
Practical applications
- PDF automation and workflows: Automate form processing, batch updates, metadata extraction and content modification using standardized PDF scripting.
- Interactive forms and annotations: Implement consistent behavior for actions, validation, and dynamic appearance across PDF 2.0 viewers.
- Document management systems (ECM): Integrate PDF scripting capabilities into enterprise content management (ECM) platforms for processing, indexing and automated publishing.
- PDF viewers and tool vendors: Build interoperable PDF readers and authoring tools that support standardized ECMAScript APIs.
- Security and compliance: Apply privileged/non‑privileged context rules and safe path handling to maintain secure PDF execution environments.
Who should use this standard
- PDF developers and software engineers implementing JavaScript-based PDF features
- ECM and document management solution architects
- PDF viewer and authoring tool vendors
- QA testers and compliance officers validating PDF script behavior against PDF 2.0
Related standards
- ISO 32000-2 (PDF 2.0) - foundational PDF specification referenced by ISO 21757-1:2020.
Keywords: ISO 21757-1:2020, ECMAScript for PDF, PDF 2.0, ISO 32000-2, PDF automation, JavaScript in PDF, PDF scripting, document management, ECM.