itext

iText datamatrix generation problem

Hi, I am attempting to generate datamatrix barcodes from within itext. This works fine for most of my codes but not for some codes. One example is: HEnSh0701003-2V1 This produces a non square barcode for some reason. When I use encoders from other companies (such as IDAutomation) I do get a valid square barcode. Does anyone ha...

How to copy an AcroForm using iText?

I have a pdf with an acroform. I'm using iText to open this pdf and fill the form fields with some data. Sometimes I need to generate more pages than the original pdf. To do that I create one page and replace with an existing page using this code: OutputStream output = new FileOutputStream("C:\\newFile.pdf"); PdfStamper stamper ...

iText pdf will not open in browser.

Pdf created with iText will not open in IE with machine that has Adobe Pro installed. Works great in otherwise. Browser setting? Thanks in advance. related code: Response.ContentType = "Application/pdf"; ...

iText in Asp.net MVC

Hello, I want to use iText to write data to pdf. Assembles that I've added are iTextdotNET.dll Gnu.Classpath.Core.dll But the problem that I am facing is Error 1 The type 'java.io.OutputStream' is defined in an assembly that is not referenced. You must add a reference to assembly 'vjslib, Version=1.0.5000.0, Culture=neutral, Pu...

checkmark when pdf signed with iText

I'm signing PDF's using iText. I'm including a graphic in the signature. This works, but the green checkmark (or yellow question mark) that shows when the document is verified interferes with the graphic I inserted, making the end result look ugly. Is there a way to manage the size of the green checkbox - are there any properties - fonts...

Can JasperReports include a pdf in a report?

Is it possible to include an existing pdf file in a JasperReport? We really want to append new data to an existing report with out regenerating the existing report. We will be exporting back to pdf. I'm looking at using iText's PdfCopy to merge two pdfs, but was hoping JasperReports might have an easier way... ...

Is it possible to flush output with iText RTF (Java library) gradually? (outofmemory error)

I'm using iText to create an RTF document. It'll have a few hundred pages when completed. However, I keep getting an outofmemory error, when it's finished adding all the various paragraphs and tables to the document, and it's trying to actually create the RTF file (with document.close();) I've increased the Runtime memory with -Xmx350m,...

asp.net iText dll implementation help

Hi, I have a function for reading and creating a pdf file. I was told it uses iText.dll, but not sure where to find it and implement it. Can anyone point me in the right direction. Im a .net newbie. I dont need help with the code right now, so just setting up the dependancies would be a good start. Any help would be great Thanks --Ma...

How to write page headers when using iText library in java

I am developing a report generation application that could have tabular data across multiple pages. I am using pdfTable to create tabular data. I am issues with adding page headers. The problem is that when I add page header onEndPage event handler, I am not get the table to start after certain gap so that header is visible. ...

iText - inserting overlay text on top of all elements

Using the iText PDF library, is it possible to freely (like "position: absolute" in CSS) insert overlay text or other elements on page, so that it gets rendered on top of all existing elements? Thanks for all the help and tips in advance. ...

iText cell borders cutting through text

I am writing a program that generates a pdf or rtf file with a table in it, using iText. I used the iText class table and cell, rather than the more specific RtfTable or pdfTable so that either file can be generated at the end. I needed to set the cell padding to a value of -1, or else there was too much space between each row of data ...

iText - problem with line break character replaced by ?

I am working with code using iText. We are upgrading from iText 1.2 to iText 2.1.5. With the upgrade (no changes in the actual code), all the line break characters are being replaced with a question mark. This does not happen when the text automatically wraps in the document, only when the data being fed contains a line break. I am u...

iTextSharp Creating a Footer Page # of #

Hi, I'm trying to create a footer on each of the pages in a PDF document using iTextSharp in the format Page # of # following the tutorial on the iText pages and the book. Though I keep getting an exception on cb.SetFontAndSize(helv, 12); - object reference not set to an object. Can anyone see the issue? Code is below. Thanks, Rob pu...

iText HeaderFooter -- page number appearing on the next line

I am creating a header with iText using the HeaderFooter object. The Page Number is always appearing on the second line of the header, even though there is plenty of room on the first line, and I am not explicitly putting a line break there. It seems that this problem only started when upgrading from iText 1.2 to iText 2.1.5, but I did...

Using iText (iTextSharp) to populate XFA form fields in PDF?

I need to populate XFA form fields in a PDF (created with Adobe LiveCycle Designer). We're attempting to use iText (actually iTextSharp with C#) to parse the PDF, populate the XFA fields and then save the modified PDF back out. All the examples I can find with iText (very few iTextSharp examples) talk about modifying AcroForm fields. ...

How to generate pdf from the data collected on flex application

Hi All, i am new to itext,I need to generate the PDF form from the data collected on the my application(which is flex application) by using itext.my pdf is already existed pdf. Can any one help.How to do any and sample example code so that i can get more clearly, Thanks in advance Sweety ...

Java - PDF Generation Framework

I am using PDF documents for various purposes using iText library. Its like once class per PDF document. In a way there are a lot of similarities among the classes and the same have been listed below: The fields have (x,y) location The field can be wrapped after some no. of words A field can have a value which is a function of one or ...

Using different version of iText with ColdFusion

We are using ColdFusion MX7. The CFDOCUMENT tag uses iText for the PDF creation so the whole of the iText library is included in the standard CF deployment. The problem I'm having is that I want to use a version of iText that is newer than the one included in CF7. I need to keep CFDOCUMENT functioning, so simply changing the jar file ...

PdfpTable vs. Table (vs. SimpleTable?)

I am writing code that generates both PDF and RTF documents, depending on the user's selection. The information in both documents is the same. Until now, we were using classes like Table, Cell, HeaderFooter, etc., which are rendered into the correct form by the documentwriter (either PdfWriter or RtfWriter2). However, the further I ge...

PdfpTable Absolute Positioning

Hello, I am using the following code to place a PdfPTable at an absolute position: float yAbsolutePosition = iTextDoc.bottomMargin() + iTextPdfPTable.getTotalHeight(); iTextPdfPTable.writeSelectedRows(0, -1, iTextDoc.leftMargin(), yAbsolutePosition, pdfWriter.getDirectContent()); However, if there is already a table or other text in...