[iText-questions] Several question about itext

2007-05-29 Thread nguyet minh
Hello, I'm working with itext, and encounter following problems, hope to have your help. - The Document object have "setPageSize( )" with argument is a "Rectangle". I read in the doc and know that Rectangle.LEGAL is ok. But it throws the error in the complier. It tells that Rectangle.LEGAL is

[iText-questions] Creating PDF with images with color space.

2007-05-29 Thread Jaya Pasachhe
Hello I have been using itext to create different PDF files since last two years. I want to create a pdf files with different images on it. The images could have different color space . I want to keep information of color space of images in pdf file as meta data. Can i do it? and How can i extrac

[iText-questions] convert JSP output to PDF

2007-05-29 Thread Sushant Kamble
Hi all I am SushantI have created a JSP page which will generate University result dynalically based on Seat no. provided by user...Everything is working fineBut i want to know how can I convert that dynamically generated JSP to PDF... Please help ASAP Thanks and regards... Sushant --

Re: [iText-questions] Problem with PdfPTable. Is it a bug?

2007-05-29 Thread sunil.belurgikar
Thanks Paulo Paulo Soares wrote: > > PdfPTable.setSplitLate(false). > > Paulo > > - Original Message - > From: "sunil.belurgikar" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, May 30, 2007 5:25 AM > Subject: [iText-questions] Problem with PdfPTable. Is it a bug? > > >> >> I write

[iText-questions] Memory problem

2007-05-29 Thread Thomas Kübler
Hello, i have a problem with impositing with itext, i get this message, Runtime-Exception...Fuer diesen Befehl ist nicht genügend Speicher verfügbar process: PPML-Impositioning at de.novaconcept.photobook.worker.WorkQueue$PoolWorker.run(Unknown Source) at de.novaconcept.photobook.

Re: [iText-questions] Problem with PdfPTable. Is it a bug?

2007-05-29 Thread Paulo Soares
PdfPTable.setSplitLate(false). Paulo - Original Message - From: "sunil.belurgikar" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 30, 2007 5:25 AM Subject: [iText-questions] Problem with PdfPTable. Is it a bug? > > I write a PdfPTable on a pdf document.That Table has one PdfPCell colum

[iText-questions] Problem with PdfPTable. Is it a bug?

2007-05-29 Thread sunil.belurgikar
I write a PdfPTable on a pdf document.That Table has one PdfPCell column Which is another PdfPTable with 4 columns, which is added with cells in a for loop.Outside the for loop ,I am adding this table as a cell in PdfPTable with one column and then I am adding PdfPTable with one column to the do

Re: [iText-questions] ExceptionConverter

2007-05-29 Thread Paulo Soares
That wouldn't work in jdk 1.3. Paulo - Original Message - From: "robert engels" <[EMAIL PROTECTED]> To: "iText here itext" Sent: Wednesday, May 30, 2007 2:08 AM Subject: [iText-questions] ExceptionConverter > The implementation is no longer necessary. > > A simpler version would just

Re: [iText-questions] Metadata

2007-05-29 Thread Leonard Rosenthol
On May 29, 2007, at 11:41 AM, Thanksforfish wrote: > I am simply trying to clean the existing pdf of all metadata it > might have > (xmp or otherwise), then add my own xmp. > Well, be aware that "metadata" is a pretty generic term and there may exist types and forms of metadata in a PD

[iText-questions] ExceptionConverter

2007-05-29 Thread robert engels
The implementation is no longer necessary. A simpler version would just use the initCause() method, and simply extend RuntimeException. public class ExceptionConverter extends RuntimeException { public ExceptionConverter(Exception e) { super(e); } } ---

[iText-questions] Japanese character in destination

2007-05-29 Thread Tony He
Hi: I have a Japanese pdf file. I read it in, make a copy of it, extract some names from the file, create destinations and add it to the copied pdf file. I use: copy.getDirectContent().localDestination(name, dest) to create the destinations. I have Japanese locale on my machine. Before the abov

[iText-questions] Memory problem

2007-05-29 Thread Thomas Kübler
Hello, i have a problem with impositing with itext, i get this message, Runtime-Exception...Fuer diesen Befehl ist nicht genügend Speicher verfügbar process: PPML-Impositioning at de.novaconcept.photobook.worker.WorkQueue$PoolWorker.run(Unknown Source) at de.novaconcept.photobook.

