284
337
///// Imports an object and its transitive closure to the specified document.
286
339
/// <param name="importedObjectTable">The imported object table of the owner for the external document.</param>
288
341
/// <param name="externalObject">The root object to be cloned.</param>
289
342
/// <returns>The clone of the root object</returns>
290
343
internal static PdfObject ImportClosure(PdfImportedObjectTable importedObjectTable, PdfDocument owner, PdfObject externalObject)
292
Debug.Assert(Object.ReferenceEquals(importedObjectTable.Owner, owner), "importedObjectTable does not belong to the owner.");
345
Debug.Assert(ReferenceEquals(importedObjectTable.Owner, owner), "importedObjectTable does not belong to the owner.");
294
347
"The ExternalDocument of the importedObjectTable does not belong to the owner of object to be imported.");
296
349
// Get transitive closure of external object