Hi,
Thanks for posting in the forum. As to your questions:
1. Fields with identical names. No, you can not merge PDF with the identical field names and still keep all the fields functional. What you observed is indeed the result behavior: only one of them will be functional. Currently there is no way to avoid this;
2. You can call ConvertHtml (not ConvertUrl) to render HTML over an existing PDF template with limited HTML features. The following code demonstrates how to do this:
Code: C#
PdfDocument doc = new PdfDocument(your_template_file);
HtmlToPdf.ConvertHtml("<div style='position:absolute;top:100px;left:100px;'>test</div>", doc.Pages[0]);
Note that:
1. You can only render output page by page. The second argument of ConvertHtml must be a PdfPage object;
2. Some HTML features may not work correctly. Specifically, certain features that requires mixing with "background" (for example, a half transparent shadow) will trigger a solid white background to be added thus causing the output of ConvertHtml to completely obscure existing contents in your PDF file;
3. If your HTML needs external resources such as images, CSS or JavaScript, you may need to set HtmlToPdf.Options.BaseUrl correctly. At runtime BaseUrl is used to expand partial Url in your HTML into full HTML.
Hope this helps. Please feel free to let us know if you still have any more questions.
Thanks!