Re: [iText-questions] getPageNumber() always returns zero

2003-01-10 Thread Bruno
Quoting Matt Benson [EMAIL PROTECTED]: What is the reason for this? I assume there must be one. I honestly don't remember. I have to update several parts of the site, but I don't have the time rightnow (maybe in february). I'll keep your mail as a reminder. Bruno

Re: [iText-questions] Indenting a Header!

2003-01-10 Thread Bruno
Quoting John L. Lowenthal [EMAIL PROTECTED]: Sorry for the double send on the previous email... The posted solution only fixes half my problem. It aligns fine now, but I still have the problem that I can't indent the header. Is there anything I can do about this? Thanks. -John You can't

Re: [iText-questions] Add content to copied pdf

2003-01-10 Thread Kumata Mitsugu
One other question related to PdfCopy. Is it possible to extract only form field from PDF file and place it to currently generating PDF? With regards KuMi It's possible with a lot of work. You'd have to deal directly with stream contents and dictionaries as all the changes would be in-place.

[iText-questions] Can i write an encrypted pdf directly to response OutputStream?

2003-01-10 Thread Pritam Dewan
Hi. Can i write an encrypted pdf directly to response.OutputStream?Below is the fragment of code which i m implementing.Is it legal without performance bottleneck. PdfEncryptor.getInstance().writePrintOnlyCopy(pdfReader,httpServletResponse.getOutputStream() ) ; protected void

RE: [iText-questions] Can i write an encrypted pdf directly to response OutputStream?

2003-01-10 Thread Paulo Soares
You can do it but you may (you will) run into troubles with IE if the content length is not sent. Best Regards, Paulo Soares -Original Message- From: Pritam Dewan [SMTP:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 11:55 To: [EMAIL PROTECTED] Subject: [iText-questions]

RE: [iText-questions] Add content to copied pdf

2003-01-10 Thread Paulo Soares
Yes and no. You can get all the field information and build another field. Unfortunately you'll also have to duplicate the appearance stream or in other words be an annotation handler. Best Regards, Paulo Soares -Original Message- From: Kumata Mitsugu [SMTP:[EMAIL PROTECTED]] Sent:

[iText-questions] Displaying exceptions from a PDF generating servlet

2003-01-10 Thread Kenny G. Dubuisson, Jr.
I'm just beginning to author a servlet which generates a PDF document (for the browser) from data in a database. I'm having problems with it where, when I have certain lines of code in the servlet, I get an empty browser (not even an empty PDF doc). I must be throwing exceptions that I'm not

[iText-questions] BaseFont.getWidth(Unknown source) error

2003-01-10 Thread Kenny G. Dubuisson, Jr.
I have a servlet that creates a PDF using iText. I'm grabbing a date from the database (as a string) and trying to display it with the following line of code: cb.showTextAligned(PdfContentByte.ALIGN_CENTER, asOfDate, pageWidth / 2, pageHeight - 70, 0); When I use this, I get the following error

RE: [iText-questions] BaseFont.getWidth(Unknown source) error

2003-01-10 Thread Paulo Soares
Probably the variable asOfDate is null. Best Regards, Paulo Soares -Original Message- From: Kenny G. Dubuisson, Jr. [SMTP:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 16:13 To: [EMAIL PROTECTED] Subject: [iText-questions] BaseFont.getWidth(Unknown source) error I have

Re: [iText-questions] serious problem concatenating pdfs together

2003-01-10 Thread Sean Langford
Paulo, Thanks for your prompt reply. I am now trying to write a general purpose pdf appender using PdfCopy.java which will will allow an abitrary number of pdf appends. However I'm having trouble with 'PdfCopy.getImportedPage'. It doesn't seem to work after the first reader. I'm looking

[iText-questions] How to set PdfPCell width

2003-01-10 Thread Kenny G. Dubuisson, Jr.
I'm trying to set the width of my cells in a PdfPTable that uses PdfPCells. I've tried the setLeft method to no avail. Could someone tell me how to control a PdfPCell's width. Thanks in advance, Kenny --- This SF.NET email is sponsored by:

Re: [iText-questions] How to set PdfPCell width

2003-01-10 Thread Kenny G. Dubuisson, Jr.
I figured it out. For future reader's of this post, you set the widths via PdfPTable.setWidths. For me to set one column to 30% of the total width and all other 7 columns to 10%, I used the line: int[] widths = {30, 10, 10, 10, 10, 10, 10, 10}; table.setWidths(widths); Kenny - Original

Re: [iText-questions] moveTo, lineTo - what are the coordinates?

2003-01-10 Thread David Thielen
Hi; I may not have explained this very well. First, I have to write my various lines at different times and get them to join up seamlessly. To make it all one path would require some very painful coding. Plus the line width dashes change from segment to segment. So lets say I am drawing a

RE: [iText-questions] Underlined font

2003-01-10 Thread Paulo Soares
BaseFont can't be underlined unless is part of a Chunk. Best Regards, Paulo Soares -Original Message- From: Kenny G. Dubuisson, Jr. [SMTP:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 21:47 To: [EMAIL PROTECTED] Subject: [iText-questions] Underlined font How do I get