[iText-questions] ServletOutputStream - Output not working withh pdfContentByte

2006-03-15 Thread Murali Thirumalai
Hi, I have a situation here. The pdf document is being created and displayed through the servlet. Any contenty added through pdfContentByte is not shown in the servlet output. The code is listed below. Can someone tell me what I am doing wrong here? Thanks in advance for your help. rega

Re: [iText-questions] setting botders on HeaderFooter

2006-03-15 Thread Paulo Soares
In the new itextsharp the method names were capitalized and some methods were converted to properties. In this case: HeaderFooter head = new HeaderFooter(phrase, false); head.Border = Rectangle.BOTTOM_BORDER; By the way, you should use page events instead of HeaderFooter. - Original Messag

[iText-questions] Invalid Restore on open

2006-03-15 Thread Doug James
Alright, here is another one... I deliver a pdf out of my database but now I get an "Invalid restore" on opening in Adobe Reader. From what I can find in the mail archives it may be associated with my check boxes. How do I find out which one(s) are the problem? Thanks! Doug James Software Engi

[iText-questions] setting botders on HeaderFooter

2006-03-15 Thread Jack Mott
Using an older version of itextsharp, we were doing this: HeaderFooter head = new HeaderFooter(phrase, false); head.setBorder(Rectangle.BOTTOM_BORDER); The new dll seems to have no equivalent way to set a border that I can indenfity. Any input? -

[iText-questions] Indissoluble text

2006-03-15 Thread Philipchik, Alexander
Hello, I use itext 1 year and now find a problem. I have complex document with text and tables. At the end of document I need to add author name. Name must be on a page with at leas 1 text string (no one name on a page). How I can do it?   Can I change anything in a document after c

[iText-questions] Problem with tables while converting HTML to Pdf -

2006-03-15 Thread EternalGlory -
  I am using the code below to convert Html file to PDF.    I notice that at times, it doesn't print the tables in PDF.   I have enclosed the input Html and output Pdf as well for reference.   Am I missing something here?  Suggestions.   Document doc = new Document(PageSize.A4, 80, 50, 30, 65); P

Re: [iText-questions] Indissoluble text

2006-03-15 Thread bruno
Philipchik, Alexander wrote: is clear, but situation, when author's name is alon on the page - wrong. Example: ---page--- Text text ---page--- author's name ---END--- !!!Wrong!!! Need: ---page--- Text ---page--- text author's name ---END--- The only way to solve this, is to use ColumnText. B

Re: [iText-questions] Indissoluble text

2006-03-15 Thread bruno
Philipchik, Alexander wrote: Hello, I use itext 1 year and now find a problem. I have complex document with text and tables. At the end of document I need to add author name. Name must be on a page with at leas 1 text string (no one name on a page). How I can do it? Can I change anything

Re: AW: [iText-questions] (no subject)

2006-03-15 Thread bruno
Beate Niendorf wrote: Just for the archives - this is the working version with an action: PushbuttonField push = new PushbuttonField(stamper.getWriter(),new Rectangle(10, 10, 40, 25), "ok"); push.setText("Übernehmen"); push.setBackgroundColor(Color.LIGHT_GRAY); push.setBorderColor(Color.GRAY);

[iText-questions] Indissoluble text

2006-03-15 Thread Philipchik, Alexander
Hello, I use itext 1 year and now find a problem. I have complex document with text and tables. At the end of document I need to add author name. Name must be on a page with at leas 1 text string (no one name on a page). How I can do it?   Can I change anything in a document after closing

Re: [iText-questions] ITExt

2006-03-15 Thread bruno
François Christophe wrote: Thanks for the solution, Here is what I did and it's working; OK, that's good news, I post your code snippet to the mailing list for future reference. br, Bruno KeyStore ks = KeyStore.getInstance("pkcs12"); ks.load(new FileInputStream("c:\\certificate\\certifica

Re: [iText-questions] (no subject)

2006-03-15 Thread bruno
Beate Niendorf wrote: Hi there, I'm quite new to itext and I bounced into a little problem. I have a PDF-file with one page (a graphic) and I'd like to insert a page before. This worked realy fine with PdfStampers "insertPage()-method". Now I want to fill this new page with a button. On th

[iText-questions] (no subject)

2006-03-15 Thread Beate Niendorf
Hi there,   I'm quite new to itext and I bounced into a little problem.   I have a PDF-file with one page (a graphic) and I'd like to insert a page before. This worked realy fine with PdfStampers "insertPage()-method". Now I want to fill this new page with a button. On the one hand I th

Re: [iText-questions] ITExt

2006-03-15 Thread bruno
François Christophe wrote: It's working very well but I would like to have the same file in output as the file in input. So if I sign the original.pdf file I would have original.pdf in output but with the signature. Can we open a pdf file in I/O with IText lib ? Is this possible? No, hardly

Re: [iText-questions] ITExt

2006-03-15 Thread bruno
François Christophe wrote: Hello, Is this mailing list still active please ? Some statistics: January 2006: 536 posts February 2006: 649 posts today: about 15 posts Not including this one: http://article.gmane.org/gmane.comp.java.lib.itext.general/21596 So yes, I'd say the list is acti

[iText-questions] ITExt

2006-03-15 Thread François Christophe
Hello,   Is this mailing list still active please ?       François Christophe  

[iText-questions] Re: Can I overlap 2 different PDF files?

2006-03-15 Thread Bruno Lowagie
Todt, Elmar wrote: I have question of your itext pdf libary. How can I overlap 2 different pdf files (like an overlay) ? It's called superimposing. For example: one pdf file is a letter and one pdf file will be a form with a logo and some additional text (footer). Normally, I refer to the

RE: [iText-questions] image.scalePercent

2006-03-15 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of beppe costagliola > Sent: Wednesday, March 15, 2006 10:55 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] image.scalePercent > > I'm trying to scale a watermark. > >

Re: [iText-questions] Re: How to instantiate a PDF Document ?

2006-03-15 Thread bruno
Samuel Viana wrote: Otherwise, you specify the height of the column and a Y position; and you will have to check if all the text was displayed." I need to know how to specify that y position The height of the column can be passed with the constructor; the y position is the current y

Re: [iText-questions] Re: Wrap text in a rectangle

2006-03-15 Thread bruno
[EMAIL PROTECTED] wrote: setSimpleColumn method and then use the setLeading method with suitable arguments. This way you can vary the space between the lines and try to fit in the text depending on the number of lines. That's a possible solution. If am right the setLeading method combines

Re: [iText-questions] image.scalePercent

2006-03-15 Thread bruno
beppe costagliola wrote: cb.addImage(makitaImage, makitaImage.width(), 0, 0, makitaImage.height(), 12, 675); I have made the same mistake plenty of times ;-) You should use: cb.addImage(makitaImage, makitaImage.scaledWidth(), 0, 0, makitaImage.scaledHeight(), 12, 675); br, Bruno

