I'm trying to make a deep copy of a Google Doc that has linked documents in the images. I want to preserve all the attributes in the document.
My code:
DriveApp.getFileById(id).makeCopy('Copy of '+ sourceDoc.getName());
Already tried something like the solution in this thread: How to copy content and formatting between Google Docs? , but it doesn't preserve all the attributes.
Thanks in advance for your help.