This sample code shows how to merge multiple PDFs and add a Table of Contents (TOC) at the end of the document. http://stackoverflow.com/a/25316944/231316
Category: iTextSharp
How to convert HTML to PDF using iTextSharp
I just posted a question and answer tutorial on Stack Overflow for how to convert HTML to PDF using iTextSharp. It shows off both HTMLWorker as well as XMLWorker.
Handling a splitting table in iTextSharp
The PdfPTable class has a property called TableEvent that can be used to receive (as you would expect), events related to a table. If you’re used to .Net, however, you’ll find that it isn’t a true .Net event that you can += or AddHandler and event onto. Instead, like most…
iTextSharp slightly smarter text extraction strategy
iTextSharp’s SimpleTextExtractionStrategy is great but it is simple as the name implies. It can detect new lines pretty well but it has no care for the order of the lines themselves. If your PDF isn’t written top to bottom (as many PDFs aren’t) you’ll get everything out of order. The code…
Speed up iTextSharp’s PdfReader when reading multiple files or one very large file
Most users of iTextSharp’s PdfReader are used to using the constructor that takes a single string representing a file path. For small files or only a couple of files this is fine but if you have a document with a large number of pages or just a large number of…
#3 – VB.Net iTextSharp Tutorial – Add a scaled image to a document
This is part of a series of iTextSharp tutorials for VB 2010 Express. See this post for an overview and to answer any basic questions that you may have. This post is a followup to the previous one, this time it scales the image based on the document’s size
#2 – VB.Net iTextSharp Tutorial – Add an image to a document
This is part of a series of iTextSharp tutorials for VB 2010 Express. See this post for an overview and to answer any basic questions that you may have.
#1 – VB.Net iTextSharp Tutorial – Hello World
This is the first in the series of iTextSharp tutorials for VB 2010 Express. See this post for an overview and to answer any basic questions that you may have. This is the starter, the “hello world” program done in VB.Net. The comments in the code should hopefully be enough…
VB.Net tutorial for iTextSharp
iTextSharp is a great open source PDF creation and manipulation library and is a port of the original Java version iText. Unfortunately I’ve found the documentation and samples lacking, especially for VB.Net. The only good collection of tutorials that I’ve found was written by Mike Brind. While they were a…