|
|
Subject: Re: ttf in jar file - msg#00302
List: java.lib.itext.general
Seach the mailing list for "contextClassLoader".
Best Regards,
Paulo Soares
----- Original Message -----
From: "Java Samurai" <javasamurai5@xxxxxxxxx>
To: <itext-questions@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, December 20, 2002 21:23
Subject: [iText-questions] ttf in jar file
> I would like to create a true type font using a .ttf
> file stored in the same jar file as my class file.
>
> For example, the below code works until I jar it up.
>
> java.net.URL url =
> getClass().getResource("fonts/myfont.ttf");
> //BaseFont mf = BaseFont.createFont(url.getPath(),
> BaseFont.WINANSI, BaseFont.EMBEDDED);
>
> Thanks
>
> =====
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
> Time is running out! Thinkgeek.com has the coolest gifts for
> your favorite geek. Let your fingers do the typing. Visit Now.
> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
> _______________________________________________
> iText-questions mailing list
> iText-questions@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: PdfContentByte.setTextMatrix - units, 0,0, and text position
Uncheck the boxes "shrink/expand pages to paper size". Size will also vary
with the accuracy of the printer driver.
Best Regards,
Paulo Soares
----- Original Message -----
From: "David Thielen" <dave@xxxxxxxxxxxx>
To: "itext" <itext-questions@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, December 20, 2002 17:40
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0,
and text position
> Any idea why the graphic image prints smaller than it should?
>
> thanks - dave
>
>
> ----- Original Message -----
> From: "Paulo Soares" <psoares@xxxxxxxxxxx>
> To: "David Thielen" <dave@xxxxxxxxxxxx>; "itext"
> <itext-questions@xxxxxxxxxxxxxxxxxxxxx>
> Sent: Friday, December 20, 2002 9:11 AM
> Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units,
> 0,0,
> and text position
>
>
> > Margins on paper depends on the printer and the selection of Acrobat
> > print-to-fit.
> >
> > Best Regards,
> > Paulo Soares
> >
> > ----- Original Message -----
> > From: "David Thielen" <dave@xxxxxxxxxxxx>
> > To: "itext" <itext-questions@xxxxxxxxxxxxxxxxxxxxx>
> > Sent: Thursday, December 19, 2002 21:47
> > Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units,
> 0,0,
> > and text position
> >
> >
> > > Hi;
> > >
> > > I've tried this and this is what I've found:
> > >
> > > 1. For an image, the absolute position I set for an image is not
> > > where it's printed. Instead it is printed a little lower and to the
> > > right of the position I give. I printed out getDpiX() & getDpiX()
> (both
> > > 72.0) and absoluteX() & absoluteY() and the values printed do not
> match
> > > the printed .pdf file.
> > > 2. For an image, the size of the image is slightly smaller than it
> > > is supposed to be. I printed out plainWidth() & plainHeight() and
> the
> > > values printed out do not match the printed .pdf file.
> > > 3. I printed out text and the x position is 90.0 (1.25") but on the
> > > paper it is at 1.375" The y position is 646.15 (8.97") but the text
> > > baseline is actually at 8.75"
> > >
> > > The image size is actually the bigger problem as everything appears
> to
> > > be offset the same amount and the amount is not killer.
> > >
> > > Any ideas?
> > >
> > > thanks - dave
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Paulo Soares" < <mailto:psoares@xxxxxxxxxxx>
> > > psoares@xxxxxxxxxxx>
> > > To: "David Thielen" < <mailto:dave@xxxxxxxxxxxx>
> dave@xxxxxxxxxxxx>;
> > > "itext" < <mailto:itext-questions@xxxxxxxxxxxxxxxxxxxxx>
> > > itext-questions@xxxxxxxxxxxxxxxxxxxxx>
> > > Sent: Thursday, December 19, 2002 1:06 PM
> > > Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units,
> > > 0,0, and text position
> > >
> > >
> > > >
> > > > ----- Original Message -----
> > > > From: "David Thielen" < <mailto:dave@xxxxxxxxxxxx>
> dave@xxxxxxxxxxxx>
> > > > To: "itext" < <mailto:itext-questions@xxxxxxxxxxxxxxxxxxxxx>
> > > itext-questions@xxxxxxxxxxxxxxxxxxxxx>
> > > > Sent: Thursday, December 19, 2002 19:11
> > > > Subject: [iText-questions] PdfContentByte.setTextMatrix - units,
> 0,0,
> > > and
> > > > text position
> > > >
> > > >
> > > > > Hi;
> > > > >
> > > > > When calling PdfContentByte.setTextMatrix, a couple of questions
> > > about
> > > > > it.
> > > > >
> > > > > 1. x,y - are these units in points?
> > > >
> > > > Yes if there wasn't any other CTM scaling before.
> > > >
> > > > > 2. where is 0,0 - the lower left corner of the page?
> > > >
> > > > Or the template and again if there wasn't any other CTM
> translation
> > > before.
> > > >
> > > > > 3. Is this the position of the top, baseline, or bottom of the
> text
> > > > > written?
> > > >
> > > > Baseline.
> > > >
> > > > >
> > > > > thanks - dave
> > > > >
> > > >
> > > >
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
> > Time is running out! Thinkgeek.com has the coolest gifts for
> > your favorite geek. Let your fingers do the typing. Visit Now.
> > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
> > _______________________________________________
> > iText-questions mailing list
> > iText-questions@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
> Time is running out! Thinkgeek.com has the coolest gifts for
> your favorite geek. Let your fingers do the typing. Visit Now.
> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
> _______________________________________________
> iText-questions mailing list
> iText-questions@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
Next Message by Date:
click to view message preview
(no subject)
************r-e-k-l-a-m-a***************
Masz dość płacenia prowizji bankowi ? mBank - załóż konto
Previous Message by Thread:
click to view message preview
ttf in jar file
I would like to create a true type font using a .ttf
file stored in the same jar file as my class file.
For example, the below code works until I jar it up.
java.net.URL url =
getClass().getResource("fonts/myfont.ttf");
//BaseFont mf = BaseFont.createFont(url.getPath(),
BaseFont.WINANSI, BaseFont.EMBEDDED);
Thanks
=====
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
Next Message by Thread:
click to view message preview
Draw routine for pdftable
Hi Paulo,
Is there a way that you can comeup with a function
that will draw the whole table. I am asking this
because I have a function that converts you itext into
.wmf file. With the JFreeChart is easy for me to
include since after a produce you page into pdf, I
call the routine chart.draw(...). If I had the same to
PdfTables, even better for the whole document, this
would be the best.
Thank you,
João Mello
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
|
|