15.6 Copy ID

The -copy-id-from operation copies the ID from the given file to the input, writing to the output.

cpdf -copy-id-from source.pdf in.pdf -o out.pdf

Copy the id from source.pdf to the contents of in.pdf, writing to out.pdf.

If there is no ID in the source file, the existing ID is retained.