Re: [iText-questions] Saving a PDF after Modifying the AcroForm

2003-07-30 Thread Bruno
Quoting Steve Wolf <[EMAIL PROTECTED]>: > So, I figured out how to read an existing pdf form, get the acroform, and > even modify the field info dictionary. But, I'm having trouble getting the > now modified acroform and the pdf it came from, saved as a new file. > Unfortunately, our business ta

Re: [iText-questions] How to set overprint when writting a text?

2003-07-30 Thread Rogerio Cisi
Thank´s for your comments! You are right that OverPrint isn´t supported in AcrobatReader, but my application will generate pages to be sent to press. In this situation, we need to make sure that OverPrint will be obeyed. Using the code that Paulo gave me I still did´t take the OverPrint effect.

[iText-questions] Saving a PDF after Modifying the AcroForm

2003-07-30 Thread Steve Wolf
So, I figured out how to read an existing pdf form, get the acroform, and even modify the field info dictionary.  But, I'm having trouble getting the now modified acroform and the pdf it came from, saved as a new file.  Unfortunately, our business takes care of creating the pdf forms with defined f

Re: [iText-questions] How to set overprint when writting a text?

2003-07-30 Thread Leonard Rosenthol
At 08:55 PM 7/30/2003 +0100, Paulo Soares wrote: You must set the graphic state: PdfContentByte cb = ; PdfGState gs = new PdfGState(); gs.setOverPrintStroking(true); cb.setGState(gs); Do keep in mind that many Acrobat users still may not see this correctly, since OverPrint Preview is

Re: [iText-questions] Setting alt and actualText on structure elements

2003-07-30 Thread Leonard Rosenthol
At 01:44 PM 7/30/2003 -0600, Derrick Corda wrote: I have been using iText for a while now (it is great - Thanks for creating this!). I am trying to make accessible PDF by adding alt and actualText to structure elements like Chapter, Section and PdfOutiline. Is there a way to do this? Any hints

Re: [iText-questions] Setting alt and actualText on structure elements

2003-07-30 Thread Paulo Soares
That's not possible without an iText structural change. Best Regards, Paulo Soares - Original Message - From: "Derrick Corda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 20:44 Subject: [iText-questions] Setting alt and actualText on structure elements > I

Re: [iText-questions] How to set overprint when writting a text?

2003-07-30 Thread Paulo Soares
You must set the graphic state: PdfContentByte cb = ; PdfGState gs = new PdfGState(); gs.setOverPrintStroking(true); cb.setGState(gs); Best Regards, Paulo Soares - Original Message - From: "Rogerio Cisi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 18:59

[iText-questions] Setting alt and actualText on structure elements

2003-07-30 Thread Derrick Corda
I have been using iText for a while now (it is great - Thanks for creating this!). I am trying to make accessible PDF by adding alt and actualText to structure elements like Chapter, Section and PdfOutiline. Is there a way to do this? Any hints would be appreciated. -Derrick

[iText-questions] How to set overprint when writting a text?

2003-07-30 Thread Rogerio Cisi
Hello! Can anyone help me in writting a text with overprint. To be more clear: I would like to write a text in a colored page, but the page background color must be keeped. Using the method showTextAligned of the class PdfContentByte, under the text writted the color is white inside beeing the pag

Re: [iText-questions] Keeping paragraphs together with ColumnTExt

2003-07-30 Thread Guillermo González
Thank you very much Pablo, I thing I will try it that way... Best Regards, Guillermo - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Guillermo González" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 12:27 Subject: Re: [iText-questions] Keeping

Re: [iText-questions] Keeping paragraphs together with ColumnTExt

2003-07-30 Thread Paulo Soares
Why? The sequence is: - create a new instance of ColumnText - load it with a paragraph - simulate - create a new instance of ColumnText - load it with the same paragraph - write it in the same column or the next - repeat until no more paragraphs Best Regards, Paulo Soares - Original Message

Re: [iText-questions] Submitting acroform

2003-07-30 Thread Paulo Soares
See the examples in www.geocities.com/itextpdf that use PdfStamper. You can fill the fields one by one or create an FDF and fill them in one go. Best Regards, Paulo Soares - Original Message - From: "Martin Abrahamsson" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]>; "Leonard

Re: [iText-questions] ArrayIndexOutOfBoundsException when masking an image

2003-07-30 Thread Chris . Rauschuber
Hi Paulo, Thanks for your help. I converted the JPEG to a PNG and got a better result. The masked image is still a little sketchy, but I think it is good enough. Thanks again, Chris

Re: [iText-questions] Keeping paragraphs together with ColumnTExt

2003-07-30 Thread Guillermo González
Thanks Pablo, By doing so, do you have therefore to write in another PDF file to use this new instance of Columntext? That's all... Best Regards, Guillermo - Original Message - From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Guillermo González" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Se

Re: SV: [iText-questions] Submitting acroform

2003-07-30 Thread Leonard Rosenthol
At 05:21 PM 7/30/2003 +0200, Martin Abrahamsson wrote: What do i have to du to copy the acrofields to the new pdf? Are there any examples to look at? (I havent found any yet) Read the copypdf.java example! Leonard ---

SV: [iText-questions] Submitting acroform

