[iText-questions] Problems with headers & positioning

2003-03-07 Thread David Thielen
Hi;   I wrote the attached simple program to show the problems I am having: It does not show the author It does not show the header (unless it's in some compressed stream). The baselines of the 4 lines of text should be at multiples of 1". However, y starts off at 1-7/32" and by th

[iText-questions] no compression?

2003-03-07 Thread David Thielen
Hi;   Is there a way to generate pdf files with no compression (so I can see what it wrote to the streams)?   thanks - dave

Re: [iText-questions] addAuthor and addHeader not showing up in document properties

2003-03-07 Thread Paulo Soares
Works for me using itext-paulo-110. You'll only see the Author in the document properties but the other tag is also in the file. Best Regards, Paulo Soares - Original Message - From: "David Thielen" <[EMAIL PROTECTED]> To: "itext" <[EMAIL PROTECTED]> Sent: Saturday, March 08, 2003 0:14 Su

[iText-questions] addAuthor and addHeader not showing up in document properties

2003-03-07 Thread David Thielen
Any idea how that could happen?      document = new Document( new com.lowagie.text.Rectangle( 0, 0, (float) rtfDoc.getHeader().getPaperWidth() / 20.0f,(float) rtfDoc.getHeader().getPaperHeight() / 20.0f ),(float) rtfDoc.getHeader().getLeftMargin() / 20.0f,

Re: [iText-questions] A Bug or a feature

2003-03-07 Thread Paulo Soares
Put all the chunks inside a Paragraph and it will work correctly. Best Regards, Paulo Soares - Original Message - From: "Jaladurgam, Ramana" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 21:02 Subject: [iText-questions] A Bug or a feature > HI, > I have modi

Re: [iText-questions] Styled fonts on a PdfContentByte

2003-03-07 Thread Paulo Soares
It can be done with some work. The easiest way is to use a ColumnText to place the text at precise position. It will do all the work of simulating bold and italic. The hard way is to do by hand what ColumnText does. To make bold use PdfContentByte.setTextRenderingMode(), to make italic skew the tex

Re: [iText-questions] Styled fonts on a PdfContentByte

2003-03-07 Thread Kenny G. Dubuisson, Jr.
I don't think you can. You must have the separate bold font. Maybe Paulo or Bruno know differently. Take care, Kenny - Original Message - From: "Danny Burkes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 3:54 PM Subject: [iText-questions] Styled fonts on a Pdf

[iText-questions] Styled fonts on a PdfContentByte

2003-03-07 Thread Danny Burkes
Hello- I am using PdfContentByte to position text absolutely on a page. I have a Font object that specifies a certain base font, plus a style (Font.BOLD). The Font object refers to a TrueType font for which no separate bold version actually exists, so the BaseFont part of Font points to the .ttf

[iText-questions] A Bug or a feature

2003-03-07 Thread Jaladurgam, Ramana
HI, I have modified the example program Chap0101.java to add chunks of data. I expected that iText creats two lines, but the second line overrides the first one. Is this the way, iText is expected to behave? Or is this a bug? I have also attached the example program. Thanks, Ramana. /*

[iText-questions] Bug in form flattening

2003-03-07 Thread Paulo Soares
Form flattening has a bug when originally the AP key does not exist. The result is that the field does not show up. Replace AcroFields.java with this one. Best Regards, Paulo Soares AcroFields.zip Description: Zip compressed data

Re: [iText-questions] New example for itext-paulo-110

2003-03-07 Thread Paulo Soares
Are you saying that it modifies the fields but if you flatten, the field text disappears? If you don't flatten it works well? I need the pdf and the command line that you used. You can apply all the encryption settings but you have to modify the example. See the javadoc for PdfStamper. Best Regard

Re: [iText-questions] itext-paulo-110 (2003-03-05)

2003-03-07 Thread Paulo Soares
The code looks ok. The only reason I can see for failure is if the field names you are giving do not match the ones at the document. You can get the field names of the document with AcroFields.getFields(), the keys are the field names. When calling setField() check the return value, it's true if th

Re: [iText-questions] New example for itext-paulo-110

2003-03-07 Thread kg84
field_merge.java is totally good for my requirement. But for some reason form flattening wiping off data merged ( I tested with Acrobat 5.0.5). After data merged can I make that file read only ( not fillable) so users cannot modify? Thanks.

RE: [iText-questions] itext-paulo-110 (2003-03-05)

2003-03-07 Thread Tony Costanzo
Paulo- Here is a method I wrote to process a number of pdfs with their own data and merge them into one pdf. When this pdf is generated all the pages of pdf show up correctly, but the form fields are not populated. Thanks in advance. Tony /** * @param pdfFiles List contains a list of HashMap

Re: [iText-questions] (no subject)

2003-03-07 Thread Paulo Soares
You are missing the cb.endText(). Best Regards, Paulo Soares --- Jochen Dürr <[EMAIL PROTECTED]> wrote: > Hi there, > i have created a pdf-File with the > itext-0.96-package. I have used the > following code: > > Document document = new > Document(PageSize.A4,0,0,0,0);; > PdfWriter writer = PdfW

[iText-questions] (no subject)

2003-03-07 Thread Jochen Dürr
Hi there, i have created a pdf-File with the itext-0.96-package. I have used the following code: Document document = new Document(PageSize.A4,0,0,0,0);; PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("test.pdf")); PdfContentByte cb = writer.getDirectContent(); cb.beginText

RE: [iText-questions] Problem adding WMF-image to pdf

2003-03-07 Thread Paulo Soares
Show me the wmf. Best Regards, Paulo Soares > -Original Message- > From: Thorsten Schäfer [SMTP:[EMAIL PROTECTED] > Sent: Friday, March 07, 2003 11:49 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Problem adding WMF-image to pdf > > Hi, > > I want to add a wmf image to my

[iText-questions] Problem adding WMF-image to pdf

2003-03-07 Thread Thorsten Schäfer
Hi, I want to add a wmf image to my document. The image consists of a line, 2 graphics and several colored squares for the background. The problem is, that the background isn't visible in the pdf file! Only the two graphics and the line are visible. Does anyone have a hint? Thanks, Thorsten

[iText-questions] New example for itext-paulo-110

2003-03-07 Thread Paulo Soares
field_merge.java - form filling and flattening with the field values as command line parameters All this at: http://www.geocities.com/itextpdf Best Regards, Paulo Soares --- This SF.net email is sponsored by: Etnus, makers of TotalView, The

[iText-questions] RE: Some more params to Chunk

2003-03-07 Thread Paulo Soares
So you want tabs. I have that promised since October but it's far from trivial. You can place text at precise positions with whatever spacing you want. Best Regards, Paulo Soares > -Original Message- > From: Jaladurgam, Ramana [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 23:31

[iText-questions] Exception when using ttf

2003-03-07 Thread Klimko Ivan
Hi, i receive runtime exception java.lang.NullPointerException, when I try to use ttf font. But this exception don't stop execution of my program. Files, exception details and code in attachment. Sorry about my English. Thank you. --- This SF.