[iText-questions] Increase document resolution

2002-06-14 Thread Vadell Cifre, Enrique
Hi, i'm trying to use iText to draw a chart, using graphics primitives. When using graphics primitives as: Graphic grx = new Graphic(); grx.rectangle(100, 700, 100, 100); the coordinates are expresed as points and documentation says there are 72 points per inch (this is at 72 dpi). But i need

Re: [iText-questions] Increase document resolution

2002-06-14 Thread Nicolas Ivering
If you have an Graphics2D instance you can use the scale-method. grx.scale(300.0/72, 300.0/72) would give you 300 dpi (presuming it was 72 before the scale). Vadell Cifre, Enrique wrote: Hi, i'm trying to use iText to draw a chart, using graphics primitives. When using graphics primitives

[iText-questions] [Itext Problem] : Images not displayed correct

2002-06-14 Thread martin . hald
[Itext Problem] : Images not displayed correct Hello together, hope somebody can help me. I'm using Itext version 0.92. now i've got the following problem when i'd like to create PDF from an HTML file. I'd like to write two images side by side. I'd tried the following html code: test 1 table

[iText-questions] DefaultFontMapper.insertDirectory is (too) slow

2002-06-14 Thread Erwin Achermann
Hi Bruno, we are facing the problem, that inserDirectory processes 250 font files, consuming more time than acceptable (8 seconds). I was browsing to code and observed that for each font file a basefont is created. This includes loading mapping tables (which is what we need in the first

Re: [iText-questions] DefaultFontMapper.insertDirectory is (too) slow

2002-06-14 Thread Bruno
Quoting Erwin Achermann [EMAIL PROTECTED]: Hi Bruno, we are facing the problem, that inserDirectory processes 250 font files, = consuming more time than acceptable (8 seconds). I was browsing to code = and observed that for each font file a basefont is created. This = includes loading

RE: [iText-questions] DefaultFontMapper.insertDirectory is (too) slow

2002-06-14 Thread Paulo Soares
There's no problem here. First of all the class DefaultFontMapper is a generic class that may not be suitable for all the cases. You can sub-class it or create a new one if special capabilities are needed. You only have to create an instance of it once and then use it everywhere in other threads;

RE: [iText-questions] Increase document resolution

2002-06-14 Thread Paulo Soares
Don't use Graphic. It's only there for compatibility with some very old code and should have been deprecated long ago. Use PdfContentByte to write your graphics. If you need more resolution use fractions. At least two decimal places will be output to the document giving you a resolution of 7200

RE: [iText-questions] DefaultFontMapper.insertDirectory is (too) slow

2002-06-14 Thread Paulo Soares
If you just need a couple of fonts use this class (untested): import com.lowagie.text.pdf.*; public class SpeedFontMapper extends DefaultFontMapper { /** Inserts a single font into the map. The encoding * will be CODEBaseFont.CP1252/CODE but can be * changed later. *

RE: [iText-questions] DefaultFontMapper.insertDirectory is (too) slow

2002-06-14 Thread Erwin Achermann
The problem with this is that the file ist completly read in to generate a new basefont. Because the FontFactory.createFont(...) calls new TrueTypeFont(filename, ...) and similar for other file types, only to get the names of the font String names[][] = bf.getFullFontName(); and then

[iText-questions] tables

2002-06-14 Thread Aristo . Togliatti
Hi all, is it possible to put 2 tables one on the left and one on the right of the page at the same height? Thx, A. ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -

Re: [iText-questions] tables

2002-06-14 Thread Matt Benson
Yes, using PdfPTable... -Matt --- [EMAIL PROTECTED] wrote: Hi all, is it possible to put 2 tables one on the left and one on the right of the page at the same height? Thx, A. ___ Don't miss the 2002 Sprint PCS

[iText-questions] sql 2000 db weirdness

2002-06-14 Thread Miller, Eric
I created some PDF documents from a form that is filled out online. I then placed the pdf in a sql 2000 database, storing it using the PreparedStatement.setBinaryStream() method. When I pull it out of the database, for lack of better knowledge, I create the file again with the following code:

RE: [iText-questions] sql 2000 db weirdness

2002-06-14 Thread Chris Ward
I would think that first you need to verify that you are getting the pdf's created properly - so save them as files first. Then make sure that you are saving the correct stream to the database. I would doubt that SQL Server would selectively take out the answers for you. Chris -Original

[iText-questions] stretching a table

2002-06-14 Thread Alex Radka
I have a table that needs to span the whole page (leaving only a small margin). Using Table, I don't seem to be able to convince the table to go into the margin. I create my document Document document = new Document(PageSize.LETTER.rotate(), 10, 10, 10, 10); But the table, at best, has a 1

RE: [iText-questions] sql 2000 db weirdness

2002-06-14 Thread Miller, Eric
Well, turns out I'm semi-retarded. I noticed that the date on my pdf file was also two days old...and then it hit me. I had kept testing my project again and again and forgot to delete previous entries in the database. Most of the information, including the key, was hard-coded for testing