Prepare a small but complete standalone example that includes the image,
don't bother about the gif for now. Attach the code, the image and the
gif to the message. I'll tell you how to put the gif in the right place.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Sverre Moe
> Sent: Friday, March 23, 2007 10:10 AM
> To: [email protected]
> Subject: Re: [iText-questions] Overlay a transparent gif on
> another image
>
> Whatever I do I can't seem to get it right. I'm now using
> ColumnText to add both the text, tables and images.
> But I still get the previous problem when adding the images
> as absolute positions.
>
> PdfContentByte cb = writer.getDirectContent();
> ColumnText ct = new ColumnText(cb);
> ct.setSimpleColumn(0f, 0f, PageSize.A4.width() - 5,
> PageSize.A4.height() - 5, 18, Element.ALIGN_JUSTIFIED);
>
> First I add some text, a table and some text to the
> ct.addElement(). Then I add two images at the same absolute
> position 330 with cb.addImage()
> For last I add two tables with ct.addElement(), but these two
> are still aligned inside the image. How do I get the
> ColumnText to insert them after the image?
>
> I have found a temporary solution to this problem, but it is
> a ugly hack, 14 document.add(Chunk.NEWLINE) after adding the
> images. I would like to find a better solution
>
>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
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/