itextsharp

itextsharp read table

Hello, I've created a pdf with a table using itextsharp. I found an example at http://itextsharp.sourceforge.net/tutorial/ch05.html. Now I'd like to read data from the table again using itextsharp. I can't find any documentation on how to read this data. Can someone give me an example? ...

how to use itextsharp for merging large no. of pdf files in .net?

what is the solution for merging many pdf files using itexsharp application in .net .. will it provide the properties like bookmarks,merging more than 100 pdf files..without effecting the speed.. ...

Merging PDFs with ITextSharp

What is the optimum way to merge 2 PDF files with ITextSharp in C#? I'm using ASP.NET/.NET3.5. ...

iTextSharp PDF editing

Is it possible to do following stuff with iTextSharp? Merge two PDF files / streams? Rotate a given page in PDF document? Delete a given page from PDF document? Sample code is really appreciated. ...

Sign PDF with one signature, but with several signature appearances

I want to sign a pdf with one signature with appearance on every page Here is what I do: Create the stamper PdfStamper st = PdfStamper.CreateSignature(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write), '\0', null, true); Get the signature appearance PdfSignatureAppearance sap = st.SignatureAppearance; p...

Displaying PDF in Browser - Showing Thumbnails ("Pages") by Default

I'm currently using ITextSharp to write a PDF to a web browser, but I cannot figure out how to, by default, show the thumbnails on the left side. If I click the "Pages" button they appear correctly, but I cannot seem to figure out how to do it by default. I thought this might be a setting within adobe's browser PDF viewer, but I can't f...

PdfPTable as a header in iTextSharp

I need a table with about 12 cells to display as a header. The following code fails to do this. I am aware table2 does not have 12 cells. On the second page, only "testing" is displayed. What am I missing? Thanks in advance! Document document = new Document(); try { PdfWriter.GetInstance(document, new FileS...

iTextSharp - Bug in the table functions?

Hello all together, I try to make a table like this: PdfPTable Table = new PdfPTable(6); PdfPCell Cell = new PdfPCell(new Phrase("a", Font1)); Cell.Rowspan = 2; Cell.Colspan = 2; Table.AddCell(Cell); Cell = new PdfPCell(new Phrase("b", Font1)); Cell.Rowspan = 2; Cell.Colspan = 2; Table.AddCell(Cell); Cell = new PdfPCell(new Phrase("...

Response.Stream output (a PDF) lost by Adobe Reader

In an ASP.NET application, I'm using iTextSharp (PdfStamper, mostly) to fill in some content on a PDF and send it to the user. The following code is inside an OnClick event: PdfReader r = new PdfReader( new RandomAccessFileOrArray(Request.MapPath(compatiblePdf)), null ); ps = new PdfStamper(r, Response.OutputStream); AcroFields af =...

Creating something printable in C#

Hi everyone, Just wondering if anyone could tell me of a simple way to create files for printing? At the moment I'm just scripting HTML, but I'm wondering if there isn't some easier way of doing it that would give me more control over what it being printed? Something along the lines of an Access printout, or Excel printout - where I cou...

Add a column to PdfPTable, iTextSharp

Hey, I'm creating a PDF document using iTextSharp. I see how to create a new table with a number of columns but I can't see anyway to dynamically add a new column. The problem I have is I'm not going to know the number of columns I need straight away, so need to keep adding them Can somebody please enlighten me or am I going to have to...

Is it possible to modify PDF Form Field Names?

Here's the situation. I have a PDF with automatically generated pdf form field names. The problem is that these names are not very user friendly. They look something like : topmostSubform[0].Page1[0].Website_Address[0] I want to be able to change them so that they are something like WebsiteAddress. I have access to ABCPDF and I have...

How do I embed a source PDF onto an existing page in a PDF?

I need to programmatically embed an existing PDF (a small graphic) onto a specfic page on an existing PDF. Using iTextSharp I've been able to add a new page containing this embedded PDF, but what need is to modify an existing page by adding this graphic. Is this possible using iTextSharp or any other PDF-generation libarary? ...

ITextSharp, Possible to split file on chapters

Is it possible to get the pages of a chapter in ITextsharp or somehow split the file on chapters in vb.net, basically I'm concatenating multiple files into one pdf and separating them as chapters but sometimes I'll need to read these chapters out separately, is this possible? ...

Can iTextSharp convert PDF document to PDF/A

I cannot locate within the FAQ whether this functionality exists in the API although its mentioned in a book as something that is potentially available. Has anyone had any experience implementing this feature? ...

iTextSharp - opening PDF document from memory

It is possible to create a PDF document in memory with iTextSharp that gives the user a choice to "open" or "save"?, and if it opens then it opens in a browser window. At the moment the only I have save it to disk. EDIT: ok I've got it sussed. I did end up having to write the file to a folder, but it is only temporary as gets overwrit...

itextsharp set a document horizontal page a4

how can i set a document in a4 horizontal format in itextsharp? thanks ...

c# itextsharp PDF creation with watermark on each page

Hello everyone, I am trying to programmatically create a number of PDF documents with a watermark on each page using itextsharp (a C# port of Java's itext). I am able to do this after the document has been created using a PdfStamper. However this seems to involve re-opening the document reading it and then creating a new document wi...

itextsharp: rowspan doesn't work

Hi, i have some problems with rowspan: var doc1 = new Document(); doc1.SetPageSize(PageSize.A4.Rotate()); string path = Server.MapPath("PDFs"); PdfWriter.GetInstance(doc1, new FileStream(path + "/Doc1.pdf", FileMode.Create)); doc1.Open(); PdfPTable table = new PdfPTable(17); PdfPCell cell ...

iTextSharp - How to get the position of word on a page

I am using iTextSharp and the reader.GetPageContent method to pull the text out of a PDF. I need to find the rectangle/position for each word found in the document. Is there any way to get the rectangle/position of a word in a PDF using iTextSharp? ...