.Net, ASP.NET, C#, iTextSharp, PDF, Programming, Software, Web Development

iTextSharp PdfPCell Text Alignment Example

iTextSharp Table Cells
iTextSharp Table Cells

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”

Advertisement
.Net, ASP.NET, C#, CSS3, HTML, iTextSharp, PDF, Programming, Software, VB.NET, Web Development

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 Example Report
iTextSharp Example Report

Continue reading “iTextSharp: PdfPTable Basic Example”

.Net, ASP.NET, C#, CodeProject, iTextSharp, PDF, Programming, Software, VB.NET, Web Development, WebForms

iTextSharp – Insert an Image to a PDF in C#

iTextSharp PDF
Using iTextSharp to Generate a PDF

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:

  1. Adding your image programmatically while generating your PDF
  2. Adjusting your image scaling so it renders nicely in your PDF
  3. Positioning your image in your PDF
  4. Example code in C#
  5. 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#”