Re: [iText-questions] Complaint about itext-src-1.4.zip

2006-03-28 Thread Paulo Soares
To build with jdk 1.3 you'll also need to uncomment a line and comment another line in PdfGraphics2D. Paulo - Original Message - From: "bruno" <[EMAIL PROTECTED]> To: "Christopher Randall" <[EMAIL PROTECTED]>; Sent: Wednesday, March 29, 2006 8:06 AM Subject: Re: [iText-questions] Co

Re: [iText-questions] RE: Adding a new pdf page

2006-03-28 Thread bruno
Dilan wrote: stamper.close(); The above method closes the outputstream! You can't add anything to the outputstream after stamper.close(); If you manage to do this somehow, the resulting PDF will be corrupt. I was wondering, how can I add extra pages to this

Re: [iText-questions] Small Text/Big Graphics/One Fell Off

2006-03-28 Thread bruno
Chris Dole wrote: Hello, I have a test case where I have six graphics that are nearly the height of the page and sparse text. I like the fact that iText tries to move the graphics around vertically to fit things better. A former employer that did something similar in their product used to ha

Re: [iText-questions] Arabic text together with images in pdf

2006-03-28 Thread bruno
Swetha Sivaram wrote: I'm basically trying to print some questions and the corresponding answers for each question. The question and each of the answer options might have pictures associated with them. I'd like to first print the question text followed by the picture for the question (if prese

Re: [iText-questions] Complaint about itext-src-1.4.zip

2006-03-28 Thread bruno
Christopher Randall wrote: I just downloaded the iText 1.4 SRC zip file, and was planning on building the jar file from source since the execution environment we're running in uses JDK 1.3. I expected to be able to run "ant jar" and have the resulting JAR file immediately available. Apparently,

Re: [iText-questions] The first example 'HelloWorld'

2006-03-28 Thread bruno
Karumanchi, Koti wrote: Hi, I just downloaded and trying to create the first PDF using the example HelloWorld. I am trying to use Eclipse as my editor. I imported iText-1.4.jar into Eclipse. “import com.lowagie.text.pdf.PdfWriter;” is giving me error saying that the object can not be resol

[iText-questions] Re: Xref Table

2006-03-28 Thread bruno
Segev, Eli wrote: I am copying one PDF file to another and then use the new PDF as input for some other software - ImageMagick. This software issues these warnings: Warning: File has an invalid xref entry: 2. Rebuilding xref table. This file had errors that were repaired or i

Re: [iText-questions] Copying attributes between chunks

2006-03-28 Thread bruno
Paulo Soares wrote: Chunk original = Chunk copy = new Chunk(original); StringBuffer buf = copy.append(""); buf.setLength(0); buf.append("My new text."); Wouldn't it be better to add a clear method to class Chunk? br, Bruno --- This SF

[iText-questions] Complaint about itext-src-1.4.zip

2006-03-28 Thread Christopher Randall
I just downloaded the iText 1.4 SRC zip file, and was planning on building the jar file from source since the execution environment we're running in uses JDK 1.3. I expected to be able to run "ant jar" and have the resulting JAR file immediately available. Apparently, there is an undocumented requ

Re: [iText-questions] Arabic text together with images in pdf

2006-03-28 Thread Swetha Sivaram
bruno wrote:>Why don't you add the image to the ColumnText?>Or why don't you use irregular colums like in the>tutorial example?>(I don't know what's the best solution in your case.>It depends on how you want to position the text>with respect to the image.) I'm basically trying to print some questio

[iText-questions] Small Text/Big Graphics/One Fell Off

2006-03-28 Thread Chris Dole
Hello, I have a test case where I have six graphics that are nearly the height of the page and sparse text. I like the fact that iText tries to move the graphics around vertically to fit things better. A former employer that did something similar in their product used to have fits with graphic

[iText-questions] RE: Adding a new pdf page

2006-03-28 Thread Dilan
Hello, I got this following method; InputStream input = null; try { input = new BufferedInputStream(new FileInputStream("/template- authority.pdf")); } catch (IOException e) { logger.error("Error opening file region",

[iText-questions] The first example 'HelloWorld'

2006-03-28 Thread Karumanchi, Koti
Hi,   I just downloaded and trying to create the first PDF using the example HelloWorld.  I am trying to use Eclipse as my editor.  I imported iText-1.4.jar into Eclipse.  “import com.lowagie.text.pdf.PdfWriter;” is giving me error saying that the object can not be resolved.  Do I need

FW: [iText-questions] File Attachments - without linked Annotation

2006-03-28 Thread Alan
Sorry, pressed the wrong button... -Original Message- From: Alan [mailto:[EMAIL PROTECTED] Sent: Tuesday, 28 March 2006 7:19 AM To: 'Leonard Rosenthol' Subject: RE: [iText-questions] File Attachments - without linked Annotation That's what I figured... But how do I get the dictionaries?

RE: [iText-questions] Bugfix on PdfDocument when work with PdfTable

2006-03-28 Thread Paulo Soares
The CVS has already a fix that may be in conflict with your fix. Please check it out. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Adauto Martins > Sent: Tuesday, March 28, 2006 12:19 AM > To: itext-questions@lists.sourceforge.net > Su

Re: [iText-questions] Copying attributes between chunks

2006-03-28 Thread Daniel Farinha
Oh, the simplicity... :) That's brilliant. Many thanks Paulo. Daniel Paulo Soares wrote: Chunk original = Chunk copy = new Chunk(original); StringBuffer buf = copy.append(""); buf.setLength(0); buf.append("My new text."); --- This

[iText-questions] Re: How to add a table immediatly after another table which covers more than one page?

2006-03-28 Thread HAITAO FU
Hi, guys, I'm using iText in .NET C#. I found if the first table is small on page 1, I can add another tabe immediatly following the first table on page 1. But, if the first table is large and has a few more rows on page 2, then, I can not add a new table immediatly after the first table on page

RE: [iText-questions] Copying attributes between chunks

2006-03-28 Thread Paulo Soares
Chunk original = Chunk copy = new Chunk(original); StringBuffer buf = copy.append(""); buf.setLength(0); buf.append("My new text."); > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Daniel Farinha > Sent: Tuesday, March 28, 2006 3:37 PM > To

[iText-questions] Copying attributes between chunks

2006-03-28 Thread Daniel Farinha
Is there an easy way to copy (text/font related) attributes from a Chunk to another? I tried the Chunk copy constructor, but that obviously copies the textual content as well as the attributes, and I didn't find a way to clear the text from the resulting Chunk. For the time being I'm doing a m

Re: [iText-questions] Arabic text together with images in pdf

2006-03-28 Thread bruno
Swetha Sivaram wrote: However, I do not seem to be able to make the above ColumnText code and document.add(img) to interact with each other, causing the image to be drawn over the Arabic text or the text to be written over the image. Why don't you add the image to the ColumnText? Or why don't

Re: [iText-questions] How to draw a line under document header

2006-03-28 Thread bruno
Kishore Penneru wrote: Hi all, Using PdfContentByte object in page event, I have written rectangle which fulfilled my the page border requirement. I did not find any solutions to write a line under Document header (in first page of multiple pages) which seperates document header to the rest

[iText-questions] How to draw a line under document header

2006-03-28 Thread Kishore Penneru
Hi all,   Using PdfContentByte object in page event, I have written rectangle which fulfilled my the page border requirement. I did not find any solutions to write a line under Document header (in first page of multiple pages) which seperates document header to the rest of the paragraphs and touc

[iText-questions] Arabic text together with images in pdf

2006-03-28 Thread Swetha Sivaram
Hello all   I have the following issue regarding display of Arabic text along with images in a pdf document:   I need to display Arabic text and also some images(which I get from a database) along with the text on a pdf document. This data is however not static and keeps changing.   I add the image

Re: Fwd: [iText-questions] Opening PDF Servlet in New Window

2006-03-28 Thread bruno
Hevn wrote: What happens now is that it opens the new window but it is blank and then it opens the Adobe Reader. Indeed, I see that quite often when I download documents from the net (even with FireFox). It's not very elegant, but I can live with it. I will try to study the links you've given

Fwd: [iText-questions] Opening PDF Servlet in New Window

2006-03-28 Thread Hevn
Yes, the Adobe Reader opens itself. What I'm trying to do is when a user presses a button in a JSP file, it will call another JSP file (which is a controller thing) then that JSP will call the servlet and then open the PDF file in a new browser. What happens now is that it opens the new window but

Re: [iText-questions] Opening PDF Servlet in New Window

2006-03-28 Thread bruno
Hevn wrote: Okay. I have successfully opened a new window and load the PDF servlet in there using Javascript. It works very well on Firefox but IE opens a new window, then opens Adobe Reader and open the file there. I want the window to open the PDF and not Adobe Reader. What should I do? Tha

Fwd: [iText-questions] Opening PDF Servlet in New Window

2006-03-28 Thread Hevn
Okay. I have successfully opened a new window and load the PDF servlet in there using _javascript_. It works very well on Firefox but IE opens a new window, then opens Adobe Reader and open the file there. I want the window to open the PDF and not Adobe Reader. What should I do? Thanks. On 3/28/06,

Re: [iText-questions] Changing document margins from one page to the other

2006-03-28 Thread bruno
Niklas Pettersson wrote: <> The margins on the first page is just as I initiated them when the document object was created. The margins does change on page 2 to those intended for page 1. On page 3 everything looks like it should. That's because changing the margins only goes into effect o

RE: [iText-questions] Changing document margins from one page to the other

2006-03-28 Thread Paulo Soares
That's a situation where you must leave Document.add() and do your own layout with ColumnText. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Niklas Pettersson > Sent: Tuesday, March 28, 2006 11:29 AM > To: itext-questions@lists.sourceforge.net

[iText-questions] Re: iText-questions

2006-03-28 Thread bruno
Giorgio Arcangeli wrote: Hi Bruno,I've a question. Please post questions to the mailing list. Please don't expect from me that I can answer every question about iText individually. I've a blank PDF with logos. I would like use this PDF as stationery. That is I want write on this PDF and when

[iText-questions] Changing document margins from one page to the other

2006-03-28 Thread Niklas Pettersson
Hi list!   I would like to use a different header on the first page versus the following pages. Both headers are tables implemented using PdpPTable. The header for page 1 is larger than the one used for page 2 and forward. The content of the page should follow directly beneath the header

RE: [iText-questions] News from the Maven front

2006-03-28 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of bruno > Sent: Tuesday, March 28, 2006 8:15 AM > To: 'itext-questions@lists.sourceforge.net' > Subject: Re: [iText-questions] News from the Maven front > > OK, I was just experimenting with iText

RE: [iText-questions] Attach footer to table

2006-03-28 Thread Paulo Soares
PdfPTable.setFooterRows() > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Niklas Pettersson > Sent: Tuesday, March 28, 2006 10:08 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Attach footer to table > > Hi list! >

[iText-questions] Attach footer to table

2006-03-28 Thread Niklas Pettersson
Hi list!   I like to ‘render out’ a continious PdfPTable that spans several pages. When a page break occurs I would like to attach a “footer” (just a line actually) to the table. Is there a way to achieve this?? Should I use directContent somehow? There is a way to repeat the table header

Re: [iText-questions] Unit testing PDF generation

2006-03-28 Thread bruno
Daniel Farinha wrote: Of course, all this relies on your ability to write good tests. I too have seen tests that didn't test anything (but appeared to do so) - and that's worst than no testing, because it leads to wrong assumptions and wastes time. That's what I meant with my remark ;-) I ha

Re: [iText-questions] Unit testing PDF generation

2006-03-28 Thread Daniel Farinha
Allow me... (warning, non iText/PDF related rambling) ;) It's not about adding unit tests to your code. It's about adding code to your unit tests. Well written unit tests tell you (the developer) what exactly you need to implement to make the test run (i.e. acts as a low-level spec). When the

Re: [iText-questions] PdfPCell No Wrap

2006-03-28 Thread bruno
Hevn wrote: I have a PdfPTable and I have set the widths for each column like this: float[] widths2 = {0.14f, 0.17f, 0.14f, 0.31f, 0.08f, 0.09f, 0.07f}; Now I want the texts inside the cells to not be wrapped so I have this line: cell.setNoWrap(true); What happens is the data overflows to th

Re: [iText-questions] Advanced use of iText

2006-03-28 Thread bruno
Niklas Pettersson wrote: Hi list! Is there a way to detect when iText fires a new page event? Add a page event to your writer object. See http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/ br, Bruno --- This SF.Net emai

[iText-questions] Advanced use of iText

2006-03-28 Thread Niklas Pettersson
Hi list!   Is there a way to detect when iText fires a new page event?   // Niklas Pettersson