itext

How to bypass acegi security when using iText

I followed the code from this site. But I had to remove the caching part and was able to make it work. When I viewed the generated PDF file, it only contains the login page. Does it mean that iText can't identify the current session? Note that I placed the 'create pdf' link in the page where it contains the layout that needs to be conve...

iText image in java servlet

Hi, I'm doing the letter generation with iText (pdf/rtf) in java servlet and got a problem with accessing images. The images are in the WebContent/images folder. When I run it in a local server and pointing the full path of images directory (c://eclipse/myproject/WebContent/images/letterHead.jpg) its working, but it fails running on the...

iText - Modifying PDFWriter# Verticle Alignment manually

Ive hit upon a problem using iText (java), despite hours of looking thru the docs.. Most of the code I use goes via the Document# API which tracks (via the PDFWriter instance) the current Y position. HOWEVER, we need to use the PdfContentByte part of the API to insert some Java2d into the document, but in doing so this appears to bypas...

How can I remove blank page from PDF in iText

I want to remove a blank page from a PDF generated using the iText library in Java. How do I do it? ...

iText-5.0.1 + Make the border of PdfPTable with doted line

Is there any way to make the border of a cell with doted line (e.g _ _ _ _ _ _ _ _ _ _ _ ) instead of solid line ( e.g _______ ) in iText-5.0.1???? ...

What is the best way to create PDF reports with iText and zip them together?

I have to create a pdf report using apache itext api and report should be zipped .For example there is a report to be generated for people staying in a location of a state. for each state there are many locations, for each location , details of eachh people under the location should be saved as pdf (for each people) finally all the pdf ...

can you customize adobe acrobat reader "security warning"

We need to insert a web beacon (i know taboo) in to adobe PDFs to know when they are opened, as one of our clients is moving to a model of "giving" their documents away and following up repeat viewers for subscriptions. Its not enough to be able to provide a download, they want to attach the PDF to an email and "blast" to directed recip...

Concatenating PDF

After concatenating 2 pdf's using PdfCopyFields i am able to edit the pdf fields,but i can't save the merged PDF.Why am i not able to save the PDF after doing this? ...

Symbol '#' in XML attribute name produses DOMException

the following code (using iText library): PdfStamper stamp = new PdfStamper(reader, outputStream); AcroFields form = stamp.getAcroFields(); String name = "form1[0].#subform[0].Table1[0].#subformSet[0].Row[2].#field[0]"; form.setField(name, ""); produces the following error: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid ...

Trouble in creating a PDF using iTextPDF APIs: Unable to maintain order of elements specified

Hi, I'am using itextPDF APIs in my project.The scenario is to add a few paragraphs and then followed by an image and then agian a series of text. say: For n number of times 1.TEXT CONTENT 2.IMAGE 3.TEXT CONTENT I added #1 TEXT CONTENT,#2.IMAGE and #3 to a Paragraph,and then to document. I tried with two images a small and one big(whi...

Need to prefix and post fix a special character to paragrah with indent set at top level

--------------------------------------------------------------------------- Having seen Demetrius act cruelly toward Helena, Oberon orders Having seen Demetrius act cruelly toward Helena, Oberon orders Having seen Demetrius act cruelly toward Helena, Oberon orders --------------------------------------...

iText pdf links contain closing square bracket

Hello to all, i try to embed a link to an external website into a pdf-file, generated with iText. Heres the code: Phrase modul = new Phrase ("some text"); Chunk www = new Chunk ("www.arzneimittelinfoservice.de"); www.setAction(new PdfAction(new URL("http://www.arzneimittelinfoservice.de"))); Phrase xref = new Phrase(www); Phr...

How do you use outside libraries (itext) on silverlight

In my silverlight I have the need to modify PDF files. I usually use Itext libraries for this kind of thing but I am seeing that I cannot reference .NET libraries in Silverlight. Is there any workaround to get the iText functions I need in Silverlight? ...

How to set header font style as bold for the header of the table in a pdf file, in jsf

I have used PdfPTable to convert table data into a pdf file using com.itextpdf.text.pdf.PdfPTable. Table is displaying, but table data and the header are in same style. To make difference i have to set the header font style to bold. Can anybody help me out in this? I have attached my code here. Thanks in advance. import java.awt.Color;...

Linux PDF/Postscript Optimizing

So I have a report system built using Java and iText. PDF templates are created using Scribus. The Java code merges the data into the document using iText. The files are then copied over to a NFS share, and a BASH script prints them. I use acroread to convert them to PS, then lpr the PS. The FOSS application pdftops is horribly ineff...

Can I use a previous version of iText(Sharp) under the LGPL?

I'd like to use iTextSharp for PDF manipulation. I need it to run under medium trust (webserver) and to be free of charge (sice this is a very small project), therefore there is not much competition. Unfortunately, since I need it for a commercial project, I cannot use the AGPL introduced with version 5.0. Do you know if I may use the 4...

Itextsharp resize(as in zoom-out, not crop, not compress) pdf from 210x297 to 197x279

How do i resize an existing pdf to another format. I don't want to crop the pdf, it must be zoomed-out. (for printing issues) When i try this it doesn't work because the pdf is cropped instead of zoomed document.SetPageSize(new Rectangle(558.40f, 790.83f)); // 558.40f == 197mm ...

Can I use iText to render PDF in my Swing application?

Can iText render PDF documents in Swing application ? Or do I have to use another library/framework for that? ...

Is there a GUI for designing PDF reports generated by Java?

I've written some Java code using the iText library to generate a PDF report, but specifying the layout seems very manual and takes a lot of time, re-running the code to test small adjustments. Does anyone know of a report designer for PDFs which would work with Java? It doesn't have to be iText based, that's just what I'm using at the ...

How to set font style and colors for pdf bookmarks (with iText or any other pdf library)

iText has PdfOutline and apparently is has methods setColor and setStyle. But unfortunately no examples of their usage. ...