Re: [iText-questions] Underlining text with extra whitespace at end?

2007-03-23 Thread Paulo Soares
Use the no-break space \u00a0. Paulo - Original Message - From: "Gray Jones" <[EMAIL PROTECTED]> To: Sent: Friday, March 23, 2007 10:40 PM Subject: [iText-questions] Underlining text with extra whitespace at end? Hello, I am trying to recreate a paper form with iText and pdf. In the

[iText-questions] Underlining text with extra whitespace at end?

2007-03-23 Thread Gray Jones
Hello, I am trying to recreate a paper form with iText and pdf. In the paper form there are fields where the user is expected to enter data. When we display the form with the data we like to underline the data. However we want the underline to extend a fixed distance regardless of what the u

Re: [iText-questions] setLeading in RTF document

2007-03-23 Thread Mark Hall
On Friday 23 March 2007 10:39, mékafi wrote: > I would like to know if the setLeading(...) method works when creating a > RTF document. I've looked at the CVS history and setLeading should be supported. > I have this code to do it : > Phrase phDescriptionTexte = new Phrase("text", > FontFactory.ge

Re: [iText-questions] Confused about List Options

2007-03-23 Thread Paulo Soares
In Acrobat menu: Tools->Advanced Editing. Paulo - Original Message - From: "Jack Mitchell" <[EMAIL PROTECTED]> To: Sent: Friday, March 23, 2007 8:00 PM Subject: Re: [iText-questions] Confused about List Options > > Sorry for the dumb question but I thought that Designer Forms was givi

Re: [iText-questions] Confused about List Options

2007-03-23 Thread Jack Mitchell
Sorry for the dumb question but I thought that Designer Forms was giving me a AcroForm. How can I create just an AcroForm? Paulo Soares wrote: > > > - Original Message - > From: "Jack Mitchell" <[EMAIL PROTECTED]> > To: > Sent: Thursday, March 22, 2007 9:00 PM > Subject: [iText-ques

Re: [iText-questions] Jtable2PDF: missing column names and pagination

2007-03-23 Thread Agarwal, Sunil [CIB-IT]
Thanks Bruno. Another Q, how do I print this Graphics2D? I think I cannot do jTable2.print(g2). Agarwal, Sunil [CIB-IT] wrote: > Is this the example you are referring to? Yes, that's the one. But as you'll be working with Graphics2D, you'll need to do something like this: PdfContentByte cb = wr

Re: [iText-questions] CCITTFaxDecode support

2007-03-23 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Brian McKeever > Sent: Friday, March 23, 2007 5:56 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] CCITTFaxDecode support > > >> I notice that there is a TIFFFa

Re: [iText-questions] CCITTFaxDecode support

2007-03-23 Thread Brian McKeever
>> I notice that there is a TIFFFaxDecoder class for reading in compressed >> Tiff files. How hard would it be to get one to call the other? Are >> the algorithms identical or just similar? Is there anything I should >> know before I try to implement it myself? > GetStreamBytes() is there to de

[iText-questions] How to open a PDF in append mode

2007-03-23 Thread magesh rathnam
Hi all, I have to open a PDF in append mode. Can someone let me know how can it be done? Basically we have a PDF to which we need to add some more information. So we need to know how to open a PDF in a append mode. PdfWriter.getInstance opens a pdf in a rewrite mode only. Pls let me know if I'm

Re: [iText-questions] CCITTFaxDecode support

2007-03-23 Thread Paulo Soares
GetStreamBytes() is there to decode content streams, not image streams. You can call GetStreamBytesRaw() and apply whatever decoding algorithms you want to it. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Brian McKeever > Sent: Friday,

[iText-questions] CCITTFaxDecode support

2007-03-23 Thread Brian McKeever
Is there any reason that iText doesn't include a decoder for CCITTFaxDecode filters? (I'm looking at PdfReader.GetStreamBytes(PRStream, RandomAccessFileOrArray)). I notice that there is a TIFFFaxDecoder class for reading in compressed Tiff files. How hard would it be to get one to call the other?

Re: [iText-questions] "SigDict / Contents illegal data" when signingpdfs

2007-03-23 Thread Paulo Soares
Works for me. What code are you using to sign? Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jürgen Herrmann > Sent: Friday, March 23, 2007 4:58 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] "SigDict / Cont

Re: [iText-questions] How to open a PDF in append mode

2007-03-23 Thread Bruno Lowagie
magesh rathnam wrote: > Hi all, > >I have to open a PDF in append mode. Can someone let me know how can > it be done? Basically we have a PDF to which we need to add some more > information. So we need to know how to open a PDF in a append mode. > PdfWriter.getInstance opens a pdf in a rewr

[iText-questions] "SigDict / Contents illegal data" when signing pdfs

2007-03-23 Thread Jürgen Herrmann
hello! i want to sign our pdf invoices with the itext library... the problem is, that adobe acrobat reader complains about illegal data in the signature - please see the screenshot here: http://t5.by/.coding/java_pdf_sign_problem/pdf-sign-errors.png used code for the signing method can be found h

