“I do not fear computers. I fear lack of them.”
The following applications have been developed using iTextSharp, ASP.NET, and the C# language.
If you ever need or want to create PDF files, then Bruno Lowagie's book, iText in Action, is a must have. He really gets down to the nuts and bolts of creating and manipulating PDF files. But, his source code is in Java, and we only use Java when coding for the Javelin Stamp. So, we converted his source code from Java to C# and used iTextSharp.
We have been asked by Bruno's publisher to mention that all source code pertaining to the book is in fact the intellectual property of Bruno Lowagie and we are not making any profit from the source code translation. We just wanted to help out those C# coders who bought the book or those coders who were interested in purchasing the book but were scared of Java.
The section below lists the chapters from Bruno's book. Click on a chapter to view the converted source code for that chapter. Please note that the source code below pertains to the first publication of the book.
iTextSharp Source Code
Click on a chapter to view the source code.
Chapter 1 - iText: When and Why
History and first use of iText. Overview of iText's PDF functionality.
Chapter 2 - PDF Engine Jump-Start
Hello World - Hello iText. Creating a PDF document in five steps. Basic PDF manipulation.
Chapter 3 - PDF: Why and When
What is PDF? History of the PDF format. Different PDF types and versions.
Chapter 4 - Composing Text Elements
Working with Chunks, Phrases, and Paragraphs. Working with Anchors, Lists, and ListItems. Working with Chapters and Sections. Advanced Chunk functionality.
Chapter 5 - Inserting Images
Image types supported in iText. Image properties.
Chapter 6 - Constructing Tables
Working with PdfPTable, PdfPCell, and class Table.
Chapter 7 - Constructing Columns
Avanced page layout with ColumnText. Text mode vs. composite mode. Automated columns with MultiColumnText.
Chapter 8 - Choosing the Right Font
What is a font? What is a font program? What font do you need?
Chapter 9 - Using Fonts
How to write PDF from top to bottom. How to write PDF from right to left. How to deal with diacritics and ligatures. How to automate font selection.
Chapter 10 - Constructing and Painting Paths
PDF's graphic state. iText's direct content. PDF's Coordinate System.
Chapter 11 - Adding Color and Text
PDF and Color spaces. Transparency and clipping. PDF's text state.
Chapter 13 - Browsing a PDF Document
Setting viewer preferences. Adding Bookmarks. Introducing a first series of actions.
Chapter 14 - Automating PDF Creation
The theory of pages. Page events in practice. XML ideas for iText.
Chapter 15 - Creating Annotations and Fields
Annotations: overview of the most common types. Fields: buttons, text fields, and choice fields. Forms: a second series of actions.
Chapter 16 - Filling and Signing AcroForms
Reading and updating form fields. Working with (X)PDF. Signing a PDF document. Verifying a signed PDF document.
Chapter 17 - iText in Web Applications
How to use iText in a web application. How to avoid the most common pitfalls. How to use PDF in a web application.
Chapter 18 - Under the Hood
PDF syntax, design practices, and how to access and change PDF syntax using iText.
© 1997-2020 Codehacker - All Rights Reserved