[iText-questions] Itext problem

2003-03-13 Thread BI傅遠政
How could I change the traditional Chinese font widths? My source code is as the following: BaseFont bf = BaseFont.createt("/dir1/dir2/kaiu.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); int widths[] = bf.getWidths(); for (int k = 0; k < widths.length; ++k) {

Re: [iText-questions] Memory Problems

2003-03-13 Thread Paulo Soares
Yes, more details are needed. I can't answer for rtf but the pdf part doesn't leave object behind. The only objects cached are the fonts but after that it doesn't grow anymore. Best Regards, Paulo Soares - Original Message - From: "Jaladurgam, Ramana" <[EMAIL PROTECTED]> To: "'Stefan Krom

RE: [iText-questions] Memory Problems

2003-03-13 Thread Jaladurgam, Ramana
Stefan, Can you explain a little more detail about the way you are generating the PDF/RTF documents in a row. Showing your code should be more helpful. Because, I think itext doesn't take up a lof of memory. Ramana. -Original Message- From: Stefan Krompaß [mailto:[EMAIL PROTECTED] Se

Re: [iText-questions] Memory Problems

2003-03-13 Thread Java User
Hi Stefan, I have been generating PDF and RTF documents and I have not faced this problem until now. I am using iText-0.96 In differnet scenarios, I have been able to generated PDF documents with a size of 400-500Kb each and RTF Docs with a size of 1-5 Mb each and approx in 20-50 in number. The

[iText-questions] Memory Problems

2003-03-13 Thread Stefan Krompaß
Hi! I'm using iText to generate some PDF- and RTF-documents. My problem is that after the generation, I have some two MB memory less than before. Generating several PDF-documents in a row leads to a "OutOfMemoryError". Has anybody else had problems like that or does anybody know how I could scope

[iText-questions] ColumnText Question

2003-03-13 Thread Campanale, Rocco
I am using iText version .96. I am using ColumnText to mimic a table, since I have some columns that have data that can span multiple pages. I am able to output my text using the ColumnText.go() method. If I add a PdfPTable using document.add(PdfPTable) after the columnText is completed writin

[iText-questions] How to color text using BaseFont

2003-03-13 Thread Thorsten Schäfer
Hi, I want to color a text which is inserted using direct content. In the tutorial I saw the possibility to color phrases with font objects. But I have to use a BaseFont object, because of the signature in the setFontAndSize-Method of PdfContentByte (see example code). How is it possible to color

RE: [iText-questions] modifying metadata

2003-03-13 Thread Matt Benson
Okay, gotcha. Thanks! -Matt --- Paulo Soares <[EMAIL PROTECTED]> wrote: > I'm not proposing to actually generate the metadata, > that's application > specific after all. PDF/X compatibility requires at > least metadata and a > couple of other key and that's what I'm supporting: > put/get metadat

RE: [iText-questions] modifying metadata

2003-03-13 Thread Paulo Soares
I'm not proposing to actually generate the metadata, that's application specific after all. PDF/X compatibility requires at least metadata and a couple of other key and that's what I'm supporting: put/get metadata and the other keys. It's still the responsability of the user to have only legal, com

RE: [iText-questions] modifying metadata

2003-03-13 Thread Matt Benson
Wait! You lost me... what? -Matt --- Paulo Soares <[EMAIL PROTECTED]> wrote: > Well, I'll do even better (this sounds like those TV > commercials to sell > super frying pans), I'll add insertion/extraction of > metadata in the library > and you'll also get (some form) of PDF/X > compatibility fo

RE: [iText-questions] modifying metadata

2003-03-13 Thread Paulo Soares
Well, I'll do even better (this sounds like those TV commercials to sell super frying pans), I'll add insertion/extraction of metadata in the library and you'll also get (some form) of PDF/X compatibility for free. Best Regards, Paulo Soares > -Original Message- > From: Matt Benson [SMTP:

RE: [iText-questions] modifying metadata

2003-03-13 Thread Matt Benson
I'll modify as long as I know I can have them by the time I go to production, which shouldn't be until July... Thanks, Matt --- Paulo Soares <[EMAIL PROTECTED]> wrote: > They will be public in the next version together > with some others. If you > don't want to mess with the library put your code

RE: [iText-questions] modifying metadata

2003-03-13 Thread Paulo Soares
They will be public in the next version together with some others. If you don't want to mess with the library put your code in the package com.lowagie.text.pdf. Best Regards, Paulo Soares > -Original Message- > From: Matt Benson [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 15:

[iText-questions] RE: Cmaps Usage

2003-03-13 Thread Paulo Soares
Let's assume that you have an array b[] with the text encoded in hkscsbig5. byte b[] = ...// my hk text PdfEncodings.loadCmap("HKscs-B5-H", PdfEncodings.CRLF_CID_NEWLINE); String text = PdfEncodings.convertCmap("HKscs-B5-H", b); BaseFont bf = BaseFont.createFont("MSungStd-Light", "Identity-H", Bas

Re: [iText-questions] modifying metadata

2003-03-13 Thread Matt Benson
Except that when I tried your solution, I found that PdfIndirectReference and PdfWriter.addToBody() are both package-private so I can't get to them without modifying the library... :( -Matt --- Matt Benson <[EMAIL PROTECTED]> wrote: > Oops. :) Okay, thanks for the solution, Paulo! > > -Matt >

RE: [iText-questions] Font encoding to be used for Farsi ?

2003-03-13 Thread Paulo Soares
You must use Identity-H. There are other encodings for Arabic but they only cover the isolated forms and won't work after the shaping. Best Regards, Paulo Soares > -Original Message- > From: Gerald Fehringer [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 14:32 > To: [EMAIL PRO

RE: [iText-questions] Inserting text in 2 rows on a specific position

2003-03-13 Thread Paulo Soares
Set the leading bigger than zero. Best Regards, Paulo Soares > -Original Message- > From: Thorsten Schäfer [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 14:13 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Inserting text in 2 rows on a specific > position > > Hi,

[iText-questions] Font encoding to be used for Farsi ?

2003-03-13 Thread Gerald Fehringer
Hi everyone! Does anybody know which encoding I should use for my font file holding Farsi characters ? Is there a link where I could find a list of encodings ? Thanks for your help, Gerald. --- This SF.net email is sponsored by:Crypto Challe

Re: [iText-questions] modifying metadata

2003-03-13 Thread Matt Benson
Oops. :) Okay, thanks for the solution, Paulo! -Matt --- Paulo Soares <[EMAIL PROTECTED]> wrote: > And now you have a stream as a direct object, which > is illegal. > > Best Regards, > Paulo Soares > > - Original Message - > From: "Matt Benson" <[EMAIL PROTECTED]> > To: "Paulo Soares

[iText-questions] Inserting text in 2 rows on a specific position

2003-03-13 Thread Thorsten Schäfer
Hi, I want to create a text-area in my pdf document and insert text from the database. The problem is, that I don't know if the text fits in one row, or if it needs two rows. So I'm searching for a solution to inserts text which will get wrapped automatically. I tried it this way: ColumnText ct =

Re: [iText-questions] Can you have a second, HTML, stream going to one browser

2003-03-13 Thread Kenny G. Dubuisson, Jr.
Thanks very much Bruno. I'm gonna pull it apart today and figure you what you are doing. Cya, Kenny - Original Message - From: "Bruno" <[EMAIL PROTECTED]> To: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 13, 2003 3:02 AM Subject: Re: [iText-

[iText-questions] Cmaps Usage

2003-03-13 Thread Ray Chan
Hello Paulo, Thank you for adding the cmaps into the iText. I try to use it but how? I have try the following under Linux server and get the output in a client IE but I got space character for hkbig5 and hkscsbig5: import java.io.*; import java.lang.*; import java.sql.*; ... import com.lowagie.

[iText-questions] (no subject)

2003-03-13 Thread Ray Chan
Hello Paulo, Thank you for adding the cmaps into the iText. I try to use it but how? I have try the following under Linux server and get the output in a client IE but I got space character for hkbig5 and hkscsbig5: import java.io.*; import java.lang.*; import java.sql.*; ... import com.lowagie.

RE: RE: [iText-questions] pdftable

2003-03-13 Thread Paulo Soares
Those are two different universes. If you are using Document.add(table) then what counts is setWidthPercentage(). If you are placing the table at a precise position with writeSelectedRows() then it's setTotalWidth() that counts. It feels strange because you are using the first option. Best Regards

Re: RE: [iText-questions] pdftable

2003-03-13 Thread Joel Matos
It isn't working... I do this: datatable.setWidths(myWidths); datatable.setTotalWidth(totalWidths); But even if i set absurd values, i always get the same layout that is a table that fits perfectly in the page, and it's smaller than if i set datatable.setWidthP

RE: [iText-questions] How do I Add an Image to a Table

2003-03-13 Thread Paulo Soares
Add the image to a Cell and then to the Table. Best Regards, Paulo Soares > -Original Message- > From: Sridhar [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 12:20 > To: Paulo Soares > Subject: RE: [iText-questions] How do I Add an Image to a Table > > Thanks for ur Repl

RE: [iText-questions] pdftable

2003-03-13 Thread Paulo Soares
It's a matter of arithmetic setting the right column size from setTotalWidth(). I'm tempted to add a method to PdfPTable to do the calculation. The last version allows the table to split if it's very wide so, you can keep the other table half. Best Regards, Paulo Soares > -Original Message---

[iText-questions] pdftable

2003-03-13 Thread Joel Matos
Hi! I'm having some problens seting column widths... Can i set absolute values, even if it causes the table to loose some columns? Like for example i have a report on the browser and user sets column widths in pixels... I want those columns in the pdftable to have user values even if only half of

RE: [iText-questions] How do I Add an Image to a Table

2003-03-13 Thread Paulo Soares
Share a secret with us. What's the error? Best Regards, Paulo Soares > -Original Message- > From: Sridhar [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 9:07 > To: [EMAIL PROTECTED] > Subject: [iText-questions] How do I Add an Image to a Table > > Hi > > When I tried to

RE: [iText-questions] Problem with TIF File

2003-03-13 Thread Paulo Soares
It's probably a multi-strip image. See http://www.mail-archive.com/[EMAIL PROTECTED]/msg04182 for a solution. Best Regards, Paulo Soares > -Original Message- > From: Huy Ho [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 2:42 > To: [EMAIL PROTECTED] > Subject: [iText-quest

[iText-questions] How do I Add an Image to a Table

2003-03-13 Thread Sridhar
Hi When I tried to add an Image to a cell in a Table its giving an error. Can you plz tell me how should I add(puy) an Image in a Table. Many Thanks SridharDo you Yahoo!? Yahoo! Web Hosting - establish your business online

Re: [iText-questions] Can you have a second, HTML, stream going to one browser

2003-03-13 Thread Bruno
Quoting "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>: > Sounds great but way over my head :P...would you mind sharing your code for > me to look at. Thanks so much Bruno. OK, as promised. I made a reduced (UNTESTED) version of what I do normally in the case I have to let the user wait for a doc

Re: [iText-questions] 0.97

2003-03-13 Thread Bruno
Quoting David Thielen <[EMAIL PROTECTED]>: > I've found that -target generally doesn't work. OK, that's a pity. I replaced iText.jar yesterday. It's now compiled with 1.3.1 Bruno --- This SF.net email is sponsored by:Crypto Challenge is now o

Re: [iText-questions] 0.97

2003-03-13 Thread Bruno
Quoting Paulo Soares <[EMAIL PROTECTED]>: > I compiled it with 1.3.1. Even compiling in 1.4 with -target 1.1 won't do. What would be the most elegant way to compile with JDK 1.3 in ANT when JAVA_HOME points to the JDK 1.4. I chose to use 'target', but it didn't work as I expected. Bruno --

Re: [iText-questions] Wrapped Text In A Template

2003-03-13 Thread Bruno
Quoting Greg Alexander <[EMAIL PROTECTED]>: > I am building a business form and need the ability to place wrapped text > at any > position on the screen. Templates do not appear to support Paragraphs. > How > do I place wrapped text at any position on the screen? Use ColumnText. Bruno -