[iText-questions] How to open a PDF in append mode

2007-03-23 Thread magesh rathnam
Hi all, I have to open a PDF in append mode. Can someone let me know how can it be done? Basically we have a PDF to which we need to add some more information. So we need to know how to open a PDF in a append mode. PdfWriter.getInstance opens a pdf in a rewrite mode only. Pls let me know if I'm

[iText-questions] list filtering (was: Re: Jtable2PDF: missing column names and pagination)

2007-03-23 Thread Stuart Jansen
On Wed, 2007-03-21 at 09:42 +0100, Bruno Lowagie (iText) wrote: > PS: this question was sent to me personally with > [iText-questions] in the Subject line. This is confusing. > Please sent questions to the list. If your MUA supports filtering on headers, I would suggest filtering on the List-Id he

Re: [iText-questions] File Attachments and their hotspot links in a PDF

2007-03-23 Thread Harakiri
--- Bruno Lowagie <[EMAIL PROTECTED]> wrote: > > case how do you put together the FormField with an > > annotation without using GotoE module? > > Don't assume I have followed or remember the > conversation > you have had on the list. Are you saying you want a > GoToE > action without using GoToE?

Re: [iText-questions] How to set number of characters per inch and number of lines per inch

2007-03-23 Thread Bruno Lowagie
Kalathuru, Madhu wrote: > Please direct me how should I go about doing it using iText library Are you talking about a monospaced font? If not, setting the number of characters per inch seems odd. br, Bruno - Take Surveys. Ear

[iText-questions] How to set number of characters per inch and number of lines per inch

2007-03-23 Thread Kalathuru, Madhu
Hello All, I have a requirement to set the number of characters per inch and lines per inch and based on which I should choose the right font and compute the page margins as below: --- The font size must be picked to produce the requested horizontal pitch (charactersPerInch). If the

Re: [iText-questions] File Attachments and their hotspot links in a PDF

2007-03-23 Thread Bruno Lowagie
Harakiri wrote: > Thank you for this link - however it seems the target > actions seem to require a GotoE Module which is not > installed in Adobe 6 - is this feature only available > for Adobe 7 ? As described in the PDF Reference, GoToE was introduced in PDF 1.6 (Acrobat 7 and Adobe Reader 7).

Re: [iText-questions] Encryption

2007-03-23 Thread Mustafa Incel
Hi Bruno, Thank you very much!! it works! Is there a static variable for 0? Greetings, Mustafa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share yo

Re: [iText-questions] Overlay a transparent gif on another image

2007-03-23 Thread Paulo Soares
Don't send a big image. This is just to be able to reproduce the problem and find a solution, you don't have to sent what you use in production. You can also post a link to the file somewhere. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behal

Re: [iText-questions] File Attachments and their hotspot links in a PDF

2007-03-23 Thread Harakiri
Hello, --- Bruno Lowagie <[EMAIL PROTECTED]> wrote: > Please read the Wiki: > http://www.lowagie.com/itextwiki/doku.php/collections:kubrick Thank you for this link - however it seems the target actions seem to require a GotoE Module which is not installed in Adobe 6 - is this feature only availa

Re: [iText-questions] Encryption

2007-03-23 Thread Bruno Lowagie
Mustafa Incel wrote: > Hi, > > If I encrypt the pdf file using the following code it works, the form doesn't > allow me to fill the form. This is GOOD. > > stamper.setEncryption(null, null, PdfWriter.AllowFillIn, > PdfWriter.ENCRYPTION_RC4_40); Read page 93 of the book: AllowFillIn will only hav

[iText-questions] Encryption

2007-03-23 Thread Mustafa Incel
Hi, If I encrypt the pdf file using the following code it works, the form doesn't allow me to fill the form. This is GOOD. stamper.setEncryption(null, null, PdfWriter.AllowFillIn, PdfWriter.ENCRYPTION_RC4_40); But if use stamper.setEncryption(null, null, PdfWriter.AllowFillIn, PdfWriter.ENCRYP

Re: [iText-questions] File Attachments and their hotspot links in a PDF

2007-03-23 Thread Bruno Lowagie
Bruno Lowagie wrote: > Please read section 15.3.3 of 'iText in Action' > titled 'Adding actions'. Here's a PDF with fields that change appearances and even the content of other fields; all these actions are triggered by mouse events: http://itext.ugent.be/itext-in-action/examples/chapter15/results

Re: [iText-questions] File Attachments and their hotspot links in a PDF

2007-03-23 Thread Bruno Lowagie
Harakiri wrote: >>> That's possible with an /AA dictionary and trigger > events. > > Can you be a bit more specific please ? Are you > refering to PdfAction class with a Parameter like > PdfName AA_BLUR ? Should i attach that to the > PdfAppearance that is my current hotspot ? Please read s

Re: [iText-questions] File Attachments and their hotspot links in a PDF

2007-03-23 Thread Harakiri
Thank you for your reply. You wrote : >>That's possible with an /AA dictionary and trigger events. Can you be a bit more specific please ? Are you refering to PdfAction class with a Parameter like PdfName AA_BLUR ? Should i attach that to the PdfAppearance that is my current hotspot ? I've also

