PDF Examples
No sample of Text Control is a WPF application dedicated to PDF, yet everything the samples below do works in one: the PDF classes of TX Text Control, such as the namespace DocumentServer.PDF, and ServerTextControl are part of the WPF package. The samples were written for TX Text Control .NET Server or for Windows Forms, and the tables say which. The TX Words Reporting sample saves merged documents as PDF/A in WPF; see Mail Merge Examples.
Sample Projects
To reuse the code of a console application for TX Text Control .NET Server in a WPF project, reference TXTextControl.TextControl.WPF.SDK instead of its package:
| Example | What it shows | Where |
|---|---|---|
| Watermarks for each download | A watermark with the data of the user added at each download, and the PDF document signed so that removing the watermark can be detected, as described in Secure by Design: Dynamic Watermarking for Enterprise Documents in C# .NET. A console application for TX Text Control .NET Server, .NET 10, version 34.0 | TXTextControl.TXEnterpriseWatermark |
| XFDF form data | A class that exports the AcroForm fields of a PDF document as XFDF and fills fields from XFDF, as described in Export and Import Adobe PDF XFDF XML Files in .NET C#. A class without a project | XfdfProcessing |
| ZUGFeRD invoice | An invoice with its ZUGFeRD XML embedded in a PDF/A-3 document, as described in Creating ZUGFeRD Compliant PDF Invoices in C#. Windows Forms, .NET Framework 4.8, version 33.0 | TextControl.WindowsForms.Zugferd |
| ZUGFeRD from a merge | An invoice merged with MailMerge and its XML embedded in a PDF/A document, as described in Creating 100% Compliant ZUGFeRD and Factur-X Invoices using MailMerge in C#. A console application for TX Text Control .NET Server, .NET 8, version 33.0 | TXTextControl.Core.MailMerge.Zugferd |
| ZUGFeRD 2.3 | An XRechnung invoice in ZUGFeRD 2.3 embedded in a PDF/A-3 document, as described in Creating ZUGFeRD 2.3 (XRechnung, Factur-X) Documents with .NET C#. A console application for TX Text Control .NET Server, .NET 8, version 32.0 | TXTextControl.ZUGFeRD23 |
| Readable electronic invoices | The data of XRechnung, ZUGFeRD and Factur-X invoices shown as a readable document, as described in Visualize and Preview XRechnung, ZUGFeRD, and Factur-X Documents in .NET C#. A console application for TX Text Control .NET Server, .NET 8, version 32.0 | TXTextControl.XRechnung.Visualize |
Blog Articles With Code
These articles use ServerTextControl and the PDF classes in console applications:
| Example | What it shows | Where |
|---|---|---|
| Fillable PDF forms | Text, check box and selection form fields created and saved as a fillable PDF form | Create Fillable PDF Forms in .NET C# |
| Form fields in PDF | Form fields created, preselected, flattened and read from a PDF document | Create, Pre-Select, Flatten and Extract PDF Form Fields using C# |
| ZUGFeRD attachments | The XML attachment of a ZUGFeRD or Factur-X invoice read from a PDF/A-3 document | Extract ZUGFeRD/Factur-X XML Attachments from Adobe PDF/A-3b Documents |
| Watermarks | Watermarks added to the pages of a PDF document | Adding Watermarks to PDF Documents in .NET C# |
| Keywords | Keywords written to and read from the metadata of PDF documents | Enhancing PDF Searchability in Large Repositories by Adding and Reading Keywords Using C# .NET |
| Accessible PDF | Documents checked for the requirements of PDF/UA before they are saved | Preflighting PDF/UA Documents with TX Text Control in .NET C# |
| Security | Passwords, permissions, encryption and digital signatures of PDF documents | PDF Security Explained: Passwords, Permissions, Encryption and Digital Signatures in C# .NET |
Next Steps
- PDF Processing: create, import and secure PDF documents.
- Create a PDF: save a first PDF document from a window.
- Digital Signature Examples: sign PDF documents with certificates.