itextsharp

ITEXTSHARP HEADEARS AND EVENTS

Hello, I have an application that uses the libraries itextsharp. And use events to generate the header. Works fine. Except on the last page of the pdf that does not put you and adds it to the last line (overrides )????. Any ideas?. Thank El código: public class GestionPDF { String titulo; public GestionPDF() { // ...

How to convert pdf Byte[] Array to downloadable file using iTextSharp

Hei guys I have this byte array i want to convert to pdf and make it available for download. Anybody has any idea how this is done? here is my Action Controller public ActionResult DownloadLabTestResult(string labTestResultID) { PdfReader pdfReader = new PdfReader("Xue_Tang.pdf"); MemoryStream stream = new Memo...

How can you find a problem with a programmatically generated PDF?

My group has been using the itext-sharp library and C#/.NET to generate custom, dynamic PDFs. For the most part, this process is working great for our needs. The one problem we can run into during development/testing is layout issues which can cause the PDF to not open/render correctly in Adobe Reader, esp. the newer versions of Acrobat/...

exporting whole page to pdf with iTextSharp

hi there i need to export a pages to pdf, the pages will have grids on as they are reports. i have had a look at iTextSharp which for exporting JUST the grid works a treat. But when i try it with the whole page, it gets a bit confused with the images in the page, and doesnt deal with the styling particularly well.. is it possible to ex...

iTextSharp How to find if the PDF Form Field is Mandatory?

I am trying to find using iTextSharp if a PDF Form field is required. There is a checkbox in the Acrobat Field Properties dialog to mark a Field as required, but could not find the Corresponding property in iTextSharp. Please someone suggest me how to find this. Thanks in Advance B ...

I try to get a PDF AcroForm fields with iTextSharp - and only partially successful

i want a simple code to be able to list all the PDF Forms fields and display their value (content). The attached code works for most of the fields but not for all of them.. i suspect that it doesn't work for the RichText AcroFileds. i'll be happy to know how to do it with iTextSharp. private static void ListFieldNames(string pdfPath) ...

iTextSharp, Tables, Layout & multiple Pages

I want to create an Invoice with iTextSharp and need to print the Invoice Rows (in one Table) on multiple Pages. On the first Invoice Page, the "InvoiceRow Table" should start in the half of the Page. So if I add the Table via invoiceTable.WriteSelectedRows(0, -1, 48, 570, pdfWriter.DirectContent); to the Document, the Result is one...

Does anyone know of an itextsharp migration guide from 4.x to 5.x?

I have just looked at using iTextSharp 5.0, however things like table/cell have been refactored. I'm wondering if anyone knows of a clear way to migrate from 4.x to the new version. ...

C# itextsharp.dll - SVG in PdfPTable

Possible that I would embed SVG images in a PdfPTable? ...

I want to export pdf to xml with font information as attribute values

I want to export pdf to xml with font information lik font-size, font name, font-style, word spacing, letter spacing etc using any Freely available pdf libraries like PDFSharp, ItextSharp. For example: <p font-style="10pt", font-style="italic" letter-spacing="somevalue" word-spacing="somevalue">Paragraph text goes here</p> Is it poss...

How to dispose of resources in iTextSharp append method on exception

I have the following method using the iTextSharp library which should process and move the source document to a target document (which may or may not already exist). There is an append flag which will append the contents if the document already exists. I'm throwing an exception if append isn't set, but I'm having some problems working o...

Custom pages number (roman numbering) on pdf first pages

I need to set page numbers on a pdf I'm creating, so that the first 3 pages would be i,ii,iii and then the following pages starting from 1,2,3,4,5...and so on.. How can i do it with itextsharp?? Thanks Sander ...

Write MS Word Doc using itextsharp library

Can I write MS Word document using iTextSharp library? If yes, please give me sample code. ...

itextsharp nextcolumn not working

Hi I'm trying to set up a simple 2 column page, write to the first column, then the second. However the code below places both paragraphs in the second column. The current column trace appears to be correct (first 0, then 1) Any ideas what I'm doing wrong? MultiColumnText columns = new MultiColumnText(); columns.AddSimpleColumn(0, 20...

Creating pdf from .net mvc view

Hello Everyone, i m using asp.net mvc2 for my application. i have a view that accepts a model and renders its data in some format. i want this page to be converted into pdf file so it can be sent via attachment or created and downloaded on the fly. i have some success creating pdf with itextsharp library but they say it has very basic s...

How to edit PDF File with iTextSharp

I'm currently working on a .NET Desktop Application project, I need to manipulate a PDF template by replacing some keywords. It would be great if I can see a simple sample. Thanks in advance. ...

iTextSharp absolute positioning (GridView)

Hi Everyone I'm having issues with over-lapping tables using iTextSharp. I have multiple tables(from gridviews) that I would like to write to pdf using iTextSharp. I would like to only have a 10px gap between each table (vertical wise), and the height of the tables always differ. Does anyone have an article I can read to help me ou...

Itextsharp. Add Graphic to PdfPTable Cell

I want to add a rectangles(or composite graphic) in a Table's cell, and I dont know the location of cell pdf document. How to do it. ...

iTextSharp center align objects within the Document object

Hi Everyone Is there a quick and simple way to center align objects within the Document object? Without performing any calculation logic, ie. Get width of page, get width of contents, divide by two, etc. I have a PdfPTable object within a Paragraph object, within the Document object. I would like to center the Paragraph object. Than...

Wrong paragraph order in PDF by iTextSharp

Hi, I am trying to generate a PDF using iTextSharp. It will consists of a number of images, each with a heading preceding it. But when I generate the PDF, the order of the elements is not preserved - multiple headings are grouped together etc. I am wrapping the header and image in a single paragraph as follows: ' Create paragraph and ...