[iText-questions] com.lowagie.text.Image Rotation and Extraction

2006-05-10 Thread Anthony Presley
I am using a combination of PDFBox and iText to extract images from a PDF. Specifically, I am extracting an image from off of a page of an existing PDF, and then shoving the data into a byte array to use in a reporting engine [Jasper Reports] (which generates its own PDF). Everything works GREAT

Re: [iText-questions] urgent::::How to overlay on existing PDF?

2006-05-10 Thread murthy gandikota
One more weird thing happening with the code that is meant to copy application.pdf onto app2.pdg is the file sizes are different. The application.pdf is 71826 bytes. Whereas app2.pdf is only 70348 bytes longrw-r--r--    1 mgandikota dba 70348 May 10 14:02 app2.pdf-rw-r--r--    1 mgandik

Re: [iText-questions] urgent::::How to overlay on existing PDF?

2006-05-10 Thread murthy gandikota
Sorry the correct web site iswww.foxitsoftware.commurthy gandikota <[EMAIL PROTECTED]> wrote: Hi BrunoI am not looking to overlay one pdf on another. I want to fill up a form that has no fields. If you look at foxit.com you will see that they have a way to fill a form that has no fields. Here is my

Re: [iText-questions] urgent::::How to overlay on existing PDF?

2006-05-10 Thread murthy gandikota
Hi BrunoI am not looking to overlay one pdf on another. I want to fill up a form that has no fields. If you look at foxit.com you will see that they have a way to fill a form that has no fields. Here is my code to do it. But it doesn't work. Thanks for your helpimport com.lowagie.text.*;import com.

Re: [iText-questions] XML to describe instructions for building a document

2006-05-10 Thread cedric . lemaire
>>I am looking for generating a PDF document using iText, but not by >>programming it. >> >Have a look at UJAC: http://ujac.sourceforge.net/ >It's built on top of iText and it might be exactly what you are looking for. Yes, it seems to be exactly what I'm looking for. Thank you for your immediate

Re: [iText-questions] XML to describe instructions for building a document

2006-05-10 Thread bruno
[EMAIL PROTECTED] wrote: Hello, I am looking for generating a PDF document using iText, but not by programming it. Have a look at UJAC: http://ujac.sourceforge.net/ It's built on top of iText and it might be exactly what you are looking for. br, Bruno ---

[iText-questions] XML to describe instructions for building a document

2006-05-10 Thread cedric . lemaire
Hello, I am looking for generating a PDF document using iText, but not by programming it. It is a little like if a user was writing a document into the text field of a GUI application, using markups (like in Tex and HTML). Behind, I'm parsing the annotated text to transform it into phrases, chunk

Re: AW: [iText-questions] Adding Tiff images problem

2006-05-10 Thread bruno
Paulo Soares wrote: Only a couple of lines were changed, you can make a diff or wait until Sunday. The problem you had with CVS yesterday is now mentioned on the status page: "As of 2006-05-09 the developer CVS server had a disk-failure. As the new CVS infrastructure is in its final phases o

AW: [iText-questions] Sub page numbering

2006-05-10 Thread Paulo Soares
You can use any number of templates. Paulo Von: [EMAIL PROTECTED] im Auftrag von Nigel Kibble Gesendet: Mi 10-Mai-06 14:08 An: itext-questions@lists.sourceforge.net Betreff: [iText-questions] Sub page numbering Hi, I'm trying to collate a number of invoic

AW: [iText-questions] IndexOutOfBoundsException in PdfReader

2006-05-10 Thread Paulo Soares
Try with iText 1.4 and if it still doesn't work, post the pdf.   Paulo Von: [EMAIL PROTECTED] im Auftrag von Vd KGesendet: Di 09-Mai-06 18:38An: itext-questions@lists.sourceforge.netBetreff: [iText-questions] IndexOutOfBoundsException in PdfReader We are getting the following exception i

AW: [iText-questions] Adding Tiff images problem

2006-05-10 Thread Paulo Soares
Title: Re: [iText-questions] Adding Tiff images problem Only a couple of lines were changed, you can make a diff or wait until Sunday. The change will load the broken tiff. By the way, I suppose that your boss complains all the time to Adobe for the broken PDFs that he could open in Acroba

