Re: [iText-questions] Problem about JSP call Servlet that output PDF

2007-01-30 Thread Bruno Lowagie
Bang Nguyen wrote: > Hello All, > My servlet output PDF OK. > But when use JSP call that servlet. I get following error: > > /java.lang.IllegalStateException This question is OFF TOPIC on this list; why did you post it here??? Have you tried Googling for the response? http://www.google.com/search

[iText-questions] Problem about JSP call Servlet that output PDF

2007-01-30 Thread Bang Nguyen
Hello All, My servlet output PDF OK. But when use JSP call that servlet. I get following error: java.lang.IllegalStateException at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:62) at servlet.HelloWorldServlet.doGet(HelloWorldS

[iText-questions] Issue with PdfReader-->getJavaScript

2007-01-30 Thread Amit Sharma
Hi All, I am merging 2 files to create a new file, I have one pdf in which I have the javascript (Document JavaScript) and few document Actions, I am able to get the JavaScript using PdfReader.getJavaScript but I am not able to get the javascript associated with my actions, e.g. I have ja

[iText-questions] Possible bug in form handling relating to required fields

2007-01-30 Thread Dan Foygel
Hi - I found what's possibly a bug relating to how iText generates forms with required fields (or may just be a misunderstanding). When I create a simple form with one text field (marked as required) and one submit action, and then open the resulting PDF in Acrobat, it allows me to submit

[iText-questions] RtfCharacterStyle

2007-01-30 Thread Phil Ritchie
Has anyone implemented RTF character styles to complement the RTF paragraph styles? Phil. ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/n

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-30 Thread Tom Bevan
You can send me a copy ;) -Original Message- From: Bruno Lowagie (iText) [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 January 2007 11:49 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Inserting Hidden fields into a PDF document Tom Bevan wrote: > Is this ex

Re: [iText-questions] how do you setup a tab space ?

2007-01-30 Thread Arif Abbasi
Hi I am trying to add a few tab spacing between two texts on the same line when generating a footer in my PDF doc. However, "\t does not seem to work here. Here's a snippet of code: Chunk tabSpace = new Chunk("\t\t\t\t" + " ");

[iText-questions] PdfAnnotation.createFreeText 's setBorderStyle Problem

2007-01-30 Thread wang yun
Dear Support, I wish that I could create a dashed border. But, it does't work. It comes out as a solid. an.setBorderStyle(new PdfBorderDictionary(3.0f, PdfBorderDictionary.STYLE_DASHED) ); Please help. Thanks. PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("My_Annota

Re: [iText-questions] PdfStamper.close(): java.io.IOException: Notenough space

2007-01-30 Thread Paulo Soares
Remove the class MappedRandomAccessFile and replace all occurrences of it in RandomAccessFileOrArray with RandomAccessFile. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Paul Gatewood > Sent: Tuesday, January 30, 2007 11:38 AM > To: ite

Re: [iText-questions] BINGO! PdfStamper.close(): java.io.IOException: Notenough space

2007-01-30 Thread Paul Gatewood
Thank you Paulo. I downloaded the source 1.4.8, made the changes you described (which I also found at http://itext.ugent.be/library/question.php?id=19), made a new jar, and now it works fine! -paul Paulo Soares wrote: > Remove the class MappedRandomAccessFile and replace all occurrences of > i

Re: [iText-questions] More Image and Paragraph Wierdness, involving setKeepTogether

2007-01-30 Thread Bruno Lowagie (iText)
R.Greg wrote: > p.setKeepTogether(true); This is an undocumented method that is no longer supported and likely to disappear in the next release. Please use ColumnText if you want to have more control over the layout (widows/orphans). best regards, Bruno ---

[iText-questions] More Image and Paragraph Wierdness, involving setKeepTogether

2007-01-30 Thread R . Greg
I'm adding a Paragraph to my Document that has an Image within it. The following code segment adds it, right aligned, with text wrap, and puts some text around it. This works fine. Image img = Image.getInstance("image.png"); img.setAlignment(Image.RIGHT | Image.TEXTWRAP); Paragraph p = new Para

Re: [iText-questions] iText-Questions

2007-01-30 Thread Paul Gatewood
Bruno -- you probably get plenty supportive feedback, but I still feel like voicing what I'm sure the vast majority of people realize: what a lot of work it must be to keep up with this list, and provide all the help. Between the book and the examples online and this list, there is such a lot

Re: [iText-questions] Converting PDF form to HTML form

2007-01-30 Thread Leonard Rosenthol
On Jan 29, 2007, at 2:19 PM, Dirk.Weigenand wrote: > xdp representation of a pdf is a description in a XML dialect. Open > your > pdf file in a text editor and have a look at the first few lines. > If it > looks like the following: > That's not what XDP is... XDP is an XML con

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-30 Thread Bruno Lowagie
Bruno Lowagie (iText) wrote: > This is the third error people have found in my book: > the first one is on page 109 (it's easily overlooked), > the second one on page 126 (a detail), and now you found > one on page 499. I'll add it to my errata. More info on these errors can be found here: http://

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-30 Thread Bruno Lowagie (iText)
Tom Bevan wrote: > Is this expected behaviour? That's not what I expected. As a matter of fact, I tested this on Adobe Reader 8 and Adobe Reader 6, and they both behave differently. In the PDF Reference 1.7 I read that each 'terminal field' should have type and at least one widget annotation (as

Re: [iText-questions] PdfStamper.close(): java.io .IOException: Notenough space

2007-01-30 Thread Paul Gatewood
Paulo Soares consiste.pt> writes: > > That's a consequence of the system not finding continuous space in the > virtual memory. Since RandomAccessFile was replaced by a memory mapped file > this errors pop up now and then. I'm considering reverting to the previous > situation or at least provi

Re: [iText-questions] delete chunk of a pdf page

2007-01-30 Thread Bruno Lowagie (iText)
Brendan Graves wrote: > Hi there, > > I was wondering if anyone had any good ideas of how to go about removing > all objects (graphics, images, text) below a given y co-ordinate on a > single page of an existing pdf using itext? Remove all objects, as in physically removing them from the FILE,

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-30 Thread Bruno Lowagie (iText)
Tom Bevan wrote: > Is this expected behaviour? Thanks for the clarification. I will have to make a small standalone example to reproduce the problem and find out what goes wrong. This will take some time, but your description points in the direction of a bug. If it is, it's something I should fix.

Re: [iText-questions] Just Curious - PDFBox question

2007-01-30 Thread Bruno Lowagie (iText)
Ben Litchfield wrote: > Both iText and PDFBox are open source and depend on help from the > community; if a bug or feature is a priority then it is possible to > submit a patch. Hey Ben! Thank you for the clarification! It's a good thing F/OSS projects get more attention, but it's not always