title: Override pdf fields in new document
body: <p>I have one pdf template, which I try to override in new document. I need to get some fields from template PDF and re-write their values in new PDF. I do this :</p>
  
  <pre><code>PdfReader templatereader = new PdfReader("Templates//PDF_Template_Empty.pdf");
  PdfDocument template = new PdfDocument(templatereader);
  var writer = new PdfWriter(OutputFilepath);
  PdfDocument newreport = new PdfDocument(writer);
  var fields = PdfAcroForm.GetAcroForm(template, true); //!!!
  </code></pre>
  
  <p>But then i catch the Exception :</p>
  
  <blockquote>
    <p>iText.Kernel.PdfException: 'There is no associate PdfWriter for making
    indirects.'</p>
  </blockquote>
  
  <p>What i am doing wrong and how to fix it ? iTextsharp 7.</p>