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
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 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
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
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
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;
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
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.
*
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
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 -
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
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:
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
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
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
15 matches
Mail list logo