Re: [iText-questions] Help Bruno Out !

2007-01-19 Thread Bruno Lowagie (iText)
robert engels wrote: I have monitored this list for quite a while now, and I am amazed by the audacity of many people. ;-) I'm not pleading for more stupid questions on the list, and although I am sometimes harsh on people, I want to add two things: (1) Developers have off days too. I don't

Re: [iText-questions] Exception thrown when I add WMF image on PdfContentByte

2007-01-19 Thread Shoaib Gauhar
I have downloaded the code from CVS and its working perfectly. Do you think that this change (WMF issue) might effect any other part of your library??? BTW: I dont know how you people manage these things (and provide us fixes immediately) but you are doing a tremendous job. Thanks Shoaib ---

Re: [iText-questions] if my figures over page

2007-01-19 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: this is the error page hi: is there any method can do when the figure's size is bigger than page's space those figures ,i put them on table,how can i do if the figure's position ae the page end,it will push to next page by itext is there any method let the

Re: [iText-questions] Regarding watermark images.........

2007-01-19 Thread Bruno Lowagie (iText)
Swapna wrote: Hi Friends , I am facing problem with watermark images in pdf. My query: Suppose my pdf report contains 10 pages ... i want to display watermark image in five pages and the rest 5 pages shound not contain that watermark image is it possible to do that.. if

[iText-questions] crash dump

2007-01-19 Thread [EMAIL PROTECTED]
Hi, I occured an error when use Itext library in a web application. I used IBM WebSphere Studio Application Developer v5.1.1 for Java IDE and JBoss as Application Server When I run application the system crash when execute the following code: Document document = new Document(PageSize.A4);

[iText-questions] Playing with tabs in RTF

2007-01-19 Thread Sebastien Arbogast
Is there a way to play with tab and tab stop marks with iText on an RTF document? For example, I've got one line with a chunk of text, a tab and another chunk of text, and I would like the first text to be aligned left, and the second one to be aligned right. I can do that in Word by creating tab

Re: [iText-questions] Exception thrown when I add WMF image on PdfContentByte

2007-01-19 Thread Bruno Lowagie (iText)
Shoaib Gauhar wrote: I have downloaded the code from CVS and its working perfectly. Do you think that this change (WMF issue) might effect any other part of your library??? This particular fix won't effect another part of the library, BUT some other changes that were made in the last month

Re: [iText-questions] crash dump

2007-01-19 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: Generating crash dump: C:\Documents and Settings\dibari\j9.dmp Can anyone tell me what's the cause? Not if you don't tell us what is logged in the dump file C:\Documents and Settings\dibari\j9.dmp And even then: I doubt it if iText is the cause of your crash dump. I

Re: [iText-questions] Overlay text across multiple table cells

2007-01-19 Thread Bruno Lowagie (iText)
Mike Buchanan wrote: It does get frustrating when I can pump in a few hundred lines of code a day but then it sometimes takes two or three days to figure out how to do just one function. I studied architecture. As a developer I'm a Mies Van der Rohe adept: Less is More. I'd rather spend a week

Re: [iText-questions] Overlay text across multiple table cells

2007-01-19 Thread Bruno Lowagie (iText)
Bruno Lowagie (iText) wrote: Then code a 1000 lines a day for two weeks, ending up with a solution that is almost impossible to maintain. I meant instead of coding 1000 lines a day. br, Bruno - Take Surveys. Earn Cash.

Re: [iText-questions] Playing with tabs in RTF

2007-01-19 Thread Mark Hall
Hi, use the http://itext.ugent.be/library/api/com/lowagie/text/rtf/text/RtfTab.html http://itext.ugent.be/library/api/com/lowagie/text/rtf/text/ RtfTabGroup.html classes for that. Greetings, Mark On 19.01.2007, at 08:10, Sebastien Arbogast wrote: Is there a way to play with tab and tab

[iText-questions] tiff2pdf with jbig2

2007-01-19 Thread beppecosta
At present on our iSeries(as400) we use iText/tiff2pdf to create pdf from scanned tiff documents. We produce thousands of documents per day and this works perfecty. However because these pdf's should be archived on optical disks and kept for one year (and because optical media cost a lot) we are

