Well it seems like the most sensible thing to do, but for now and my limited
schedule I have to make a quick fix first.
2007/3/21, Bill Ensley <[EMAIL PROTECTED]>:
Why not just put the images together into one using Java, and then place
that one dynamically?
-Bill Ensley
www.bearprinting.com
------------------------------
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Sverre Moe
*Sent:* Wednesday, March 21, 2007 3:39 AM
*To:* Post all your questions about iText here
*Subject:* Re: [iText-questions] Overlay a transparent gif on another
image
I understand, but this gives me a new problem. My document is layed out
like this: Some Text - A Image - Some tables
If I positioned the image with this code:
image.scaleToFit(PageSize.A4.width(), PageSize.A4.height ());
image.setAlignment(Image.MIDDLE | Image.TEXTWRAP);
image.setAbsolutePosition(0, 350);
document.add(image);
With this code the image is aligned just below the upper text, but the
tables below are now inside the image. If I have to set them at absolute
position as well it seems like a lot of work. In order to find the absolute
position of the image I had a lot of trial and error to find the correct
position(0,350). I gues it will be harder to position all my tables below(4
tables).
2007/3/20, Paulo Soares <[EMAIL PROTECTED]>:
>
> You must place the images at absolute positions otherwise how would you
> know
> where to place the overlay?
>
> Paulo
>
> ----- Original Message -----
> From: "Sverre Moe" < [EMAIL PROTECTED]>
> To: "Post all your questions about iText here"
> <[email protected]>
> Sent: Tuesday, March 20, 2007 2:09 PM
> Subject: Re: [iText-questions] Overlay a transparent gif on another
> image
>
>
> >I dont understand exactly. I am not drawing a image, it already exist
> and
> >is
> > retrieved and displayed with the following code.
> > Image image = Image.getInstance(new URL(url));
> > image.scaleToFit(PageSize.A4.width(), PageSize.A4.height());
> > image.setAlignment(Image.MIDDLE | Image.TEXTWRAP);
> > document.add(image);
> >
> > In addition to this image I have a transparent gif which I want to
> overlay
> > on this. Or perhaps draw shapes directly onto it.
> >
> > 2007/3/20, Paulo Soares <[EMAIL PROTECTED] >:
> >>
> >>
> >> ----- Original Message -----
> >> From: "Sverre Moe" <[EMAIL PROTECTED]>
> >> To: < [email protected]>
> >> Sent: Tuesday, March 20, 2007 11:15 AM
> >> Subject: [iText-questions] Overlay a transparent gif on another image
> >>
> >> > How can this be achieved with iText or if it is possible? Maybe I
> could
> >> > just
> >> > read the image in memory and paint on it using Graphics2D, but this
> >> seems
> >> > like unnecessary extra work.
> >>
> >> Don't use Graphics2D. Draw the first image and then the GIF on top of
> it,
> >> the transparent parts will show, it's that simple.
> >>
> >> Paulo
> >>
> >>
> >>
> -------------------------------------------------------------------------
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> >> your
> >> opinions on IT & business topics through brief surveys-and earn cash
> >>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> iText-questions mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >> Buy the iText book: http://itext.ugent.be/itext-in-action/
> >>
> >
>
>
>
>
--------------------------------------------------------------------------------
>
>
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
>
--------------------------------------------------------------------------------
>
>
>
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
> >
>
>
> -------------------------------------------------------------------------
>
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/