Specifications

(not counting any sessions automatically added while obtaining the
dataset); returns false otherwise.
If hasValidSignature() returns true, hasPreviousSessions() should return
true as well (unless some application has created a corrupt Certified
PDF 2 file). However if hasValidSignature() returns false,
hasPreviousSessions() may still return true.
Removing Certified PDF 2
Removes all metadata related to Certified PDF 2 from the dataset and
causes the dataset to subsequently behave as a regular XMP dataset. When
removeCertifiedPDF2(
fullSave : Boolean )
[w]
finishWriting() is called (or the entry point exits), any data structures
related to Certified PDF 2 are removed from the underlying file.
If fullSave is false or missing, these changes are affected through
incremental save, which means the file will contain the original
information and overhead. If fullSave is true, a full save is performed,
eliminating any information that is no longer referenced and thus reducing
overhead.
After this function was invoked on a dataset, invoking any of the
CP2-specific functions on the dataset is a programming error and has
unpredictable results.
Sessions
A session represents the work done to a Certified PDF 2 file between saves.
When obtaining a CP2 dataset, a new session object is automatically created
and stored in the dataset. This session is called the "Active" session and it
Active session
contains any changes made to the CP2 dataset during this entry point. The
session is automatically completed when the dataset is finished for writing
(explicitly or by exiting the entry point).
If a previously valid Certified PDF 2 file has been updated by a nonconforming
application, its XMP metadata do not contain session objects for each
Delaing with
uncertified files
performed save. When obtaining a writable CP2 dataset for such a file,
session objects are automatically created for each uncertified save, before
creating the active session.
Note: For implementation, use a subset of the PitStop algorithms to
determine the missing sessions, without considering any Certified PDF 1
information; create minimal sessions (containing required properties only)
with editing zone “All”.
Once a session has been finished it can no longer be modified. The active
session is the only editable session object. Any session can be removed from
Updating sessions
the dataset. However when a session is removed, all previous sessions are
automatically removed as well. In addition any certificates added during
the removed sessions are automatically removed as well. As an alternative
to removing a session completely (and as an exception to the rule of not
modifying previous sessions), it is possible to strip a session. Stripping a
session removes all optional session properties while leaving any certificates
intact.
495
Enfocus Switch 10