Re: [iText-questions] Overlay a transparent gif on another image

2007-03-23 Thread Sverre Moe
Tried to send a working java file with the images. But the image is to big to send, as I got a feilure to send message back. 2007/3/23, Paulo Soares <[EMAIL PROTECTED]>: That's not a standalone example and you didn't attach any images. I want something that can be run directly from a main() in

Re: [iText-questions] Vertical alignment goes after flattening a form.

2007-03-23 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mustafa Incel > Sent: Friday, March 23, 2007 12:14 PM > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions]Vertical alignment goes after > flattening a form. > > But my pr

Re: [iText-questions] Vertical alignment goes after flatten ing a form.

2007-03-23 Thread Mustafa Incel
But my problem is not different version of Acrobat. If I fill the form with acrobat and print it as a pdf file, acrobat flattens the form without problem. I have tried to check the source code to find out place where the form is flattened (PdfStamperImpl.java). But couldn't see anything related to

Re: [iText-questions] Vertical alignment goes after flattening a form.

2007-03-23 Thread Paulo Soares
See http://itext.ugent.be/library/question.php?id=54. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mustafa Incel > Sent: Friday, March 23, 2007 10:59 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Vertical

Re: [iText-questions] Overlay a transparent gif on another image

2007-03-23 Thread Paulo Soares
That's not a standalone example and you didn't attach any images. I want something that can be run directly from a main() in console mode. You may have to modify your code to work this way. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf O

Re: [iText-questions] Overlay a transparent gif on another image

2007-03-23 Thread Sverre Moe
Here it goes: some meaningless code omitted. PdfWriter writer = PdfWriter.getInstance(document, response.getOutputStream ()); document.open(); Paragraph title = new Paragraph ("Some Text", new Font(Font.TIMES_ROMAN, 40, Font.BOLD)); tittel.setAlignment (Element.ALIGN_CENTER); document.add(title)

[iText-questions] Vertical alignment goes after flattening a form.

2007-03-23 Thread Mustafa Incel
Hi, I have a PDF from created by adobe designer. After filling the form with iText, if I save the form as it is everything is good. If I save the form after flattening, the vertical alignment of form fields are gone. I am using the following code piece to fill the form. Any help will be appreciate

[iText-questions] setLeading in RTF document

2007-03-23 Thread mékafi
Hi, I would like to know if the setLeading(...) method works when creating a RTF document. I tried to write a text in a cell in a table and I want to minimize the space between 2 lignes but there is no effect on the result (seems to be the default leading, 1.5 times the size font). I have this cod

Re: [iText-questions] Overlay a transparent gif on another image

2007-03-23 Thread Paulo Soares
Prepare a small but complete standalone example that includes the image, don't bother about the gif for now. Attach the code, the image and the gif to the message. I'll tell you how to put the gif in the right place. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL P

Re: [iText-questions] Overlay a transparent gif on another image

2007-03-23 Thread Sverre Moe
Whatever I do I can't seem to get it right. I'm now using ColumnText to add both the text, tables and images. But I still get the previous problem when adding the images as absolute positions. PdfContentByte cb = writer.getDirectContent(); ColumnText ct = new ColumnText(cb); ct.setSimpleColumn(0f

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2007-03-23 Thread Bruno Lowagie
GIOVA wrote: > Itext group: > > I didn't make me clear, in this issue. > I am able to create a proper PDF File, from my JAVA procedure. OK, so iText is doing fine. > However, I need to upload this procedure to ORACLE, involving the data > stored in the database. > The JAVA code is saved as an OR

Re: [iText-questions] File Attachments and their hotspot links in a PDF

2007-03-23 Thread Bruno Lowagie
>> also, is it possible to access attachments via >> javascript ? i.e. have the attachment hidden and just >> issue an myattachment.click() event to trigger the >> save as dialog. > No idea. I've searched for "attachment" in the Acrobat Scripting Reference. The closest thing I found is "Data Obje

Re: [iText-questions] PDFReader GetCropBox

2007-03-23 Thread Bruno Lowagie
Alejandro wrote: > > PDFReader.GetCropBox method gives real and cropped horizontal and > vertical dimensions, but it appearently doesn't provide information on > relative position of cropped frame. > imagen.setAbsolutePosition(rect2.height(),rect2.width()); You are asking rect2 for its height

Re: [iText-questions] PDF/X and PDF/A compliant when reading and writing a PDF

2007-03-23 Thread Bruno Lowagie
YvesF wrote: > Is that possible to check if a page is PDF/x or PDF/A compliant ? No, that's not possible with iText. br, Bruno - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you

[iText-questions] PDF/X and PDF/A compliant when reading and writing a PDF

2007-03-23 Thread YvesF
Hello, I need to read a PDF and write it with adding some informations using this code : ... page = writer.getImportedPage(reader, Offset + 1); ... cb.addTemplate(page, 0, 0); ... cb.beginText(); ... cb.endText(); ... Is that possible to check if a page is PDF/x or PDF/A compliant ? I tried and