Re: [iText-questions] Re: Wrap text in a rectangle

2006-03-15 Thread akoukou
bruno <[EMAIL PROTECTED]> said: > [EMAIL PROTECTED] wrote: > > > The problem is that the text ges out of the rectangle if the size is > > large. > > > Does anyone know how to surpass this problem? > > What do you want? > Do you want the text that doesn't fit to disappear? > Do you want to crea

Re: [iText-questions] image.scalePercent

2006-03-15 Thread bruno
beppe costagliola wrote: I'm trying to scale a watermark. In the onOpenDocument I coded: makitaImage = Image.getInstance("/pdf/" +"Makita_red.jpg"); makitaImage.scalePercent(75); In the onEndPage: cb.addImage(makitaImage, .); but the image does not resize. Using cb.addImage i

[iText-questions] image.scalePercent

2006-03-15 Thread beppe costagliola
I'm trying to scale a watermark. In the onOpenDocument I coded: makitaImage = Image.getInstance("/pdf/" +"Makita_red.jpg"); makitaImage.scalePercent(75); In the onEndPage: cb.addImage(makitaImage, .); but the image does not resize. Thanks. Giuseppe. ___

Re: [iText-questions] Re: How to instantiate a PDF Document ?

2006-03-15 Thread bruno
Pescador Digital wrote: Excuse my poor english, I do understand your English. It's not poor. It's your requirement that I don't understand. You aren't supposed to use the method write() that belongs to the MultiColumnText. Given the examples in the tutorial: http://itextdocs.lowagie.com/tutori

[iText-questions] Re: How to instantiate a PDF Document ?

2006-03-15 Thread Pescador Digital
bruno lowagie.com> writes: > > Pescador Digital wrote: > > >Hi everyone, > > > >i am new in this mailing list and I want to know if it is possible to > >instantiate a PdfDocument class. I need to use it in the write() method ofthe > >MultiColumnText class: > > > >public float write(PdfContentB

Re: [iText-questions] setFullCompression

2006-03-15 Thread bruno
beppe costagliola wrote: "PDDocOpen version 1073807365 The file is damaged and could not be repaired" Full compression is supported starting with PDF 1.5. What PDF version does your viewer support? br, Bruno --- This SF.Net email is spons

Re: [iText-questions] Conversion

2006-03-15 Thread bruno
Jan Vosloo wrote: Hi, Can I convert (with iText) an acroform to new format so that I can open it in LiveCycle designer 7 without going through the importing process? I don't think so, br, Bruno --- This SF.Net email is sponsored by xPML

Re: [iText-questions] Re: Wrap text in a rectangle

2006-03-15 Thread bruno
[EMAIL PROTECTED] wrote: The problem is that the text ges out of the rectangle if the size is large. Does anyone know how to surpass this problem? What do you want? Do you want the text that doesn't fit to disappear? Do you want to create a new rectangle on a new page with the rest of the

[iText-questions] Re: Wrap text in a rectangle

2006-03-15 Thread akoukou
Bruno Lowagie <[EMAIL PROTECTED]> said: > [EMAIL PROTECTED] wrote: > > >Hello all, > > > > > > > FYI: the address is itext-questions@lists.sourceforge.net > You mailed your question to the admin instead. > > >i am new at iText and i need to create a pdf simply by placing several > >elements

[iText-questions] Conversion

2006-03-15 Thread Jan Vosloo
Hi,   Can I convert (with iText) an acroform to new format so that I can open it in LiveCycle designer 7 without going through the importing process?   Thanks   Jan Vosloo Software Engineer - Korbitec Holdings(Pty)Ltd Tel:  (021) 658 9700 Fax: (021) 658 9701 Cell: 084 519 6000 Email: [EMAIL

[iText-questions] setFullCompression

2006-03-15 Thread beppe costagliola
I have tried to archive on Content Manager a PDF created with setFullCompression. When setting the indexes from the Client Administrator I can see the text and set the keys but when I try to archive it i get this error: "PDDocOpen version 1073807365 The file is damaged and could not be repaired"