Re: [iText-questions] [SPAM] Re: [SPAM] Servlet issues

2007-05-03 Thread Bruno Lowagie (iText)
Michael Clayton wrote: > I recompiled my itext.jar file and still get > java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException. I know it's frustrating, but it IS a configuration problem on your side. If you start from scratch, installing Tomcat on a new machine, adding the correct j

Re: [iText-questions] ParsetoList in HTMLWorker

2007-05-03 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > and i think the image come at the right place. I'm need to > "manipulating" the image after conversion? I'll use the PdfImage? I don't understand the question(s). br, Bruno - This SF.net email is s

Re: [iText-questions] Simple Z-Ordering

2007-05-03 Thread Bruno Lowagie (iText)
I'm not sure if this answers your question, but have you tried this: Ruskin Dantra wrote: > PdfContentByte cb = writer.getDirectContent(); > > cb.resetRGBColorStroke(); > cb.resetRGBColorFill(); > cb.setFontAndSize(FontFactory.getFont(FontFactory.HELVETICA, 12, > Font.UNDERLINE).getBaseFont

Re: [iText-questions] Author metadata

2007-05-03 Thread Bruno Lowagie (iText)
mister bean wrote: > Rats, I misread your original post. My answer applies to new docs. Don't know > about existing docs. Sorry. Read on to page 54-55, and you'll find this example: http://itext.ugent.be/itext-in-action/examples/chapter02/HelloWorldAddMetadata.java It changes the PDF metadata and

Re: [iText-questions] Author metadata

2007-05-03 Thread mister bean
Rats, I misread your original post. My answer applies to new docs. Don't know about existing docs. Sorry. --Mister Bean mister bean wrote: > > Yes, it is. You can change all metadata except Producer, which by > convention uses an internal iText string. The methods are described in pp. > 39-41

Re: [iText-questions] Author metadata

2007-05-03 Thread mister bean
Yes, it is. You can change all metadata except Producer, which by convention uses an internal iText string. The methods are described in pp. 39-41 of the iText book. Hope that helps, Mister Bean Stefano-32 wrote: > > Dear all, > reading the documentation online and the API it wasn't cl

[iText-questions] Author metadata

2007-05-03 Thread Stefano
Dear all, reading the documentation online and the API it wasn't clear to me if it is possible to change the metadata of an existing document through iText. May I have any hint on this? Thanks a lot, Stefano -

[iText-questions] Simple Z-Ordering

2007-05-03 Thread Ruskin Dantra
Hi All, After a considerable amount of looking through the archive I found no simple solution how to make a rectangle display below text when the text is added after the rectangle. I have the following example: PdfContentByte cb = writer.getDirectContent(); cb.resetRGBColorStroke(); cb.resetRGB

Re: [iText-questions] ExceptionConverter:java.io.IOException:Thedocument has no pages.

2007-05-03 Thread Paulo Soares
Stop littering the code with useless try/catch blocks. Use only one block without any finally. Place a doc.add(new Paragraph("hello")) somewhere to make sure that you are producing at least one page. I after this you don't get any meaningful result then try with other machine. Paulo - Orig

Re: [iText-questions] ExceptionConverter:java.io.IOException:Thedocument has no pages.

