/** * Flush all copied objects and remove them from copied cache. * Note, if you will copy objects from the same document, doublicated objects will be created. * * @param sourceDoc source document */ public void flushCopiedObjects(PdfDocument sourceDoc) { if (getWriter() != null) { getWriter().flushCopiedObjects(sourceDoc.getDocumentId()); } }