can you describe the usage, though?i mean, why would you want to modify an existing PDF, using the incremental changes support of PDF, instead of just writing the PDF anew by importing the existing PDF to a new one?
EStatusCodeAndObjectIDTypeList CopyDirectObject(PDFObject* inObject);
that copies direct object.
you can also use
EStatusCodeAndObjectIDType CopyObject(ObjectIDType inSourceObjectID);
which copies an object according to an ID.
"copying" is writing, essentially, and it's recursive [unless as stated otherwise in the comment for CopyDirectObject]