itext

How to stop flying Saucer (xhtmlrender) PDFs showing border around hyperlinks on MacOS X?

I am using Flying Saucer (xhtmlrenderer) to create a PDF that contains a hyperlink. When the PDF is viewed in Adobe Reader it looks as expected, but when viewed in Preview.app on the mac it displays a thin black border around the hyperlink. How do I get Flying Saucer to render the PDF such that this border is not displayed? From some f...

How to let iText library support asia character ?

Hi, right now i use iText to create a signature. and when i use .setReason to put the reason of the signature. It appears that it didn't support chinese. Can anyone help me to solve this ? Thanks in advance! Regards, ...

How to generate metrics file (xml) for font?

Hi! How can I generate metrics file for font using iText? I need to append new font to pdf I generate using iText, I found that I need a metrics file for font to do that... ...

Jmeter - how to implement another java class

Greetings all, In another post I asked about rendering PDF in Jmeter, and it would seem the solution is to use iText. Using iText requires installing another library and referencing it. Does anyone know how to do this? I can't find a tutorial. Much thanks. iText is also dependent upon bouncycastle iText: http://www.1t3xt.com/downloads...

How to replace or modify the font or glyphs embedded in a PDF file?

I want to replace the font embedded in an existing PDF file programmatically (with iText). iText itself does not seem to provide any data model for glyphs and fonts, but I believe it can let me retrieve and update the binary stream that contains the font. It's OK even if I don't know which glyph is associated to which font - what I w...

Generating PDFs in Java using iText. Support for Free flowing text.

We have pdf templates of the following nature that need to be generated by a web application: Sample Paragraph: Dear {customer.name}, Your lawyer, {customer.lawyer.name} has contacted us about your account, {customer.account.number} requesting immediate closure of the account. ... The {...} fields mentioned above are to accommodate ...

Adding a Table to a pre-existing PDF using iTextSharp/iText

I need to add a table using iTextSharp (or even PDFSharp if it can do it) into an existing PDF template at a particular location in the template. I can edit the existing template with Adobe Designer 7.0. How can I go about doing this? Is there a PlaceHolder analog from Asp.Net which can be used here? Keith ...

Stretch a row if data overflows in jasper reports

how do i stretch a row when data overflows the band height in jasper reports, I have set the stretch with overflow flag as true but it doesn't work. ...

How to write content into pdf use iText ?

Right now i use iText to generate a pdf automatically. And my problem is that when the content is really very large, i need to calculate the content's height and width, and then add new page... this is really very inconvinent. so I wonder whether or not there is a method like: Document.add("a very very large article"); and after this , ...

Merging 1000 PDF thru iText throws java.lang.OutOfMemoryError: Java heap space

I am trying to merge 1000 PDF Files thru iText. I am not sure where the memory leakage is happening. Below is the sample code. Note that i am removing the child-pdf file as soon as i merge to the parent file. Please pointout bug in below code or is there any better way to do this with out memory conception. This process is done thru serv...

Draw a rectangle in an iText pdf

Is there a way in iText (the java version) to draw a rectangle into a pdf document? ...

iText nested table inside a cell

I'm creating a PDF with iText version 2.1.0. I have to create a "detail" cell in a cell of a table. I did this nesting a table inside that cell. The problem with this approach is that the borders of the nested table don't touch the borders of the container cell. What I am looking for is for a table nested inside a cell whose borders don'...

Tracking thru PDF

If i am exporting a document in PDF and kept in public so that any users can download and read it. Now i want to track this. How many times the PDF got opened. Note that my question is not to track while i download, we need to track when the PDF is opened. Is there any kind of script that is invoked when the PDF is opened so that acroba...

Are there any Java PDF creation alternatives to iText?

I am trying to render about 100,000 - 80 column records through FOP and it tanks pretty much everytime (OutOfMemoryException). I know iText could handle that kind of load but I can't use it because of the LGPL license. Are there any alternative Java libraries to iText that can handle rendering a high volume of data to PDF? ...

How to calculate the string width in itext ?

I am using itext to write pdf, but in some cases, I need to sign the pdf with SetVisibleSignature function, and we know, with this function, we need to designate the rectangle that we will write the content into it, But it's hard for me to calculate how large the string will occupy, then I can set the rectangle before set a signature on...

iText encoding problem

I have encoding problem with iText (http://www.lowagie.com/iText/). I load data from database and insert it as html to pdf with iText, for some reason my non-english (Finnish ä,ö etc) characters don't show up correctly. Following example shows how insert text to html: text = "<p>" + data + "</p>"; HTMLWorker htmlWorker = new HTMLWorke...

Where to get Certificate for digitally signing PDFs?

I'm working on a Java application that uses iText to digitally sign PDFs that will be made available online. I have been able to sign the documents with a test cert I obtained from GlobalSign and it works great. The test cert is part of GlobalSign's "DocumentSign for Adobe PDF". The reason I had to use this cert is so that my cert chains...

iText inserts JPG into created PDF in Windows but not Linux

When programmatically creating a PDF document using iText, I'm able to insert a JPG image into the document's header on my local environment (Windows XP). However, when executing the same code on our test environment (Linux based), iText throws an exception claiming the image file "is not a recognized imageformat", in com.lowagie.text.Im...

Co-ordinates of a element in a pdf file using iText

Hi all, I'm creating a pdf file using BIRT reporting library. Later I need to digitally sign these files. I'm using iText to digitally sign the document. The issue I'm facing is, I need to place the signature in different places in different reports. I already have the code to digitally sign the document, now I'm always placing the sig...

Getting a list of embedded fonts used in an external PDF

I have been playing about with iText to try get a list of embedded fonts used in an external PDF. Am i missing something or is this just not very well documented? Could anyone explain it to me or suggest an alternative? Preferable the font names and any associated data. ...