[iText-questions] problem with page rotation and page size

2007-05-29 Thread parvez
I am trying to merge 3 pdf files.On First and second pdf's am getting reader.getPageRotation(i) == 90 and on the third pdf file am getting reader.getPageRotation(i) == 0. I am setting document pageSize based on pdfDocument.setPageSize(reader.getPageSizeWithRotation(pageNo)); My problem is, whi

Re: [iText-questions] Metadata

2007-05-29 Thread Paulo Soares
- Original Message - From: "Thanksforfish" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 29, 2007 4:41 PM Subject: Re: [iText-questions] Metadata > > Thanks very much for both replies. > I am simply trying to clean the existing pdf of all metadata it might have > (xmp or otherwise), then

Re: [iText-questions] Metadata

2007-05-29 Thread Thanksforfish
Thanks very much for both replies. I am simply trying to clean the existing pdf of all metadata it might have (xmp or otherwise), then add my own xmp. I am slightly confused as to the difference between the info in reader.getInfo() and the moreinfo in stamper.setMoreInfo() are they they same then

[iText-questions] Chunk.NEXTPAGE being ignored

2007-05-29 Thread David Sharp
I'm attempting to insert a page break into my document, but iText appears to be ignoring the chunk. The page is not empty, so that's not the problem. Basically I'm iterating through rows in a table, and would like to have a page break after every row. (Each row is large and contains several par

Re: [iText-questions] Metadata

2007-05-29 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Thanksforfish > Sent: Tuesday, May 29, 2007 1:32 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Metadata > > > Hi, > > I have been trying to remove (non xmp) metada

Re: [iText-questions] Metadata

2007-05-29 Thread Leonard Rosenthol
On May 29, 2007, at 8:32 AM, Thanksforfish wrote: > I have been trying to remove (non xmp) metadata from a pdf, add my > own xmp > metadata and save the whole thing as a new pdf. OK. Out of curiosity, Why are you removing the non-XMP-based metadata? > I have tried reader.getCa

Re: [iText-questions] open pdf in acrobat instead of acrobat reader

2007-05-29 Thread Leonard Rosenthol
On May 29, 2007, at 9:10 AM, sunil.belurgikar wrote: > So it's not up to the user to choose in which application to open. > It should be! > Executable class opens pdf with acrord32.exe which is used for opening > acrobat reader. > Runtime.getRuntime().exec("command.com /C start acrord32"

[iText-questions] Text going into the footer area

2007-05-29 Thread Patrick Mugabe
How can I prevent text from going into the footer area? I have a footer and I am adding data from the Database which varies in length so when there is too much info, some of it goes into the footer are and not to the next page

Re: [iText-questions] Page Numbering

2007-05-29 Thread Paulo Soares
You'll need a different template for each page group. It's probably easier to generate the PDF without page numbers and then use PdfStamper to add them. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of eggdog > Sent: Tuesday, May 29, 2007 3

[iText-questions] Page Numbering

2007-05-29 Thread eggdog
Say I have a document with 5 pages. I would like the page numbering to look as follows: Page 1 of 2 Page 2 of 2 Page 1 of 3 Page 2 of 3 Page 3 of 3 I've looked at the example for PageNumbersWatermark, and I've tried to use the callback onCloseDocument(...) in conjunction with setPageNumber(1) at

Re: [iText-questions] open pdf in acrobat instead of acrobat reader

