# Why use PDF Templates or Editors when you can use True WYSIWYG Editing?

> In this article, we will discuss the advantages of using a true WYSIWYG editing experience for PDF document generation instead of using PDF templates or PDF editors.

- **Author:** Bjoern Meyer
- **Published:** 2024-02-27
- **Modified:** 2025-11-16
- **Description:** In this article, we will discuss the advantages of using a true WYSIWYG editing experience for PDF document generation instead of using PDF templates or PDF editors.
- **5 min read** (979 words)
- **Tags:**
  - ASP.NET
  - Document Editor
  - PDF
- **Web URL:** https://www.textcontrol.com/blog/2024/02/27/why-use-pdf-templates-or-editors-when-you-can-use-true-wysiwyg-editing/
- **LLMs URL:** https://www.textcontrol.com/blog/2024/02/27/why-use-pdf-templates-or-editors-when-you-can-use-true-wysiwyg-editing/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2024/02/27/why-use-pdf-templates-or-editors-when-you-can-use-true-wysiwyg-editing/llms-full.txt

---

PDFs are everywhere: Invoices, brochures, contracts and agreements. It is a highly reliable, portable format that has become the clear industry standard for document exchange. TX Text Control is used to create PDF documents and is the perfect tool for creating pixel-perfect PDF documents with attachments, embedded fonts, and document access settings in multiple formats, including PDF/A and PDF/A-3b.

A PDF document should be the end result of a document automation process and not the intermediate format used as a template. From the beginning, when PDF was introduced, the format was not intended to be changed. The editors available are far from being perfect for PDF document editing. The reasons are very straightforward.

- PDF documents are not designed to be edited.
- PDF may not contain elements such as paragraphs or tables.
- PDF is page-oriented and is not designed to support floating text.

Complex structures are required to circumvent these design limitations, which are cumbersome.

> **Important:** As a dynamic structure that can be updated at any time, a document should be editable for as long as possible.

When is the right time to create a PDF file that is essentially a "write-only" file?

It is possible to make changes to a created PDF document. For example, you can replace small pieces of text or remove entire pages. But you get an idea of how dynamic digital document processing should be when you think of a PDF as a printed sheet of paper. A document should be editable for as long as possible. It is a dynamic structure that should be able to be updated at any time until the process is complete and a document is created for further processing or archiving.

### WYSIWYG Editing

WYSIWYG ("what-you-see-is-what-you-get") editing is a method that allows the user to directly manipulate the layout of a document. The user can see the end result while the document is being created. This is the most intuitive way to create documents and is the most common way to create documents in word processors such as Microsoft Word.

The document editor of TX Text Control with MS Word compatible look and feel is shown in the following screenshot.

