iTextSharp lets you do some fancy things with table cells that can make your generated PDF documents look exactly the way you want them to. In this example I will expand on a previous article: iTextSharp: PdfPTable Basic Example . Specifically, I will show how to absolutely size your PDF table, how to right and center align Phrase objects in your table cells, and how to horizontally and vertically align text in rotated cells. Continue reading “iTextSharp PdfPCell Text Alignment Example”
iTextSharp: PdfPTable Basic Example
In this article I will give fully functioning examples in C# and VB.NET of using the iTextSharp Pdf library of objects to create a simple tabular report. Below I’ve added an image of what the report will look like.
iTextSharp – Insert an Image to a PDF in C#
This article will review the basics of programmatically inserting and positioning an image in a PDF being generated using the iTextSharp library. I’ll show you the code for doing so in both C# and VB.NET.
Here are the main categories I’ll be covering, with links to the appropriate section:
- Adding your image programmatically while generating your PDF
- Adjusting your image scaling so it renders nicely in your PDF
- Positioning your image in your PDF
- Example code in C#
- Example code in VB.NET
If you are interested in working with the iTextSharp .NET libraries then have a look at some of the other articles covering iTextSharp I have written on the topic. Continue reading “iTextSharp – Insert an Image to a PDF in C#”