[iText-questions] Sub page numbering

2006-05-10 Thread Nigel Kibble
Hi,   I’m trying to collate a number of invoice documents within a single PDF. I’ve managed to do this OK but have stumbled when trying to provide a page numbering mechanism.   I’ve got a ‘page x of y’ at the bottom of each page using the ‘Page X of Y’ example, but I’d also like to incl

AW: [iText-questions] Re: Problems with button-text

2006-05-10 Thread Beate Niendorf
Hi Bruno, > PushbuttonField push = new PushbuttonField(stamp.getWriter(),new > Rectangle(10 + xadd, pageHeight - 80, fieldwidth + xadd, > pageHeight - 40), buttonName + "text"); > > Let me know if this works, It works fine! Thanks a lot :) .oO(I told you it's a simple problem *smile*...) With

[iText-questions] Re: Problems with button-text

2006-05-10 Thread Bruno Lowagie
bruno wrote: I don't see any real difference between your example and mine. Could you send me a small standalone example starting from my code snippet that reproduces the problem? I have found the problem! I was able to reproduce it by switching two parameters in the Rectangle constructor. I w

Re: [iText-questions] Problems with button-text

2006-05-10 Thread bruno
Beate Niendorf wrote: Hi :) I've got a problem to set text on a button. I'm sure it's a simple problem because this is not the first button I create with itext ;) But I really can't see where is the fault :/ This is how I create the button: PushbuttonField push = new PushbuttonField(stamp.ge

Rif: Re: [iText-questions] getStringBounds seems to return uncorrect bounds

2006-05-10 Thread Enrico . Pagnottella
hi bruno thanks for your reply. Your request is correct, i forgot to write it. I don't get the same problem with the Graphics2D of swing components or images. It's an issue of pdfGraphics2D only. This morning i have been working to a pretty odd workaround: i create a bufferedImage, get a graphics2

Re: [iText-questions] getStringBounds seems to return uncorrect bounds

2006-05-10 Thread bruno
[EMAIL PROTECTED] wrote: Hello i developed an application using your library, but i get some error with the getStringBounds method of the Graphics2D object returned by cb.createGraphicsShapes(). Some sample code will explain what i mean : I try to draw the bounds of the string, but they don't

Re: [iText-questions] Removing table from PDF file

2006-05-10 Thread bruno
jayakumar venkatapathy wrote: Hai, <>It is possible to delete a table that is written just before in the PDF file using Java Code. No, but when I look at your scenario: Senario: I am writting the tables in PDF file. when I found new page is opened, then I have to

[iText-questions] Removing table from PDF file

2006-05-10 Thread jayakumar venkatapathy
Hai, It is possible to delete a table that is written just before in the PDF file using Java Code.   Senario: I am writting the tables in PDF file. when I found new page is opened, then I have to remove the table just added and I have to add new table instea

[iText-questions] Barcode Recognition

2006-05-10 Thread Thibault Falise
Hi, This is not a question directly related to iText. I'm currently using the barcode functionnality of iText to generate some barcodes and include them in PDFs. The problem is that I have to develop some application that is able to read the barcodes in order to sort the documents. As I want

[iText-questions] getStringBounds seems to return uncorrect bounds

2006-05-10 Thread [EMAIL PROTECTED]
Hello i developed an application using your library, but i get some error with the getStringBounds method of the Graphics2D object returned by cb.createGraphicsShapes(). Some sample code will explain what i mean : I try to draw the bounds of the string, but they don't contain the string entirely

[iText-questions] Problems with button-text

2006-05-10 Thread Beate Niendorf
Hi :) I've got a problem to set text on a button. I'm sure it's a simple problem because this is not the first button I create with itext ;) But I really can't see where is the fault :/ This is how I create the button: PushbuttonField push = new PushbuttonField(stamp.getWriter(),new Rectangle(10

Re: [iText-questions] editing pdf

2006-05-10 Thread bruno
murthy gandikota wrote: Hi I have downloaded the tutorial Register.java. It uses field names to fill up the form. I used the field names in my form but it is not working out. I am attaching the PDF so you can view it and let me know how to do this. You are confusing the word 'form' as is 's

Re: [iText-questions] urgent::::How to overlay on existing PDF?

2006-05-10 Thread bruno
murthy gandikota wrote: Can someone please tell me how to overlay text on a PDF? http://article.gmane.org/gmane.comp.java.lib.itext.general/21595/ br, Bruno --- Using Tomcat but need to do more? Need to support web services, security? Get s

Re: [iText-questions] Existing Template Questions

2006-05-10 Thread bruno
[EMAIL PROTECTED] wrote: My terminology may be off as I'm a bit of an Acrobat newbie as well. They're called bookmarks in Word, I'm not that familiar with Word, hence my confusion ;-) If I use a button, am I able to put a table within a button, or is there some other way of doing this to ind

Re: [iText-questions] Qustion about adding Bookamrk by PDFStamper

2006-05-10 Thread bruno
wang yun wrote: Dear iText Support, I have an existing pdf file, I want to add bookmark using PDFStamper.setOutlines(List outlines) But, I don't know how to create List from strings. Can I create PDFOutLine Object and then get List from PDFOutLine? There are different ways to do it, but

Re: [iText-questions] Inverting a table and or document within PDF

2006-05-10 Thread bruno
Shore, Jeff wrote: Gang, I'm trying to duplicate and invert a table/document within a single=20 PDF.. The first table/document will be completely inverted upside-down) vs the 2nd table/document.. How do I copy and invert an entire table/document? Use PdfWriter.getImportedPage to read each

Re: [iText-questions] Is there a way to change the line spacing in Paragraph or Chunk?

2006-05-10 Thread bruno
Henry wrote: Is there a way to change the line spacing in Paragraph or Chunk? I've try do this... p = new Paragraph(chunk); p.setSpacingBefore(4f); p.setSpacingAfter(1f); p.setExtraParagraphSpace(50f); p.setIndentationLeft(25f); but this only change the spacing between paragraph

[iText-questions] How to update the calculated fields after filled?

2006-05-10 Thread Henry Ho
Hi, I filled in some fields with PdfStamper's setField(), which should affect some calculated fields in the same PDF.  However, when I open up the PDF, the calculated fields are not updated.  How can I update them? Thank you in advance. --

RE: [iText-questions] urgent::::How to overlay on existing PDF?

2006-05-10 Thread Mark Storer
There are lots of good iText examples:   http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/copystamp/AddWatermarkPageNumbers.java   This one adds an image as an underlay, and text as an overlay.   --Mark Storer   Senior Software Engineer   Cardiff Software   #incl

RE: [iText-questions] editing pdf

2006-05-10 Thread Doug James
The sample you sent does not appear to be an AcroForm. To fill form fields with data you will need to start with an AcroForm. The easiest way I know to create an AcroForm is with Adobe Acrobat Professional. There is support within iText to create the AcroForm but it will be a bit more time c

[iText-questions] How to update the calculated fields after filled?

2006-05-10 Thread fanbanlo
Hi, I used PdfStamper's setField() to fill in some fields, which will affect some calculated fields. However, when I open up the PDF, the calculated fields are not updated. How can I update them? Thank you in advance. --- Using Tomcat

[iText-questions] Is there a way to change the line spacing in Paragraph or Chunk?

2006-05-10 Thread Henry
Is there a way to change the line spacing in Paragraph or Chunk? I've try do this... p = new Paragraph(chunk); p.setSpacingBefore(4f); p.setSpacingAfter(1f); p.setExtraParagraphSpace(50f); p.setIndentationLeft(25f); but this only change the spacing between paragraph not the line s

[iText-questions] Inverting a table and or document within PDF

2006-05-10 Thread Shore, Jeff
Title: Inverting a table and or document within PDF Gang, I'm trying to duplicate and invert a table/document within a single=20 PDF..  The first table/document will be completely inverted upside-down) vs the 2nd table/document..   How do I copy and invert an entire table/document? Je

[iText-questions] Strange problem :/

2006-05-10 Thread fabien allanic
Hello everybody,I have some problems using tables with iText.When I add several tables in my document, I have some Exceptions java.io.IOException: No such file or directory    at java.io.FileOutputStream.writeBytes(Native Method)    at java.io.FileOutputStream.write(Unknown Source)    at java.io.Bu