Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Mixing text and lines

Mark Storer

2006-08-11


Not quite.

MoveTo is used exclusively for paths. Paths can be stroked, yes. But a closed path can be filled (with a solid color, pattern, or gradient) or used as a clipping region.

MoveTo changes the 'current location' for a path, but doesn't actually create a path element. It is akin to picking up your pencil and moving it to another part of the paper. That's not a particularly good example... pencils always 'stroke', where paths can do several different things.

Here's some content that creates a 20 x 10 rectangular path:
10 10 m
10 20 l
30 20 l
30 10 l
10 10 l

By itself, it's invisible... until you stroke and/or fill it.

PS: you could create the same path with the 're'ctangle operator instead:
10 10 20 10 re
(that's 'x y width height')


--Mark Storer
Senior Software Engineer
Cardiff Software

#include <disclaimer>
typedef std::Disclaimer<Cardiff> DisCard;



> -----Original Message-----
> From: itext-questions-bounces@(protected)
> [mailto:itext-questions-bounces@(protected)
> Behalf Of Glen
> Self
> Sent: Friday, August 11, 2006 5:08 AM
> To: itext-questions@(protected)
> Subject: Re: [iText-questions] Mixing text and lines
>
>
> Paulo Soares <psoares <at> consiste.pt> writes:
>
> >
> > The cb.moveTo(50,50) shouldn't be there, you are starting a
> path and not
> > ending it before you add the text.
> >
> > Paulo
>
> Thanks Paulo,
> Am I correct in assuming that cb.moveto is used only for
> graphics and needs a
> cb.stroke to terminate it then?
>
>
>
>
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.