You can't do this;
under.addTemplate(stamp.getImportedPage(overlay,1),3,38);
because overlay is already being used in:
PdfStamper stamp = new PdfStamper(overlay,baosPDF);
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Monday, April 30, 2007 2:50 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] PDFstamper help
>
> Thank you for the reply Paulo.
> I don't think I understand.
> Do you mean I can do with out this line?
> PdfReader overlay = new PdfReader(srctemplate);
> Thanks for any help.
>
>
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
>
> > You can't use overlay twice and I can't see whay you
> > would want to do it,
> > it's already there in PdfStamper.
> >
> > Paulo
> >
> > ----- Original Message -----
> > From: <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Friday, April 27, 2007 7:59 PM
> > Subject: [iText-questions] PDFstamper help
> >
> >
> > > Hello All,
> > > I think I am doing this correct, but it's not
> > working,
> > > so most likely not!
> > >
> > > Anyway here is what my code looks like:
> > > //srctemplate = the template I want to place over
> > my
> > > data file
> > > PdfReader overlay = new PdfReader(srctemplate);
> > > PdfStamper stamp = new
> > PdfStamper(overlay,baosPDF);
> > > PdfContentByte under ;
> > > under = stamp.getUnderContent(1);
> > > under.addTemplate(stamp.getImportedPage(overlay,
> > 1),
> > > 3, 38);
> > > stamp.close();
> > >
> > > I assume I have several issues, but I'm just not
> > > seeing them.
> > > Any help would be greatly appraciated.
> > > Thank you, B
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.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/