2003-07-30 Thread Martin Abrahamsson
-Ursprungligt meddelande- Från: Paulo Soares [mailto:[EMAIL PROTECTED] Skickat: den 30 juli 2003 17:02 Till: Martin Abrahamsson; Leonard Rosenthol; [EMAIL PROTECTED] Sourceforge. Net Ämne: Re: [iText-questions] Submitting acroform >Now I understand. You want to create the PDF with fields

Re: [iText-questions] Submitting acroform

2003-07-30 Thread Paulo Soares
Now I understand. You want to create the PDF with fields in Acrobat, fill it with iText and present the result to the user that has the option of changing it and submitting the form. iText can do it out-of-the-box, no problem. Best Regards, Paulo Soares - Original Message - From: "Martin

Re: [iText-questions] Keeping paragraphs together with ColumnTExt

2003-07-30 Thread Paulo Soares
The simulation destroys the content. You have to create a new instance when doing it for real. The next version has a duplicate method in ColumnText to ease the reversion to a previous state. Best Regards, Paulo Soares - Original Message - From: "Guillermo González" <[EMAIL PROTECTED]> To

Re: [iText-questions] Keeping paragraphs together with ColumnTExt

2003-07-30 Thread Guillermo González
Thanks Pablo, BTW your library is great! I've tried simulation with go(true) before, doing something like this: ct.setSimpleColumn(right[0], 25, left[0], 800, leading, Element.ALIGN_LEFT); (...) While (rs.next()) { (...) ct.addText(p); if (go(true) == ct.NO_MORE_COLUMN) { column++;

Re: SV: [iText-questions] Submitting acroform

2003-07-30 Thread Leonard Rosenthol
At 12:06 PM +0200 7/30/03, Martin Abrahamsson wrote: I've only done a couple of forms for a demo so far and it is a hassle to get all the formfields in the exact possitions. Yes, it can be... To speed up things in the future (lots of forms to create) i'm wondering if it is posssible to add the

SV: [iText-questions] Submitting acroform

2003-07-30 Thread Martin Abrahamsson
Hi again Thanks for the help so far. See below for more info/questions. > At 05:03 PM 7/29/2003 +0200, Martin Abrahamsson wrote: > >I've created a couple och forms based on existing pdfs (scanned forms) > and > >added acroformfields wich the user editds on screen and then prints the > >form. > > >

Re: [iText-questions] Submitting acroform

2003-07-30 Thread Paulo Soares
- Original Message - From: "Martin Abrahamsson" <[EMAIL PROTECTED]> To: "Leonard Rosenthol" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED] Sourceforge. Net" <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 11:06 Subject: SV: [iText-questions] Submitting acroform > At 05:03 PM 7/29/2003 +0200,

Re: [iText-questions] Keeping paragraphs together with ColumnTExt

2003-07-30 Thread Paulo Soares
You'll have to first simulate if the paragraph fits and then write it in the same column or the next. Note that the simulation destroys the instance and a new ColumnText instance must be created. Best Regards, Paulo Soares - Original Message - From: "Guillermo González" <[EMAIL PROTECTED]

Re: [iText-questions] add Image to pdf document

2003-07-30 Thread Paulo Soares
It's all wrong. It has to be something like this: PdfReader reader = new PdfReader("c:\\daten\\Projektarbeit\\plan2.pdf"); FileOutputStream fo = new FileOutputStream("c:\\daten\\Projektarbeit\\new.pdf"); PdfStamper stamp = new PdfStamper(reader, fo); PdfContentbyte cb = stamp.getOverContent(1); Im

SV: [iText-questions] Submitting acroform

2003-07-30 Thread Martin Abrahamsson
At 05:03 PM 7/29/2003 +0200, Martin Abrahamsson wrote: >I've created a couple och forms based on existing pdfs (scanned forms) and >added acroformfields wich the user editds on screen and then prints the >form. > Great... I've only done a couple of forms for a demo so far and it is a hass

Re: [iText-questions] 2 line drawing questions

2003-07-30 Thread Paulo Soares
- Original Message - From: "David Thielen" <[EMAIL PROTECTED]> To: "itext" <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 0:10 Subject: [iText-questions] 2 line drawing questions > Hi; > > I have two line drawing questions. First, I am drawing a grid. To draw > the outer box clean I

Re: [iText-questions] How can I print this character"+/-" in the table with itex

2003-07-30 Thread Paulo Soares
"\u00b1" - Original Message - From: "Pan, Daniel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 21:14 Subject: [iText-questions] How can I print this character"+/-" in the table with itex Hi How can I print the following format data in a table made by itex. I

Re: [iText-questions] How can I make 3D border and print character"+/-" in the table wi th itex

2003-07-30 Thread Paulo Soares
Create a PdfPTable without borders. Set a PdfPTableEvent in that table. Draw whatever borders you want in that event. There are examples at www.geocities.com/itextpdf. Best Regards, Paulo Soares - Original Message - From: "Pan, Daniel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tue

[iText-questions] A problem wifth PDF of big size

2003-07-30 Thread Werewolf
Hello! When I create PDF with table of small size, it works perfectly. But if I add 10-20 rows to the table, the browser doesn't open it. On the other hand, file with big table can be created without any problems. What's is the reason? Maksim ---