Why don't use the com.lowagie.pdf.PdfGraphics2D class? Vadell Cifre, Enrique wrote:
>>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). >> >> > >I don't use java Graphics object. What i want to do is to draw a rectangle >on a pdf using com.lowagie.text.Graphic >object. This object is the one that must use to draw on a pdf, but the >drawing methods use coordinates expressed as points and Itext documentation >(tutorial chapter 1, chapter 4, chapter 10, see Graphic object) says there >are 72 points on a inch, and i need more than this (300 dpi would be >perfect). > >Thnx. > > > >>Vadell Cifre, Enrique wrote: >> >> >> >>>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 more resolution (300 >>> >>> >points > > >>>per inch would be perfect). Is there any way to do this?. >>> >>>Thanks. >>> >>>_______________________________________________________________ >>> >>>Don't miss the 2002 Sprint PCS Application Developer's Conference >>>August 25-28 in Las Vegas - >>> >>> >http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > >>>_______________________________________________ >>>iText-questions mailing list >>>[EMAIL PROTECTED] >>>https://lists.sourceforge.net/lists/listinfo/itext-questions >>> >>> >>> >>> >>-- >>Nicolas Serrador Ivering >>Greenmill Consulting AB >>By�ngsgr�nd 20 >>SE-120 40 �rsta >>Sweden >> >>Office: +46 (0)8 664 7 664 >>Fax: +46 (0)8 664 7 864 >>Mobile: +46 (0)709 734237 >>Email: [EMAIL PROTECTED] >> >> >> >>_______________________________________________________________ >> >>Don't miss the 2002 Sprint PCS Application Developer's Conference >>August 25-28 in Las Vegas - >> >> >http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > >>_______________________________________________ >>iText-questions mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/itext-questions >> > > > -- Nicolas Serrador Ivering Greenmill Consulting AB By�ngsgr�nd 20 SE-120 40 �rsta Sweden Office: +46 (0)8 664 7 664 Fax: +46 (0)8 664 7 864 Mobile: +46 (0)709 734237 Email: [EMAIL PROTECTED] _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
