title: Printing different values (Copy number) in different copies of a particular document
body: <p>My application uses an <code>RTF file</code> with merge fields as source and creates a <code>PDF file</code> with it using <code>Aspose.Words</code>. The users of this application give that resulting document to their clients, so copies of same document will be printed for each of their client. There is only one difference on those copies however, and that is copy number at the end of each document copy. </p>
  
  <p>For now; lets say there are 4 clients so 4 copies of the same document will be printed with only copy numbers different. I achieve this by creating same document for 4 times and each time I insert my html text, merge fields, and add copy number then append the documents. In the end, I have one big document in which all 4 created documents appended. </p>
  
  <p>Here is my code block for it, there were lots of code there, so I tried to downsize them to only related parts:</p>
  
  <pre><code>import com.aspose.words.*
  
  Document docAllAppended = new Document(loadDocument("/documents/" + RTFFileName));
  Document docTemp=null;
  for (int i = 1; i &lt;= copyNumber; i++) {
    docTemp = new Document(loadDocument("/documents/" + RTFFileName));
  
    DocumentBuilder builder = new DocumentBuilder(docTemp);
    //insert html which includes file context
    builder.insertHtml(htmlText);
  
    //insert Copy number
    builder.moveToBookmark("sayfa");
    Font font = builder.getFont();
    font.setBold(true);
    font.setSize(8);
    builder.write("Copy Number-" + i+ " / ");
    font.setBold(false);
  
    docAllAppended.appendDocument(docTemp,ImportFormatMode.USE_DESTINATION_STYLES);
  }
  </code></pre>
  
  <p>This looks so unnecessary and has low performance. Also each time my users try to change copy number to be printed, my application calculates whole thing from the start. What I am asking is, is there a way to make this faster or how not to create whole thing again when copy number to be printed changes? So far I haven't found much.</p>
  
  <p>Thanks in advance.</p>