Re: [iText-questions] Playing with tabs in RTF

2007-01-19 Thread Sebastien Arbogast
Thanks a lot, that's exactly what I was looking for! 2007/1/19, Mark Hall [EMAIL PROTECTED]: Hi, use the http://itext.ugent.be/library/api/com/lowagie/text/rtf/text/RtfTab.html http://itext.ugent.be/library/api/com/lowagie/text/rtf/text/ RtfTabGroup.html classes for that. Greetings, Mark

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread Paulo Soares
Show us the Python script and I'll tell you something about it. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of beppecosta Sent: Friday, January 19, 2007 10:27 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions]

[iText-questions] Hanging tabs in RTF

2007-01-19 Thread Sebastien Arbogast
I've got yet another question related to tabs in RTF. I have a paragraph which starts with a number, then a tab and a text. When the text is longer than the line, it is wrapped and the next lines are aligned with the number, instead of being aligned with the first line. Here is an example of what

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread beppecosta
This is the Python script. --- import sys import re import struct import glob import os # This is a very simple script to make a PDF file out of the output of a # multipage symbol compression. # Run ./jbig2 -s other options image1.jpeg image1.jpeg ... # python pdf.py out.pdf class

Re: [iText-questions] Cell data not displayed in nested table

2007-01-19 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: Here is the class: http://www.datavirtue.com/Software/dev/PDFLabels.java I have looked at the code, and I can see that TEST TEXT is added to the PDF, but for one reason or another, the text is added OUTSIDE the visible area of the page. I tried debugging, but your

Re: [iText-questions] Hanging tabs in RTF

2007-01-19 Thread Mark M. Hall
On Friday 19 January 2007 10:51, Sebastien Arbogast wrote: When I place my cursor right before the beginning of the second line and press Tab, I get that very same result. It seems to be what Word calls hanging tab. Is there a way to reproduce that feature with iText? Not directly. You could

Re: [iText-questions] Cell data not displayed in nested table

2007-01-19 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: Here is the class: http://www.datavirtue.com/Software/dev/PDFLabels.java I downloaded your code, made some small corrections in order to understand it, and executed it. The words TEST TEXT are added to the PDF, but OUTSIDE the visible area of the page. I have no idea

[iText-questions] PDF Encryption Options

2007-01-19 Thread Tallat Hussain
Hi, We are facing some issues related to Encryption options for PDF documents. If we apply the option Allow contents to be modified or Change the Document, then automatically Document Assembly will be allowed, but we did not explicitly apply the document assembly setting. Is it right that if

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread Paulo Soares
Clever script. I'll need the jbig2 files and the resulting PDF to do some tests. You can send it to me privately if you don't want to post it to the world. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of beppecosta Sent: Friday, January 19,

[iText-questions] how to get a jFreeChart Chart in Chunk

2007-01-19 Thread Tom van Ees
Hi, I am creating a pdf file consisting of chapters, sections and subsections. Now I want to add an jFreeChart Chart into a chapter or a section. When I use getDirectContent(), the image appears in the pdf, but not in the chapter I would like to have it appear. It appears in ahead of my chapter.

Re: [iText-questions] PDF Encryption Options

2007-01-19 Thread Paulo Soares
iText only sets the bits, it's up to Acrobat to allow or not allow. There's no issue here. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tallat Hussain Sent: Friday, January 19, 2007 11:22 AM To: itext-questions@lists.sourceforge.net

[iText-questions] Problem with 1.4.7 iText version Image class in a rtf document

2007-01-19 Thread Manuel Español
Hello all, I have a web application. With itext version 1.2 the following code works fine: Document document; HttpServletRequest request; Table table=new Table(1); URL url=new URL(request.getRequestURL()+/images/tristNegre.bmp); Image image= Image.getInstance(url); Chunk

[iText-questions] Cell padding in RTF

2007-01-19 Thread Sebastien Arbogast
Isn't it possible to set paddings on RTF tables? Because I've seen examples using PdfPTable but I can't find any way to do it on a simple Table or RtfTable. -- Sébastien Arbogast http://www.sebastien-arbogast.com - Take

Re: [iText-questions] Cell padding in RTF