2007-05-29 Thread sunil.belurgikar
I tried the code like this. if (isWindows9X()) { process =Runtime.getRuntime().exec("command.com /C start acrobat" + parameters + " \"" + fileName + "\""); if (process.getErrorStream() != null) { process.destroy(); process = Runtime.getRuntime().exec

Re: [iText-questions] Fill acroform textbox with setfield

2007-05-29 Thread Iliadis Yannis
I had a similar problem with formfields and Greek characters. I found out that by using a common truetype font like Arial or Verdana as the fields default font when I created the pdf templates in designer it solved the problem. I didn't need to change any codepage or use unicode syntax (\u) to

Re: [iText-questions] open pdf in acrobat instead of acrobat reader

2007-05-29 Thread Raimi Rufai
Your solution will only work on Windows. Doing what you want in a platform-independent way isn't trivial. You can't always guarantee what software the client will have on their machine. There are lots of viewers for the PDF, especially on non-Windows platforms. Having said that, if platform inde

[iText-questions] Metadata

2007-05-29 Thread Thanksforfish
Hi, I have been trying to remove (non xmp) metadata from a pdf, add my own xmp metadata and save the whole thing as a new pdf. Using PdfStamper and XmpWriter I can add the xmp and write the new file as a copy of the old but I am struggling to remove the existing metadata from the pdf in the first

Re: [iText-questions] open pdf in acrobat instead of acrobat reader

2007-05-29 Thread sunil.belurgikar
pdf opens through a applet event . So it's not up to the user to choose in which application to open. Executable class opens pdf with acrord32.exe which is used for opening acrobat reader. Runtime.getRuntime().exec("command.com /C start acrord32" + parameters + " \"" +

Re: [iText-questions] open pdf in acrobat instead of acrobat reader

2007-05-29 Thread Leonard Rosenthol
The choice of viewers is up to the user, not you. Leonard On May 29, 2007, at 7:59 AM, sunil.belurgikar wrote: > > Hi, > > I am crating a PDF using itext and it is saved in file system. > > Then using Executable.openDocumnt() ,I am opening that pdf. > > I need to open it in acrobat instead of a

[iText-questions] open pdf in acrobat instead of acrobat reader

2007-05-29 Thread sunil.belurgikar
Hi, I am crating a PDF using itext and it is saved in file system. Then using Executable.openDocumnt() ,I am opening that pdf. I need to open it in acrobat instead of acrobat reader.If acrobat is not present it should open in reader. Is there anyway to achieve this? -- View this message in

Re: [iText-questions] Quick iText Question...

2007-05-29 Thread Paulo Soares
This was already answered. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Sonny K. > Sent: Tuesday, May 29, 2007 1:08 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Quick iText Question... > > Hi Bruno, > >

[iText-questions] Quick iText Question...

2007-05-29 Thread Sonny K.
Hi Bruno, How are you? I hope all's going well. I love your iTextSharp product. As I am developing my web application at home, it is running smoothly, however it fails on the dedicated sever. Here is what I have on the dedicated server: 1)Windows 2003 server 2)Installed JDK 1.4.2 (Wind

Re: [iText-questions] PageEvent Problem

2007-05-29 Thread sunil.belurgikar
Hi bruno, Earlier we used PDFPtTable. But There was problem of row spaning in PDFPCell. In tables there there is one cell whose text can be of any length. Depending on that length the predessesor column needed to be span for few rows. But using nested PDFPTables that was not solved.Also the ce

Re: [iText-questions] PageEvent Problem

2007-05-29 Thread sunil.belurgikar
Sunil. Belurgikar wrote: > There is inconsitestency of table .(some cells are drawn in one page and > their data is written in next page ) > > Can anybody pls help me why this happens? 1. Are you using com.lowagie.text.Table or com.lowagie.text.pdf.PdfPTable? 2. What happens in onEndPage?

Re: [iText-questions] PageEvent Problem

2007-05-29 Thread Bruno Lowagie (iText)
Sunil. Belurgikar wrote: >> >Hi bruno, >>>I am using com.lowagie.text.Table because there is a rowspan for a >>>Perticulaer cell. Table is problematic. Different bugs have been fixed in different iText versions, but I can't guarantee everything works as it should in the most recent version. It's

Re: [iText-questions] PageEvent Problem

2007-05-29 Thread Sunil. Belurgikar
>>Hi bruno, >>I am using com.lowagie.text.Table because there is a rowspan for a >>Perticulaer cell. >>I am not adding table on onEndPage. >>I am adding footer on onEndPage. >>I am adding Tables after document.open() is called. I am adding table using Documents >>add() method. 1

Re: [iText-questions] PageEvent Problem

2007-05-29 Thread Bruno Lowagie (iText)
Sunil. Belurgikar wrote: > There is inconsitestency of table .(some cells are drawn in one page and > their data is written in next page ) > > Can anybody pls help me why this happens? 1. Are you using com.lowagie.text.Table or com.lowagie.text.pdf.PdfPTable? 2. What happens in onEndPage? Ar