iText 7 itextpdf.kernel.PdfException
<p>I'm using java and iText 7 to generate PDF. </p>

<p>I created a PDF template and has some data models inside this template in order to make it dynamic.</p>

<p>When first time I used this template to generate PDF, it worked fine. But second time I tried to modify the data value inside the template then generate again it raised an error.</p>

<pre>
2016-09-24 18:35:17,589|http-bio-8080-exec-20|INFO|CustomerControllercom.itextpdf.kernel.PdfException: pdf.inderect.object.belong.to.other.pdf.document.Copy.object.to.current.pdf.document
com.itextpdf.kernel.PdfException: pdf.inderect.object.belong.to.other.pdf.document.Copy.object.to.current.pdf.document
    at com.itextpdf.kernel.pdf.PdfOutputStream.write(PdfOutputStream.java:184)
    at com.itextpdf.kernel.pdf.PdfOutputStream.write(PdfOutputStream.java:174)
    at com.itextpdf.kernel.pdf.PdfOutputStream.write(PdfOutputStream.java:104)
    at com.itextpdf.kernel.pdf.PdfOutputStream.write(PdfOutputStream.java:176)
    at com.itextpdf.kernel.pdf.PdfOutputStream.write(PdfOutputStream.java:104)
    at com.itextpdf.kernel.pdf.PdfOutputStream.write(PdfOutputStream.java:176)
    at com.itextpdf.kernel.pdf.PdfOutputStream.write(PdfOutputStream.java:104)
    at com.itextpdf.kernel.pdf.PdfWriter.writeToBody(PdfWriter.java:315)
    at com.itextpdf.kernel.pdf.PdfWriter.flushObject(PdfWriter.java:232)
    at com.itextpdf.kernel.pdf.PdfDocument.flushObject(PdfDocument.java:1257)
    at com.itextpdf.kernel.pdf.PdfObject.flush(PdfObject.java:147)
    at com.itextpdf.kernel.pdf.PdfObject.flush(PdfObject.java:124)
    at com.itextpdf.kernel.pdf.PdfObjectWrapper.flush(PdfObjectWrapper.java:97)
    at com.itextpdf.kernel.pdf.PdfPage.flush(PdfPage.java:410)
    at com.itextpdf.kernel.pdf.PdfPage.flush(PdfPage.java:367)
    at com.itextpdf.kernel.pdf.PdfDocument.close(PdfDocument.java:720)
    at com.itextpdf.layout.Document.close(Document.java:115)
</pre>