2007-01-19 Thread Mark M. Hall
On Friday 19 January 2007 15:31, Sebastien Arbogast wrote: Isn't it possible to set paddings on RTF tables? Because I've seen examples using PdfPTable but I can't find any way to do it on a simple Table or RtfTable. Have you not found any methods, or do they not work? If you haven't found any

Re: [iText-questions] Overlay text across multiple table cells

2007-01-19 Thread Mike Buchanan
This works! Thanks Bruno. That was the last piece to the puzzle. Now we plan to go live with Electronic Invoicing next week. I just had to change the custom event handler class to accept the text as a parameter and I was in business. That's a good solution to remember because I'm sure, like our

Re: [iText-questions] (no subject)

2007-01-19 Thread Tandon, Amrish
Any updates? -Original Message- From: Tandon, Amrish Sent: Thursday, January 18, 2007 12:03 PM To: 'Post all your questions about iText here' Subject: RE: [iText-questions] (no subject) Let me clarify. The PdfCopyFields and PdfStamper are working fine. It is everything after the

[iText-questions] Color Shading

2007-01-19 Thread Zoltan Magyarosi
Hi, I have some text and I would like to make the background of it a shaded color. I'm using PdfPTable, PdfPCell and Paragraph. Any help is welcome. Thank you, zoltan - Take Surveys. Earn Cash. Influence the Future of

Re: [iText-questions] creating new document where every page includes contents (text and form fields) from pdf template file

2007-01-19 Thread Gatewood, Paul (RSIS)
I have modified the loop which calls go() until the ColumnText has no more text. I am inserting a new page as needed with insertPage(). Afterward, I get a new cb by calling stamper.getOverContent(pageNo) and call the ColumnText setCanvas() method with this cb. However, within the loop, when I

Re: [iText-questions] (no subject)

2007-01-19 Thread Paulo Soares
Read the tutorial and then tell me from where you got the code. It doesn't make sense. Paulo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tandon, Amrish Sent: Friday, January 19, 2007 4:24 PM To: Post all your questions about iText here

Re: [iText-questions] tiff2pdf with jbig2

2007-01-19 Thread Paulo Soares
Here's the code: Document.compress = false; RandomAccessFile rf = new RandomAccessFile(c:\\output., r); rf.seek(11); int width = rf.readInt(); int height = rf.readInt(); rf.seek(0); byte[] pg = new byte[(int)rf.length()]; rf.readFully(pg); rf.close(); rf = new RandomAccessFile(c:\\output.sym,

Re: [iText-questions] Problem with fitsPage

2007-01-19 Thread Bruno Lowagie (iText)
Markus Schwab wrote: Hi In the example below the method fitsPage() seems not to work correctly. Has anyone an idea why fitsPage still returns true even end of page is already reached? I've reproduced the problem, but it's beyond fixing. I may even decide to remove all the fitsTable methods

Re: [iText-questions] (no subject)

2007-01-19 Thread Tandon, Amrish
I have based this code from sections 2.3.1 and 2.3.2 of your book. Also it would make sense to me if you told me what part did not make sense. Also please understand I am new to iText. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent:

Re: [iText-questions] (no subject)

2007-01-19 Thread Bruno Lowagie
Tandon, Amrish wrote: I have based this code from sections 2.3.1 and 2.3.2 of your book. Wow, I wrote that book, but my examples work, and I'm not responsible if you don't follow the advice that is given on this mailing list. Also it would make sense to me if you told me what part did not

Re: [iText-questions] (no subject)

2007-01-19 Thread Paulo Soares
Copying the book code without understanding it won't get you anywhere. It should be: ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfCopyFields copy = new PdfCopyFields(baos); copy.addDocument(new PdfReader(c:\\coverpage.pdf)); copy.addDocument(new PdfReader(c:\\BO_INTRO.pdf));

Re: [iText-questions] (no subject)

2007-01-19 Thread Tandon, Amrish
I don't think tried running the code I sent. The code with the reinitializing of the ByteArrayOutputStream and without the reinitializing of the ByteArrayOutputStream returns the same result i.e. the concatenated document with the updated form field. This is what was confusing me. The problem

Re: [iText-questions] Cell data not displayed in nested tables

