itextsharp

Bad performance convert tif to pdf using ITextSharp

Summary: How can I reduce the amount of time it takes to convert tifs to pdfs using itextsharp? Background: I'm converting some fairly large tif's to pdf using C# and itextsharp, and I am getting extremely bad performance. The tif files are approximately 50kb a piece, and some documents have up to 150 seperate tif files (each represent...

How do I determine when a table is going to span multiple pages with iTextSharp?

I am building a table that spans multiple pages of my PDF. I would like the column header of the table to appear as the first row on each page. Is there some way that I can detect when the page is breaking and insert the column headers rather than the next data row? ...

itextsharp swf embeded cannot be print

Dim r As Rectangle = New Rectangle(0, 0, 600, 400) Dim spec As PdfFileSpecification = PdfFileSpecification.FileEmbedded(writer, swfFile, "Post Event Report", Nothing) Dim annot As PdfAnnotation = PdfAnnotation.CreateScreen(writer, r, "test.swf", spec, "application/x-shockwave-flash", True) annot.Flags = Pd...

iTextSharp: table in landscape

Hello, I'm using iTextSharp to generate a large document. In this document I want some specific pages in landscape. All the rest is portrait. Does anyone know how I can do this? Starting a new document is not an option. Thanks! ...

Get list of supported fonts in ITextSharp

I'm working with ITextSharp for a project and am looking for a reasonable way to get a string list of different fonts it has available for use. I thought maybe I could just use reflection and loop over a class of available fonts, but there does not seem to be an easy way to do this. What I really want to do is provide a drop down of av...

iTextSharp read pdf template from hard drive and write text

I have a basic PDF file that I has 5 different blank content areas that I want to use iTextSharp to write text too. The problem is I'm not sure the best way to accomplish this. I have attempted to use ColumnText to accomplish this, but I cannot seem to add multiple ColumnText objects. ColumnText tagColumn = new ColumnTex...

iTextSharp get PDF DPI

How can I get the DPI of the PDF that I am reading from my hard drive into iTextSharp? ...

iTextSharp image keep pixel dimensions?

Lets say I have an image that has a DPI of 72 and a width/height of 100px/100px. However when I add the image and render the PDF, the image that is displayed is bigger than 100px/100px. How can I ensure that the when adding the image to the PDF using iTextSharp that I keep the same pixel dimensions as the original image, in this case...

itextsharp: how i can rotate text in table

I use itextsharp v 4.1.2.0 My table (iTextSharp.text.Table) has many columns. I want the text in the cell housed vertically. This possibility is in the cells pdfptable, but I can not use it pdfPCell.Rotation = 90; How i can rotate text in cells of Table? ...

itextsharp: how repeat headers of pdfpTable on each page

How repeat headers of pdfpTable on each page(PDF) ...

Why is loading an image timing out in application on RackSpace

I have 30 seconds to load this image, and it seems to be taking longer on Rackspace, but not when I run it locally. If I go over 30 seconds then the load balancer ends the request, so I get an error. The code is pretty simple: Image Logo = Image.GetInstance(HttpContext.Current.Server.MapPath(@"~\images\logo.bmp")); I have it running ...

How To Adjust Font Size To Fill A Fixed Height Table Cell In iTextSharp

I am creating a PDF from iTextSharp for printing. I have varible length text that I would like to always be in the maximum font size to fill a fixed height table cell without wrapping out of sight. How can this be done? ...

Intercept new page ITextSharp

Hey all, The situation is the following: - The documentwriter gets initialized and the document gets put in a singleton - Several classes inherit from DocumentGeneratorBase which adds a title, starts a new page and calls GeneratePages(Document doc) - In this method there's content added to the document, when it ends, it start...

Using iTextSharp to save to file the fonts used in a PDF file

This is pretty much a duplicate of this unanswered question, but hopefully someone in the know is watching now and can be helpful. I'm looking for the ability have some .NET code extract the font embedded in a PDF to a font file. I'm currently using iTextSharp, but I'm open to other .NET libraries (e.g. PDFBox, PDF CLown, etc...). I'm ...

Controling Alignment when exporting to PDF

I am exporting data (repeater, datalist, gridview) with the help of itextsharp third party control. I am able to do so, but problem is in some where I am unable to control alignment table cells, Although I have set in table center align but these are still shown right align in the PDF, Please here is look into image ![Alignment Image][2...

how to create a pdf form ? i need to insert textbox and radio button controls in it.

how to create a pdf form ? i need to insert textbox and radio button controls in it. ...

iTextSharp + FileStream = Corrupt PDF file

Hi, I am trying to create a pdf file with iTextSharp. My attempt writes the content of the pdf to a MemoryStream so I can write the result both into file and a database BLOB. The file gets created, has a size of about 21kB and it looks like a pdf when opend with Notepad++. But my PDF viewer says it's currupted. Here is a little code sni...

iTextSharp IOException "Trailer not found"

am using iTextSharp ( .NET 2.0 Vista ). The iTextSharp Version is 4.1.2.0 PdfReader reader = new PdfReader(pdfFile); is causing the library to thrown an exception saying "Trailer not found" The file exists and can be viewed in Adobe no problem Any ideas? ...

ItextSharp nested table on multiple pages causes NullReferenceException

I am getting a NullReferenceException when the following code is executed. I have also noticed that the nested table appeared on a new page when I added in the code that wrote cells to the main table. It doesn't occur if I take out the two loops that write cells to the main table. <%@ Page Title="" Language="C#" MasterPageFile="~/Main...

how do I add bookmark into a pdfpcell

I am doing a report which contains more 1000 records by using pdfptable of itext. it is not easy to seek a particular record, so i am wondering if there is any way to add bookmark in a pdfpcell. ...