Loaded owner credential context

The password overload of THotPDF.LoadFromFile retains whether the standard security handler authenticated the supplied password as an owner or a user

The retained role belongs to the authenticated document context, including its encryption dictionary and permanent file identifier, and remains available to later strict annotation imports

Owner authentication retains the existing owner exemption from user permission bits; a restricted user continues to require the permissions for the requested operation

Strict FDF import distinguishes the authenticated role

ImportLoadedInterchangeFromFDF checks the retained role through the existing loaded annotation import policy before committing an actual annotation change

Authenticated inputRequested operationExisting permission behavior
User with form-fill permission and no annotation permissionImport a new Text annotationThe annotation import is rejected and its own graph changes are rolled back
The same restricted userImport a writable field valuePermitted form filling remains available, subject to the existing field and complete-graph checks
OwnerImport the same Text annotationThe owner exemption is retained, while all other applicable import and signature-policy checks still apply

A failed interchange import clears Status and AInfo and preserves an enclosing caller transaction; the caller can explicitly roll back that transaction

These role distinctions apply to ordinary password-authenticated loading and the password overload of BeginIncrementalUpdate, which prepares the loaded document for incremental publication

Encrypted incremental publication

Use SaveIncrementalUpdateAuthenticated when the workflow requests authenticated signature-policy admission before publishing an incremental revision

An accepted encrypted incremental update retains the original byte prefix, encryption dictionary and permanent identifier, while the appended revision receives its modification identifier

Retaining an owner role does not change the raw field-setter permission contract or add a new unsigned-save authorization policy

Focused role regression

The console controls in Tests/AcroForm/AuthenticatedAnnotationRoles exercise AES-128 revision 4 and AES-256 revision 6 with separate restricted-user rejection, permitted field-fill and owner annotation-import cases

The two profiles cover six cases and 219 native assertions, with four successful PDFs and 100 independent output checks for credential roles, permissions, encryption, identifiers, original prefixes, field appearances and annotation page ownership

Every case uses a fresh document and synthetic credentials, with viewer launch suppressed and no forms or application event loop

The encrypted fixtures are unsigned, so only these controls explicitly set RequireSignaturePolicy=False on the three-argument authenticated save call; the public default remains True

This focused scope does not establish signed DocMDP or FieldMDP acceptance, complete FDF support, FDF field-flag import support or native Linux facade acceptance

Related topics