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) {
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
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
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
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
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
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
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
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
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
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:
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
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:
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
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
>
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
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,
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
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
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 =
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-
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.
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.
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
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
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
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---
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
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
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
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
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
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
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
--
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
-
35 matches
Mail list logo