'Create a copy (clone) of a document from a PDF file reader
:param reader: PDF file reader instance from which the clone
should be created.
:callback after_page_append (function): Callback function that is invoked after
each page is appended to the writer. Signature includes a reference to the
appended page (delegates to appendPagesFromReader). Callback signature:
:param writer_pageref (PDF page reference): Reference to the page just
appended to the document.'

def cloneDocumentFromReader(self, reader, after_page_append=None):

    self.cloneReaderDocumentRoot(reader)
    self.appendPagesFromReader(reader, after_page_append)
