I have Pdf document (say A) to which writing pdf elements. If a certain condition is true, I have to copy another pdf(say B) to A. I cannot close pdf A immediately after add