itext

Inserting greater than or equal symbol in to an iText PDF, ie >=

Does anyone know an easy way to include the greater than or equal symbol in an iText PDF document without resorting to custom fonts? ...

Absolute positioning of multiple elements in a Document page iText

Hi, I want to have multiple element a Barchart, TextArea, PieChart and a Table in a sigle page of the PDF Document of iText. I wont their alingment to be as I wish. e.g TextArea below Barchart and Table below Piechart. Table and Piechart parallel to TextArea and Barchart. appriciate if anyone can suggest how to do this sort of obsolut...

Which method is more convenient for designing pdf data entry form ?

Hi, I would require to design data entry form in pdf which will be filled by user and they will save and send back to me via an e-mail.Which method should I go with ? I was looking into iText documentation and it looks pretty tough to design complex data entry interface. How about adobe LiveCycle ? Rishi ...

Modify PDF Forms from a PHP site.

We currently use PDForm to grab a blank pdf file (no values, just form fields and text) and list the form fields. We then query our database for the values which match those field names and create a pdf file with the newly populated data which the user can download from our site. The thing is PDForm is about $5,000 per machine and we a...

iText Generated PDF Viewing Problem in IE7

Hi Friends, I am generating a pdf using iText. When I open the pdf through the link it does not open in IE 7 but works fine in Chrome. I also noticed if I remove the / from web.xml then it opens perfectly fine in IE 7. My security-constraint in web.xml is: Entire Application / I have to use the /* because of s...

Problem with PdfTextExtractor in itext!

Hi friends! first excuse me for my bad english! I want to search in pdf document for a word like "Hello" . So I must read each page in pdf by PdfTextExtractor. I did it well. I can read all words in each page separately an save it in string buffer. but when i push this code in For loop ,(for example from page 1 to 7 for search in it) ear...

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. ...

Line Separator in iText?

I'm trying to insert a line separator (you know, that horizontal line that runs across documents) into my document with iText. I've found some resources via Google that use com.lowagie.text.pdf.draw.LineSeparator but the version of iText that I'm using (1.4.2) doesn't seem to have that package. Can anyone suggest another way to add a ni...

Special characters in iText

I need help in using these symbols ⎕, ∨, ๐, Ʌ, and so on. But when I create a PDF with iText these symbols do not appear. What can I do so that these symbols appear? ...

How can I manage with Rich Text in Pdf's acroforms

Hello, experts! I have Pdf file that contains acroforms which is made by Window's Acrobat program. I need to write Rich Text including Bold text and lists in that acroforms. How can I do it using Java's IText library? I should mention that forms should be flattened(Read only behaviour is also alowed). Maybe somebody has a working exampl...

iTextError: pdfRandomAccessFileorArray.readFully(RandomAccessFileorRray.java:261)

Hi, I'm getting following error message while writing to the pdf fields. Here is error screen, Here is the code, PdfReader reader = new PdfReader(filePath); PdfStamper stamper = new PdfStamper(reader,new FileOutputStream(filePath)); AcroFields form = stamper.getAcro...

Load fonts out of JAR-file and create AWT font (works) and register iText font (does not work)

Hello! I tried to write an applet that is able to create a PDF with an embedded font. Everything works as long as it is not in an JAR file. The following code part shows that I first create the AWT Font (which works fine with and without beeing stored in a JAR-file). Then I want to register an iText (5.0.3) font. But here comes the err...

itext setSimpleColumn high cpu usage

hi Everyone i have created a pdf documet with itext (itext version 5,0.4) iam trying to add a some text with setSimpleColumn att absolute position using PdfContentByte i specified the coordinates(lower left x,y,and upper right x, and y ) and it did ran just fine , but when i changed upper right y coordinate just a little , by 1 milli...

itext PDF - Greek letters are not appearing in the resulting PDF document

Hi All, I am having hard time trying to generate PDF files containing Greek letters using itextpdf. I am reading the strings from an external source as UTF-8 strings. English letters appear in results but not the Greek ones. Searching for the problem, I think it might be related to the font used. I do not know what ttf file to use if th...

Read existing margins in a pdf

I created a pdf file with iText. the pdf is a A4 file and have some margins defined. Paragraph paragraph = new Paragraph(); Document document = new Document(PageSize.A4, 36, 72, 108, 180); PdfWriter.getInstance(document, new FileOutputStream("c:\\margin.pdf")); document.open(); document.add(new Paragraph("Margin--->>...

Licensing my code under AGPL since it uses iText

I created a command line wrapper which basically uses iText to list fields from a pdf file and merge an fdf file with the pdf file. I know iText is under AGPL but it seems that they only have a license.txt and notice.txt and a agpl.txt file packaged into their .jar. I am not good with licenses so I am not sure what is required for me b...

Adding a multiple line footer using iText

Hi All, I want to add a multiple line footer using PdfStamper and PdfContentByte. My code looks like - PdfContentByte underContent = pdfStamper.getUnderContent(i); PdfContentByte upperContent = pdfStamper.getOverContent(i); BaseFont bf = BaseFont.createFont(BaseFont.COURIER, ...

Why is iTextSharp re-sizing my documents instead of just merging them?

Sample code: using System; using System.IO; using System.Collections.Generic; using System.Text; using iTextSharp.text; using iTextSharp.text.pdf; namespace MergePDFs { class Program { static void Main(string[] args) { try { int f = 1; // we create a reade...

Page Numbers using headerfooter in itext

Hi, I am inserting pagenumbers in my pdf file using headerfooter option of itext. Only problem is that i dont get page number '2' the count on the pdf file goes on like this '1,3,4,5...'I am using this query HeaderFooter footer = new HeaderFooter( new Phrase("",new Font(Font.TIMES_NEW_ROMAN, 12, Font.NORMAL)), t...

Java iText Page X of Y

I’m using iText to generate a PDF document in my JEE application. Coding for the PDF file is reside in a JSP. I want to achieve the following page formatting in my each page footer, REF: XXXXXXX                                                           Page X of Y How can I get Page X of Y ...