The Syncfusion .NET PDF Library allows developers to generate and embed QR codes into PDF documents seamlessly using C#. This guide showcases a curated set of samples demonstrating how to create basic and customized QR codes, integrate branding elements, position QR codes in headers and footers, reuse them across existing documents, and export them as images for broader use cases.
| Sample name | Description |
|---|---|
| Embed a Basic QR Code in a PDF using C# | Demonstrates how to generate and add a simple QR code to a PDF document. Ideal for encoding URLs, text, IDs, or contact details. |
| Customize QR Code Appearance | Shows how to customize QR code properties such as size, X-dimension, error correction level, and quiet zone to meet scanning and design requirements. |
| Add QR Codes to PDF Headers and Footers | Explains how to place QR codes consistently in headers or footers across all PDF pages, useful for tracking, verification, or navigation. |
| Overlay a Logo on a QR Code (Branding) | Demonstrates how to embed a logo or brand image within a QR code while maintaining scan reliability. |
| Add a QR Code to an Existing PDF Document | Shows how to insert QR codes into an already generated PDF without recreating the document from scratch. |
| Export a QR Code as an Image | Explains how to generate a QR code as an image file for reuse across PDFs, web pages, emails, or printed materials. |
| Real‑World Use Cases (Event Tickets & Invitations, Invoices & Receipts) | Shows how QR codes enable quick ticket validation for events and provide easy access to payment links or invoice details in receipts and bills. |
- Download this project to a location in your disk.
- Open the solution file using Visual Studio.
- Rebuild the solution to install the required NuGet package.
- Run the application.
- Product page: Syncfusion PDF Framework
- Documentation page: Syncfusion .NET PDF library
- Online demo: Syncfusion .NET PDF library - Online demos
- Blog: Syncfusion .NET PDF library - Blog
- Knowledge Base: Syncfusion .NET PDF library - Knowledge Base
- EBooks: Syncfusion .NET PDF library - EBooks
- FAQ: Syncfusion .NET PDF library - FAQ
- For any other queries, reach our Syncfusion support team or post the queries through the community forums.
- Request new feature through Syncfusion feedback portal.
This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a licnense here or start a free 30-day trial here.
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 26,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
Today, we provide 1600+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI(Preview), Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.