2007-01-19 Thread seanka
I have made extensive changes to this class to make looking at this thing easier. I would greatly appreciaate if you would take another look. The behaviour is rather strange. I have read the book on nested tables and it appears as if my simple nested table should work. The (revised)

Re: [iText-questions] creating new document where every page includes contents (text and form fields) from pdf template file (found the problem)

2007-01-19 Thread Gatewood, Paul (RSIS)
The reason the text in the ColumnText bidiline object was not decreasing is that I was not calling setYLine(). I had not noticed that this is pointed out on p. 198: As long as more text is left in the column, you create a new page and reset the Y position of the column ... Now that I am calling

Re: [iText-questions] Color Shading

2007-01-19 Thread Bruno Lowagie
Zoltan Magyarosi wrote: Hi, I have some text and I would like to make the background of it a shaded color. I'm using PdfPTable, PdfPCell and Paragraph. Any help is welcome. DO you want the whole cell have the same background colore or just the text Chunk? Both objects have a method

Re: [iText-questions] Cell data not displayed in nested tables

2007-01-19 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: http://www.datavirtue.com/Software/dev/PDFLabels.java Thanks to anyone who can help. I'll have a look at it as soon as I find the time, although I wouldn't use PdfPTable in this case. I'd use cb.moveTo and cb.lineTo statements to draw the lines and ColumnText to add

Re: [iText-questions] Color Shading

2007-01-19 Thread Zoltan Magyarosi
I had no problem using background colors. The issue raised when I wanted the cell to have a shaded background color(let's say from orange to white) Thank you, zoltan On 19-Jan-07, at 2:16 PM, Bruno Lowagie wrote: Zoltan Magyarosi wrote: Hi, I have some text and I would like to make the

Re: [iText-questions] Color Shading

2007-01-19 Thread Bruno Lowagie
Zoltan Magyarosi wrote: I had no problem using background colors. The issue raised when I wanted the cell to have a shaded background color(let's say from orange to white) Oh OK, that's explained in chapter 11 of the book. Look for PdfShading. br, Bruno

Re: [iText-questions] Regarding Watermark images.........

2007-01-19 Thread seanka
And I was manually counting pages this whole time.. .. You have to manually count pages if you want to show someting like this Page 5 of 21 etc.. Sean - Take Surveys. Earn Cash. Influence the Future of IT Join

[iText-questions] Adding multiple pages while cropping only gutter

2007-01-19 Thread Dean Krueger
Hi. I followed the tutorial on taking two existing PDF and put them into one PDF as a single page spread. But, I have two single page PDF's with registration marks on both sides, when combining them I need to crop of about 1/8 of an inch on right side of side of page one and crop an 1/8 off the

Re: [iText-questions] creating new document where every page includes contents (text and form fields) from pdf template file

2007-01-19 Thread Gatewood, Paul (RSIS)
I have much of what I was trying to do working, but am still missing some form fields. I will first explain the scenario, trying to be clear. I have a template pdf with 5 pages. The first 4 pages have normal form fields. By calling them normal I mean The runtime values for all such fields are

[iText-questions] Alpha and blending colorspace

2007-01-19 Thread Eliot Cline
Hello All, After many months of lurking on this mailing list, I am going to submit myself as a willing victim for whoever might wish to bark at my potentially naive questions. Hopefully get my questions answered at the same time! I have been developing an itextsharp app that produces

Re: [iText-questions] Cell data does not display in nested tables

2007-01-19 Thread seanka
I found it. A line from my first post: add(new PdfPCell(t)); - NOT GOOD!! I was putting my table INTO a cell and then placing THAT cell in the table. I must say, this does not work. I was thinking Element when I did that. In other words: I went from this - (you can ignore most

[iText-questions] PDF - Print to File

2007-01-19 Thread Manoj
Hi All, Would like to know, whether using iText can I print a pdf file using the print to file option. If yes will it possible for u guys to guide me to achieve the same. Thanx in advance for the replies. -- Regards, Manoj

[iText-questions] Blending colorspace

2007-01-19 Thread Eliot M Cline
Hello All,After many months of lurking on this mailing list, I am going to submit myself as a willing victim for whoever might wish to bark at my potentially naive questions. Hopefully get my questions answered at the same time!I have been developing an itextsharp app that produces