2007-05-03 Thread Feld, David E
Hi, So, I followed your advice Here is what I had now: -- try { ... Log..."Start Open" try { doc.open(); } catch (Exception e)

Re: [iText-questions] Code39 Extended & Checksum

2007-05-03 Thread Mitch Freed
Thanks! - Mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Thursday, May 03, 2007 1:41 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Code39 Extended & Checksum Mitch Freed docutechcorp.com> writes:

Re: [iText-questions] Code39 Extended & Checksum

2007-05-03 Thread Paulo Soares
Mitch Freed docutechcorp.com> writes: > > Thanks for the help. > > Barcode39 b = new Barcode39(); > b.Code = "this is a test"; > b.Extended = true; > b.GenerateChecksum = true; > b.ChecksumText = true; // everything works fine if this is set to false > Image i = b.CreateImageWithBarcode(cb, nu

Re: [iText-questions] [SPAM] Servlet issues

2007-05-03 Thread Michael Clayton
I recompiled my itext.jar file and still get java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException. Any ideas? On May 1, 2007, at 1:59 AM, Bruno Lowagie wrote: > Michael Clayton wrote: >> SEVERE: Allocate exception for servlet MyFirstServlet >> java.lang.NoClassDefFoundError: com/l

[iText-questions] Where I can find the examples?

2007-05-03 Thread Javier Ortiz
In the book thare are examples like this one: /* chapter18/ClimbTheTree.java */ PdfIndirectReference content_ref = (PdfIndirectReference) kid.get(PdfName.CONTENTS); PRStream content = (PRStream)reader.getPdfObject(content_ref.getNumber()); lister.listDict(content); byte[] contentstream = P

Re: [iText-questions] ExceptionConverter:java.io.IOException:Thedocument has no pages.

2007-05-03 Thread Paulo Soares
Try it with the code I proposed, don't complicate. Also make sure that you add something to the page like a doc.add(new Paragraph("hello")) after open. Paulo - Original Message - From: "Feld, David E" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Thursday, M

Re: [iText-questions] ExceptionConverter:java.io.IOException:Thedocument has no pages.

2007-05-03 Thread Feld, David E
This is what I have: try { ... Log..."Start Open" try { doc.open(); } catch (Exception e) { Log..."Printing Stack Trace for doc.open" e.printStackTrace(); } Log..."End Open"

[iText-questions] ParsetoList in HTMLWorker

2007-05-03 Thread mdcapurro
Hi, I'm create a pdf document from some text and from some HTML text, this is convert using te HTMLWorker. It's work fine, but if inside my html code i have a url to an image, the image are "parse" at the beginning of the document, like a background image After the htmlworker, i'm use thi

Re: [iText-questions] Code39 Extended & Checksum

2007-05-03 Thread Mitch Freed
Thanks for the help. Barcode39 b = new Barcode39(); b.Code = "this is a test"; b.Extended = true; b.GenerateChecksum = true; b.ChecksumText = true; // everything works fine if this is set to false Image i = b.CreateImageWithBarcode(cb, null, null); - Mitch -Original Message- From: [EMAIL

Re: [iText-questions] Code39 Extended & Checksum

2007-05-03 Thread Paulo Soares
What's your code? Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mitch Freed > Sent: Thursday, May 03, 2007 5:37 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Code39 Extended & Checksum > > So if my

Re: [iText-questions] Code39 Extended & Checksum

2007-05-03 Thread Mitch Freed
So if my barcode text were: this is a test And I have the barcode setup to generate and show the checksum text, should I get an error? I get an error stating that: The character 't' is illegal in code 39. Shouldn't it be allowed under the extended 3of9 barcode? - Mitch -Original Message-

Re: [iText-questions] Code39 Extended & Checksum

2007-05-03 Thread Paulo Soares
That's correct. The barcode 39 extended is just a convention where the $, /, %, and + symbols act as "shift" characters. The checksum is done over the "normal" symbols, before interpretation by the reader. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] O

[iText-questions] Code39 Extended & Checksum

2007-05-03 Thread Mitch Freed
When generating the checksum for a 3of9 extended barcode, it doesn't seem to be allowing for the extended charset in the checksum. The GetChecksum(string text) method in Barcode39.cs is looking at the 3of9 charset and not the extended. Is this how that should be working, or is that a bug? Mitch F

Re: [iText-questions] Paragraph, ColumnText & SpacingBefore

2007-05-03 Thread Mitch Freed
Thanks for the quick reply and help. - Mitch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Thursday, May 03, 2007 9:19 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Paragraph, ColumnText & SpacingBefor

Re: [iText-questions] Paragraph, ColumnText & SpacingBefore

2007-05-03 Thread Paulo Soares
If the spacing was always applied you'd have a space in the start of the block that wouldn't look good if you had several block in paralel or in each page. It was a design option. You may give that extra space by lowering the YLine. Paulo > -Original Message- > From: [EMAIL PROTECTED] >

[iText-questions] Paragraph, ColumnText & SpacingBefore

2007-05-03 Thread Mitch Freed
I'm using ColumnText (and iTextSharp) to format my pdf documents. I ran into a problem when the first item added to ColumnText (e.g. ColumnText.AddElement) is a paragraph and has defined SpacingBefore. The SpacingBefore is ignored if it is defined on the first item in the list (and it's a paragraph

Re: [iText-questions] [SPAM] Re: Orphan titles, keeping them together

2007-05-03 Thread Bruno Lowagie
Nash wrote: > > Thank you for your answer! Are you planning to include orphan/widow line > support in Chapter/Sections in the future releases of iText? > Report which has to be printed to PDF contains chapters and titles, that's > why I think it is more natural to use them rather using ColumnTex

Re: [iText-questions] adding new page with pdfcopy

2007-05-03 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Alessandro Testa > Sent: Thursday, May 03, 2007 12:37 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] adding new page with pdfcopy > > hi, > I need to add a new page t

[iText-questions] adding new page with pdfcopy

2007-05-03 Thread Alessandro Testa
hi, I need to add a new page to pdfcopy. now I use it like I use pdfwriter but I get a "Document as no pages error". unfortunally I can use only PdfCopy or PdfWriter. Any Idea? Why pdfcopy haven't the same behavior of pdfwriter? Thanks Alex ---

Re: [iText-questions] Orphan titles, keeping them together

2007-05-03 Thread Nash
Thank you for your answer! Are you planning to include orphan/widow line support in Chapter/Sections in the future releases of iText? Report which has to be printed to PDF contains chapters and titles, that's why I think it is more natural to use them rather using ColumnText. Regards, Vladisla

Re: [iText-questions] Orphan titles, keeping them together

2007-05-03 Thread Bruno Lowagie (iText)
Nash wrote: > So in this example, I create a chapter and include a section into it. > I want that all elements (chapter's title, section's title and block of the text) > are always being kept on the same page. How to perform this feature? That's not supported in Chapter/Section. If you really n

[iText-questions] Orphan titles, keeping them together

2007-05-03 Thread Nash
Hi, How to avoid orphan titles and keep them always together on the same page with the rest of the text? Paragraph testParagraph = new Paragraph("Chapter title\n"); Chapter testChapter = new Chapter(testParagraph,1); Section testSection = testChapter.addSection(new Paragraph("Subtitle")); testSec

Re: [iText-questions] AcroField ReadOnly

2007-05-03 Thread Bruno Lowagie (iText)
Carlos Delfino Carvalho Pinheiro wrote: > Now I have one problem with acrofield, I create a document with Acrobat > Professional 6.0 and put 4 acrofields for user write and put it > obligatory, but in iText where I try set new value to Acrofield, I get > a exception about field is Read-Only! >

Re: [iText-questions] [RE]The results of your email commands

2007-05-03 Thread Bruno Lowagie (iText)
brijesh kumar wrote: >dear team, > > i tried to remove my name from the mailing list. but your system is > sending me the mail you can see below. please help me in this regard Either you already succeeded in unsubscribing, or somebody else already removed you. Anyway: I don't find anyone wit

[iText-questions] [RE]The results of your email commands

2007-05-03 Thread brijesh kumar
dear team,i tried to remove my name from the mailing list. but your system is sending me the mail you can see below. please help me in this regard-[ Received Mail Content ]-- Subject : The results of your email commands Date : Thu, 03 May 2007 02:42:55 -0700 From : [EMAIL PROTECT

Re: [iText-questions] PDF optimizer

2007-05-03 Thread Paulo Soares
Depending on what you do in PdfStamper some PDFs will always require a lot of memory. iText is not optimized for very big files. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eyal z > Sent: Thursday, May 03, 2007 11:10 AM > To: itext-qu

Re: [iText-questions] PDF optimizer

2007-05-03 Thread Eyal z
Paulo Soares consiste.pt> writes: > > No to both questions. For the last part of the question you may need > PdfStamper.setFullCompression(). > > Paulo > > - Original Message - > From: "Eyal Zizi" cerylion.net> > To: lists.sourceforge.net> > Sent: Thursday, May 03, 2007 9:05 AM > S

Re: [iText-questions] Memory Issue

2007-05-03 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > Hi, > > I am generating the large files using this tool. That data will be in > tabular format. > > If the no of pages exceeds 1000, java out of memory exception is coming. > > Please let us know how to solve the issue. Read the book section about 'tables and memory

[iText-questions] Memory Issue

2007-05-03 Thread nagesh.venkata
Hi, I am generating the large files using this tool. That data will be in tabular format. If the no of pages exceeds 1000, java out of memory exception is coming. Please let us know how to solve the issue. Thanks and Regards Nagesh -

Re: [iText-questions] itext - cambiar el color del texto

2007-05-03 Thread Bruno Lowagie (iText)
Licinio Gomez wrote: > But what about changing the color of the text of a field when opening > an existing PDF? Should I get a compatible BaseField object > representing the field I intentd to change? If so, how could I do > that? Read the WIKI: http://lowagie.com/itextwiki/doku.php/filmfestival:a

Re: [iText-questions] itext - cambiar el color del texto

2007-05-03 Thread Licinio Gomez
Hi list, According to the examples in the book, when creating a PDF form, setting the default color of the text of a field is simple: /* chapter15/Buttons2.java */ PushbuttonField push = new PushbuttonField(writer, new Rectangle(40, 650, 150, 680), "pushAction"); push.setBackgroundColor(Color.YE

Re: [iText-questions] [SPAM] PdfStamper vs PdfCopy

2007-05-03 Thread InJesus
Wow, Forgive me(for repeating an already answered question as I knew it was somewhere) Thank You so much sir, I'll pray for a new lego set and If I adopt iText, I might just send one. The speed of the reply was great thanks again. GB J Bruno Lowagie (iText) wrote: > > InJesus wrote: >> I

Re: [iText-questions] [SPAM] PdfStamper vs PdfCopy

2007-05-03 Thread Bruno Lowagie (iText)
InJesus wrote: > I aplogize in advance if somebody has answer this already, The answer is in the book, but in the meanwhile, some even better answers have come up (due to enhancements in the latest iText versions). > I need to take a one page template, populate it with AcroForm data then do > it

Re: [iText-questions] PDF optimizer

2007-05-03 Thread Paulo Soares
No to both questions. For the last part of the question you may need PdfStamper.setFullCompression(). Paulo - Original Message - From: "Eyal Zizi" <[EMAIL PROTECTED]> To: Sent: Thursday, May 03, 2007 9:05 AM Subject: [iText-questions] PDF optimizer Hi, Does iText library supports PD

Re: [iText-questions] Rtf inclusion inside another rtf

2007-05-03 Thread GAMBELLI Raffaele
Another question about rtf inclusion: - I have just found a rtf that it was not included and no exception was trown... Can you try to include the rtf in attachment of this mail? Thanks. Bye Raffaele -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of GAMBELLI

[iText-questions] PdfStamper vs PdfCopy

2007-05-03 Thread InJesus
I aplogize in advance if somebody has answer this already, I've searched and not found a clear answer to this as it must be fairly common. I need to take a one page template, populate it with AcroForm data then do it again several times then combine them as one PDF. as Copy doesn't have AcroForms

[iText-questions] PDF optimizer

2007-05-03 Thread Eyal Zizi
Hi, Does iText library supports PDF optimizer that has been introduced in Adobe acrobat professional 7.0? If not, will it be in the next release? I know that there is no problem loading document that has been optimized but when I try to save it back to disk it returns to its original size (e.g. 14

[iText-questions] Rtf inclusion inside another rtf

2007-05-03 Thread GAMBELLI Raffaele
Hello guys, hello Mark this is a question for you: I've noticed a strange fact, the following: - I have to generate one rtf document which includes another one. - The rtf to be included has both header and footer. - The rtf that I have to generate also has its header and footer. - This that happen

[iText-questions] PDF optimizer

2007-05-03 Thread Eyal z
Does iText support PDF optimizer that has been introduced in Adobe acrobat professional 7.0? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your X

Re: [iText-questions] resolution of pdf

2007-05-03 Thread Ruskin Dantra
Thank you. On 5/3/07, Bruno Lowagie (iText) <[EMAIL PROTECTED]> wrote: Ruskin Dantra wrote: > Hi All, > I am having trouble finding a way to set the resolution of the PDF > document. I am setting the size of the pdf document > (.setpagesize()) according to certain values which I am given from

Re: [iText-questions] resolution of pdf

2007-05-03 Thread Bruno Lowagie (iText)
Ruskin Dantra wrote: > Hi All, > I am having trouble finding a way to set the resolution of the PDF > document. I am setting the size of the pdf document > (.setpagesize()) according to certain values which I am given from > another part of a system. I also am given the DPI which these sizes