itextsharp

Documentation for iTextSharp

Can somebody provide a link to documentation (class XML documentation) for iTextSharp ? I tried Google with no result... I only found JavaDoc documentation for iText. Also when I was working with iText I found an extensive on-line tutorial. It was divided to 11 or 12 chapters dedicated to different features from basic and simple ones to...

How to add paragraph and then a line in ITextSharp?

All of the examples I have seen so far using ITextSharp start from scratch and create a new document, add something to it and close it. What if I need to do multiple things to a PDF for example I want to add a paragraph and then add a line. For example if I run this simple console app in which I just create a PDF and add a paragraph and...

read pdf form data using iTextSharp

I am trying to find if it is possible to read PDF Form data (Forms filled in and saved with the form) using iTextSharp. If yes.. please provide some guidance on how. thanks in Advance... Bhuvan ...

how can i crop the pdf page in c#

hii, can any one help me that how can i cut the pdf page like as acrobat professional. regards, vipin katiyar ...

Get bytearray of a font in C#

I'm using iTextSharp at the moment and I would like to use a custom font. Here's what I have so far: PrivateFontCollection fonts; FontFamily family = LoadFontFamily("TheFont.ttf", out fonts); var reader = new PdfReader("KurtBonne_test.pdf"); var stamper = new PdfStamper(reader, new FileStream("Kurt Bonne_test_withtext.pdf", FileMode.Cr...

iTextSharp to generate PDF from WPF FixedDocument

I have a simple WPF app that displays and prints some reports with a FixedDocument. How can generate PDF's from that, with a free and open solution, such as iTextSharp? ...

ITextSharp, Assigning a font to List within a cell?

Hi Folks, Is there a way to assign a font to a list that is added to table cell in ITextsharp. I'm sure it must be straightforward but I'm missing it. Dim tblSignature As New PdfPTable(1) tblSignature.WidthPercentage = 90.0F Dim _baseFont As BaseFont = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI, BaseFont....

iTextSharp - How to input image (PNG) from project resource?

I have iTextSharp creating a pdf for me in VB.net. Everything was working famously, except now I want to embed an image. I tried this: Dim test = My.Resources.MyImage Dim logo = Image.GetInstance(test) This an error though: 'GetInstance' cannot be called with these arguments It appears as though it expects a path, and is getting...

How to write wrapper class of iTextSharp and expose it as a COM object

In order for me to get this DLL to work with MC Access 2000, I was told that a interop COM wrapper object would have the iTextSharp functionality encompassed in it. I have never created a COM object. I was wondering if someone out there has ever created one for iTextSharp to use in MS Access so I wouldn't have to "reinvent the wheel." T...

how to use iTextSharp with existing wpf document?

I have a existing wpf document, how do I get an pdf via iTextSharp from this? ...

How to read contents of specific page from PDF using itextsharp APIs

How to read contents of specific page from PDF using itextsharp APIs Can anybody redirect me to the correct direction? Thanks in advance! ...

iTextSharp RadioCheckField.CheckType property problem

For some reason when I set the CheckType property on the RadioCheckField object, it remains as the default (TYPE_CHECK). Does anyone know why this is happening? RadioCheckField bt2 = new RadioCheckField(stamp.Writer, new Rectangle(50, 50, 50, 50), "radio", "North"); bt2.CheckType = RadioCheckField.TYPE_STAR; bt2....

Possible to create/call C# from a SPROC?

Is it possible to create a stored procedure that can call a function/generate C# code? I already know how to call a stored procedure from C# (I was surprised at how easy it is, I thought it'd be much more complex) but what I'm trying to do is have a stored procedure generate code based on certain information from SQL, but my problem for...

Need help for text height in iText or iTextSharp

I have a PDF form template which 20% of its size dedicated to header (head section) on the top and the remaining 80% of its height dedicated to a table filling with texts (body section), i want to extend the text to the next page body section if text does not fit to the previous body section page Whats the best way to do that ? ...

iTextSharp add pre-existing PDF as a layer to another PDF

I have reports that are being converted into PDFs. Some of these reports have information missing simply because we don't track it. I have created another PDF with the shell of the report and placed input fields controls on it. I would like to know if there is a way to apply the shell PDF to the converted PDF so users can enter informati...

Adding the iTextSharp dll for use with CLR Stored Procedures

Has anyone had any luck creating an assembly for iTextSharp for use with CLR Stored procedures? I've been trying all afternoon and have not been able to get any results. SQL management studio is saying I need to register system.drawing first (can't be the new version, has to be the old version no less) but it gives me issues when I try...

Controlling Image Resolution when coverting a PNG image into a PDF using iTextSharp

Hi All, I have created a PNG image that is 200 DPI, and perfectly sized for a landscape A4 page size. I needed to convert this to a PDF document, so I've used the iTextSharp library with the code below. This all works, however the image quality has degraded. Any suggestions as to how I might improve this? Public Sub ConvertPNGtoPDF(...

How can I get columns in a table in iTextSharp to automatically calculate their width?

I have a table that I'm creating in iTextSharp and populating with data at runtime. The number of columns are variable and the text in them could be any size. When I create the table at the moment, the columns are the same size. However, some columns have wasted space and others have cramped content. I want the columns to automatically ...

Simple PDF created with iTextSharp cannot be opened by Acrobat Reader?

I create simple test PDF document using iTextSharp. I'm just using PdfContentByte to show some text. This is the code: Document document = new Document(); Stream outStream = new FileStream("D:\\aaa\\test.pdf", FileMode.OpenOrCreate); PdfWriter writer = PdfWriter.GetInstance(document, outStream); document.Open(); PdfC...

C# iTextSharp AutoAdjust column widths

Is there a way to adjust columnwidth automatically to fit as much content in them as they can (sort of like double click a column width is a grid control). At the moemnt I am setting them as percentages, but as there is different content dependign on search criteria, I would like the column width to adjust approprietaly. I am currently...