[![Creating documents with TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2024/02/27/b/assets/editor.webp "Creating documents with TX Text Control")](https://s1-www.textcontrol.com/assets/dist/blog/2024/02/27/b/assets/editor.webp)

TX Text Control is available for ASP.NET, ASP.NET Core, Angular, React, JavaScript, Windows Forms, and WPF.

This concept should also be applied to the creation of templates that will be used for the generation of PDF documents. TX Text Control allows you to integrate template editing directly into your application, providing the following benefits.

- **Browser-independent, true WYSIWYG editing**  
    TX Text Control provides true WYSIWYG editing in all browsers and on all devices. The editor is based on HTML5 and JavaScript and is independent of the browser and the platform.
- **MS Word look and feel**  
    The editor provides a MS Word look and feel and supports all word processing features such as tables, headers and footers, sections and merge fields.
- **Import and export MS Word formats**  
    The editor supports importing and exporting MS Word formats such as DOC, DOCX and RTF. This allows you to use existing MS Word documents as templates and to export the created documents to MS Word formats.
- **PDF document generation**  
    The editor provides a powerful mail merge feature to create documents based on templates. The merge process can be executed on the server or in the browser to create PDF documents.

### The MailMerge Process

TX Text Control provides a powerful mail merge process to create documents based on these created templates. The merge process can be executed on the server or in the browser to create PDF documents.

When the final PDF is created, the designed template is used and merged with data from supported data sources such as JSON. The ease with which the final PDF file can be generated will be demonstrated in this chapter. The following simple template is used for the merge process using the MailMerge class.

[![Creating documents with TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2024/02/27/b/assets/pdf2.webp "Creating documents with TX Text Control")](https://s1-www.textcontrol.com/assets/dist/blog/2024/02/27/b/assets/pdf2.webp)

As a simplified data source, the following JSON data is used. Complex hierarchical data with nested merge block structures is supported by TX Text Control.

```
[
  {
    "company_name": "Text Control, LLC",
    "address":
    {
      "street": "1111 Text Control Way",
      "zip": "28226",
      "city": "Charlotte",
      "country": "United States"
    }
  }
]
```

The following C# code merges JSON data into MS Word compatible merge fields to create the resulting PDF document.

```
TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings() {
  ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord };

string jsonData = System.IO.File.ReadAllText("data.json");

using (TXTextControl.ServerTextControl serverTextControl = 
       new TXTextControl.ServerTextControl()) {
  serverTextControl.Create();
  serverTextControl.Load("template.docx", TXTextControl.StreamType.WordprocessingML, ls);

  using (MailMerge mailMerge = new MailMerge()) {
    mailMerge.TextComponent = serverTextControl;
    mailMerge.MergeJsonData(jsonData);
  }

  // export document as PDF
  serverTextControl.Save("results.pdf", TXTextControl.StreamType.AdobePDF);
}
```

As a result, the PDF document is created based on the template and the JSON data.

[![Creating documents with TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2024/02/27/b/assets/pdf3.webp "Creating documents with TX Text Control")](https://s1-www.textcontrol.com/assets/dist/blog/2024/02/27/b/assets/pdf3.webp)

### Conclusion

Using a true WYSIWYG editing experience for PDF document generation instead of using PDF templates or PDF editors has many advantages. The document editor of TX Text Control provides a powerful and easy-to-use way to create templates for PDF document generation. The mail merge process is a powerful way to merge data into these templates to create final PDF documents.

Check out our [online demos](https://demos.textcontrol.com/chapter/topic/RichTextEditor/MailMergeOverview) to try out the Document Editor for yourself.

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Programmatically Fill, Flatten, and Export DOCX Form Templates to PDF in C# .NET](https://www.textcontrol.com/blog/2026/04/10/programmatically-fill-flatten-and-export-docx-form-templates-to-pdf-in-csharp-dotnet/llms.txt)
- [5 Layout Patterns for Integrating the TX Text Control Document Editor in ASP.NET Core C#](https://www.textcontrol.com/blog/2026/04/09/5-layout-patterns-for-integrating-the-tx-text-control-document-editor-in-aspnet-core-csharp/llms.txt)
- [Introducing Text Control Agent Skills](https://www.textcontrol.com/blog/2026/03/27/introducing-text-control-agent-skills/llms.txt)
- [Deploying the TX Text Control Document Editor from the Private NuGet Feed to Azure App Services (Linux and Windows)](https://www.textcontrol.com/blog/2026/03/25/deploying-the-tx-text-control-document-editor-from-the-private-nuget-feed-to-azure-app-services-linux-and-windows/llms.txt)
- [Why Structured E-Invoices Still Need Tamper Protection using C# and .NET](https://www.textcontrol.com/blog/2026/03/24/why-structured-e-invoices-still-need-tamper-protection-using-csharp-and-dotnet/llms.txt)
- [Create Fillable PDFs from HTML Forms in C# ASP.NET Core Using a WYSIWYG Template](https://www.textcontrol.com/blog/2026/03/17/create-fillable-pdfs-from-html-forms-in-csharp-aspnet-core-using-a-wysiwyg-template/llms.txt)
- [Why HTML to PDF Conversion is Often the Wrong Choice for Business Documents in C# .NET](https://www.textcontrol.com/blog/2026/03/13/why-html-to-pdf-conversion-is-often-the-wrong-choice-for-business-documents-in-csharp-dot-net/llms.txt)
- [Build a Custom Backstage View in ASP.NET Core with TX Text Control](https://www.textcontrol.com/blog/2026/02/17/build-a-custom-backstage-view-in-aspnet-core-with-tx-text-control/llms.txt)
- [ASP.NET Core Document Editor with Backend via the Text Control Private NuGet Feed](https://www.textcontrol.com/blog/2026/02/09/aspnet-core-document-editor-private-nuget-feed/llms.txt)
- [A Complete Guide to Converting Markdown to PDF in .NET C#](https://www.textcontrol.com/blog/2026/01/07/a-complete-guide-to-converting-markdown-to-pdf-in-dotnet-csharp/llms.txt)
- [Why PDF Creation Belongs at the End of the Business Process](https://www.textcontrol.com/blog/2026/01/02/why-pdf-creation-belongs-at-the-end-of-the-business-process/llms.txt)
- [Designing the Perfect PDF Form with TX Text Control in .NET C#](https://www.textcontrol.com/blog/2025/12/16/designing-the-perfect-pdf-form-with-tx-text-control-in-dotnet-csharp/llms.txt)
- [Why Defining MIME Types for PDF/A Attachments Is Essential](https://www.textcontrol.com/blog/2025/12/10/why-defining-mime-types-for-pdfa-attachments-is-essential/llms.txt)
- [Why Document Processing Libraries Require a Document Editor](https://www.textcontrol.com/blog/2025/12/04/why-document-processing-libraries-require-a-document-editor/llms.txt)
- [Validate Digital Signatures and the Integrity of PDF Documents in C# .NET](https://www.textcontrol.com/blog/2025/11/14/validate-digital-signatures-and-the-integrity-of-pdf-documents-in-csharp-dotnet/llms.txt)
- [Validate PDF/UA Documents and Verify Electronic Signatures in C# .NET](https://www.textcontrol.com/blog/2025/11/13/validate-pdf-ua-documents-and-verify-electronic-signatures-in-csharp-dotnet/llms.txt)
- [How To Choose the Right C# PDF Generation Library: Developer Checklist](https://www.textcontrol.com/blog/2025/11/12/how-to-choose-the-right-csharp-pdf-generation-library-developer-checklist/llms.txt)
- [Why Digitally Signing your PDFs is the Only Reliable Way to Prevent Tampering](https://www.textcontrol.com/blog/2025/10/30/why-digitally-signing-your-pdfs-is-the-only-reliable-way-to-prevent-tampering/llms.txt)
- [Automating PDF/UA Accessibility with AI: Describing DOCX Documents Using TX Text Control and LLMs](https://www.textcontrol.com/blog/2025/10/16/automating-pdf-ua-accessibility-with-ai-describing-docx-documents-using-tx-text-control-and-llms/llms.txt)
- [Converting Office Open XML (DOCX) to PDF in Java](https://www.textcontrol.com/blog/2025/10/14/converting-office-open-xml-docx-to-pdf-in-java/llms.txt)
- [Document SDK Comparison: Complete Document Processing vs. PDF SDK](https://www.textcontrol.com/blog/2025/10/10/document-sdk-comparison-complete-document-processing-vs-pdf-sdk/llms.txt)
- [Extending DS Server with Custom Digital Signature APIs](https://www.textcontrol.com/blog/2025/10/09/extending-ds-server-with-custom-digital-signature-apis/llms.txt)
- [Why PDF/UA and PDF/A-3a Matter: Accessibility, Archiving, and Legal Compliance](https://www.textcontrol.com/blog/2025/10/07/why-pdf-ua-and-pdf-a-3a-matter-accessibility-archiving-and-legal-compliance/llms.txt)
- [Convert Markdown to PDF in a Console Application on Linux and Windows](https://www.textcontrol.com/blog/2025/09/23/convert-markdown-to-pdf-in-a-console-application-on-linux-and-windows/llms.txt)
- [Mining PDFs with Regex in C#: Practical Patterns, Tips, and Ideas](https://www.textcontrol.com/blog/2025/08/12/mining-pdfs-with-regex-in-csharp-practical-patterns-tips-and-ideas/llms.txt)
