[iText-questions] How to clip image

2008-02-27 Thread 熊田貢
Hello all, I'd like to know how to clip an imported image. I tried the following code, but nothing happened. - Image im = Image.getInstance("clipTest.jpg"); cb.addImage(im, im.plainWidth(), 0, 0, im.plainHeight(), 0, 0); cb.moveT

Re: [iText-questions] overlay text onto image

2008-02-27 Thread wasegraves
-- Original message -- From: ahnf <[EMAIL PROTECTED]> > > Hi, > Is there a way via iText to overlay some text OVER an image within a PDF? > > thanks! You're very welcome. Yes. It's really very easy to do this, as long as the PDF has permissions that allow it to b

Re: [iText-questions] '?' appears in generated RTF document for '\r'

2008-02-27 Thread Mark Hall
Hi, line-breaks should work with just the \n. The RtfWriter2 doesn't know what to do with a \r, so Word then displays the ?. Just remove them and it shouldn't be a problem. Mark On Wednesday 27 February 2008, Me Simple wrote: > HI, > > I recently upgraded from iText 1.3 to iText 2.0.8 version.

Re: [iText-questions] Split RTFTables dynamically based on height between pages

2008-02-27 Thread Mark Hall
Hi, the answer to your question is No and the reason is that RTF is a text-description and not a rendered format. http://itextdocs.lowagie.com/tutorial/rtf/index.php Mark On Wednesday 27 February 2008, Me Simple wrote: > Hi, > > I am creating a RTF document using IText 2.0.8 version. I am inse

Re: [iText-questions] acroform and embedded fonts

2008-02-27 Thread Erik R
Hi Paulo, Understood. But if I have access to all fonts used, how can I make sure they are embedded? I have tried setting the DefaultEmbedding of FontFactoryImp to true. Where does iText find the font source? Regards, Erik You can embedd the font Helvetica if you buy it from Adobe. Paulo >

[iText-questions] Split RTFTables dynamically based on height between pages

2008-02-27 Thread Me Simple
Hi, I am creating a RTF document using IText 2.0.8 version. I am inserting new RTFtables inside a loop and each RTFTable has variable number of rows. The default behaviour of iText is if the table height increases(when more rows are added dynamically) beyond the current page height, table spills

[iText-questions] '?' appears in generated RTF document for '\r'

2008-02-27 Thread Me Simple
HI, I recently upgraded from iText 1.3 to iText 2.0.8 version. I am generating a RTF document with tables. However, I get a '?' characted for every '\r' character encounterd in the input string. The same code used to work for iText 1.3 version. Attaching the generated RTF and the code. Kindly h

[iText-questions] How Can I remove a PdfPageEvent ?

2008-02-27 Thread Elias Chaves de Mello
Hello, If I have 2 or more PdfPageEvent, How I remove only one of them ? MyPageEvents event = new MyPageEvents (); MyPageEvents event1 = new MyPageEvents1(); MyPageEvents event2 = new MyPageEvents2(); writer.setPageEvent ( event ); writer.setPageEvent ( event1 ); writer.setPageEvent (

[iText-questions] I would like to dynamically produce a PDF file using iText

2008-02-27 Thread Matthews Estrice
Dear ... I would like to find out how can I code the following code in iText to produce a PDF file? Scriptlet <%! /**getRandom Color function returns a hexadecimal color**/ String getRandomColor () { int red, green , blue; red = (int)(Math.random() * 255); gree

Re: [iText-questions] message at silent print since last acrobat aeader update

2008-02-27 Thread Peter van Raamsdonk
Great! I will get on it immediately. I've had a similar experience with the sandbox principle in Access 2003 (asking the user if the database is safe to open) and self signing worked perfectly. Thx, Peter From: [EMAIL PROTECTED]: Mon, 25 Feb 2008 15:24:24 -0500To: [EMAIL PROTECTED]: Re:

Re: [iText-questions] Truncation of text fields in iTextSharp PDF vs FDF

2008-02-27 Thread JuliaTu
Thanks Leonard. Since having editable text is no longer allowable, I'm amending the pdf templates instead. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 26 February 2008 20:26 To: itext-questions@lists.sourceforge.net Subject: i

Re: [iText-questions] Question about annotations and animations

2008-02-27 Thread matthews estrice
Hi Leonard, I would like to write the follwing code using iText JSP syntax: Scriptlet <%! /**getRandom Color function returns a hexadecimal color**/ String getRandomColor () { int red, green , blue; red = (int)(Math.random() * 255); green = (int)(Math.random() * 255); blue = (int)(Math.

Re: [iText-questions] Question about annotations and animations

2008-02-27 Thread Leonard Rosenthol
The location of the "popup" is controlled by the Rect of the associated PopUp annotation. If none is provided - then Acrobat gets to choose. Leonard On Feb 27, 2008, at 2:46 AM, arthur m wrote: > > Hello, > > I have a little annoying issue with annotations. I have a little > project where

Re: [iText-questions] iText - Problem in filling Ukrainian text in textfields

2008-02-27 Thread Paulo Soares
Already asked and already answered. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of abhishek agarwal > Sent: Wednesday, February 27, 2008 8:53 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] iText - Problem in

[iText-questions] iText - Problem in filling Ukrainian text in text fields

2008-02-27 Thread abhishek agarwal
Hi All, I have created template forms using Adobe professional containing a number of text fields with font set to one of the Ukrainian fonts. I now stamp the pdf template with data at run time but the Ukranian letters are lost and not printed when the stamping is done and only English let

Re: [iText-questions] RTF: Page Border

2008-02-27 Thread Mark Hall
I am pretty certain that you will manually have to add it to each page. Unfortunately it is a hack, and as such doesn't work very cleanly. If you don't know where exactly the new page starts, a rough guess should also work. Regards, Mark On 27 Feb 2008, at 06:35, Anil Kumar wrote: > Thanks

[iText-questions] Problem PdfPTable inside a List

2008-02-27 Thread Eric Summkeller
I add a PdfTable inside a List and add this List into another PdfPCell. The error is that the table inside the list is missing. The second problem is, that I have to add an empty Phrase in front of the table because no number is created. Any ideas what I could do? Code example: document.open()

[iText-questions] Question about annotations and animations

2008-02-27 Thread arthur m
Hello, I have a little annoying issue with annotations. I have a little project where I have several links on one pdf page (actually some titles), and beside every one of them there is a text annotation with some extra info about the link. It works fine with adding annotations and placing them,