-
Notifications
You must be signed in to change notification settings - Fork 1
3. Development Guide by Example
This section describes the integration of the PDF File Writer C# class library to your application. The test program TestPdfFileWriter
program is a simulation of your own application. When you press on the “Article Example” button, the program executes the code in ArticleExample.cs source file. The image above displays the resulted PDF file. This method demonstrates the creation of one page document with some text and graphics. After going through this example, you should have a good understanding of the process. The other example buttons produce a variety of PDF documents. In total, practically every feature of this library is demonstrated by these examples.
The Debug check box, if checked, will create a PDF file that can be viewed with a text editor but cannot be loaded to a PDF reader. The resulted file is not compressed and images and font file are replaced with text place holder. The Debug check box should be used for debugging only.
The TestPdfFileWriter
program was developed using Microsoft Visual C# 2012. It was tested for Windows XP, Vista, 7 and 8.
Table of Contents:
- 3.1 Document Creation Overview
- 3.2 Font Resources
- 3.3 Tiling Pattern Resource
- 3.4 Draw Frame with Background Pattern
- 3.5 Draw Two Lines of Heading
- 3.6 Draw Happy Face
- 3.7 Draw Barcodes
- 3.8 Draw PDF417 Barcode
- 3.9 Draw Image and Clip it
- 3.10 Draw Pie Chart
- 3.11 Draw Text Box
- 3.12 Draw Book Order Form
This page is a copy from https://www.codeproject.com/Articles/570682/PDF-File-Writer-Csharp-Class-Library by Uzi Granot. The article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL). All rights to the texts and source code remain with Uzi Granot.