The getEmbeddedDataset() function offers an additional optional argument and additional semantics related to Certified PDF 2.
When the getEmbeddedDataset() function is invoked on a job for the first time in a certain entry point, it returns a dataset of the type listed in the table below. If the function is called again on the same job in the same entry point, it returns the embedded dataset object that was created in the first call, ignoring the value of the "writable" and "cp2" arguments in the repeat calls.
CP2 | Writable | File format | Type of dataset returned |
---|---|---|---|
False | False | Any | Read-only XMP |
False | True | Supported for update Not supported for update |
Writable XMP Read-only XMP |
True | False | PDF Other than PDF |
Read-only CP2 Read-only XMP |
True | True | PDF Other supported for update Not supported for update |
Writable CP2 Writable XMP Read-only XMP |