TX Text Control .NET for Windows Forms

PDF Examples

Topic

A Windows Forms application saves PDF documents from the same TextControl that users edit, and the PDF classes of TX Text Control read form fields, attachments and text from existing PDF files. Few samples are Windows Forms projects: an electronic invoice and a PDF viewer. The other samples and articles below were written for TX Text Control .NET Server or as console applications, and use classes that TX Text Control .NET for Windows Forms contains as well.

Windows Forms Samples

ExampleWhat it showsWhere
ZUGFeRD invoiceAn invoice saved from the TextControl as PDF/A with its ZUGFeRD XML embedded as an EmbeddedFile, as described in Creating ZUGFeRD Compliant PDF Invoices in C#. .NET Framework 4.8, version 33.0, C#TextControl.WindowsForms.Zugferd
PDF viewer in a formThe Document Viewer of TX Text Control .NET Server in a WebView2 control, served by a web server inside the Windows Forms application, as described in Display PDF Documents in Windows Forms using the Document Viewer and Embedded Kestrel in C#. .NET 8, version 33.0, with the packages TXTextControl.TextControl.Core.SDK and TXTextControl.Web.DocumentViewer of TX Text Control .NET Server, C#TXTextControl.Windows.Forms.TXViewer

Other Samples

These projects are console applications for TX Text Control .NET Server. Their code runs in a Windows Forms project once you replace the package with TXTextControl.TextControl.WinForms.SDK:

ExampleWhat it showsWhere
ZUGFeRD from a mergeAn invoice merged with MailMerge, its XML created with a ZUGFeRD library and embedded in a PDF/A document, as described in Creating 100% Compliant ZUGFeRD and Factur-X Invoices using MailMerge in C#. .NET 8, version 33.0TXTextControl.Core.MailMerge.Zugferd
Form fields mapped to JSONThe form fields of a template renamed to match the keys of JSON data, as described in Automatically Mapping TX Text Control Form Fields to JSON Data in .NET C#. .NET 10, version 34.0TXTextControl.FormFieldMapper

Blog Articles With Code

These articles use ServerTextControl and the PDF classes, which are part of TX Text Control .NET for Windows Forms as well:

ExampleWhat it showsWhere
Fillable PDF formsText, check box and selection form fields created and saved as a fillable PDF formCreate Fillable PDF Forms in .NET C#
Form fields in PDFForm fields created, preselected, flattened and read from a PDF documentCreate, Pre-Select, Flatten and Extract PDF Form Fields using C#
Flattened form fieldsForm fields turned into static text before saving as PDFExtension Method: Flatten Forms Fields in PDF Documents using .NET C#
DOCX forms to PDFA DOCX document with form fields converted to PDF, with the fields kept or flattenedConvert MS Word DOCX to PDF with Form Fields in C# .NET: Preserve or Flatten Form Fields
Form field formatsAcroForms, the legacy form fields of MS Word and content controls comparedForm Field Compatibility: Work with AcroForms, Legacy MS Word Forms, and Content Controls
ZUGFeRD attachmentsThe XML attachment of a ZUGFeRD or Factur-X invoice read from a PDF/A-3 documentExtract ZUGFeRD/Factur-X XML Attachments from Adobe PDF/A-3b Documents
PDF to textThe text of a PDF document saved as plain textConverting PDF Documents to Plain Text TXT in C#
Encryption and permissionsPasswords and access permissions of a PDF documentPDF Security for C# Developers: Encryption and Permissions in .NET
KeywordsKeywords written to and read from the metadata of PDF documentsEnhancing PDF Searchability in Large Repositories by Adding and Reading Keywords Using C# .NET

Next Steps