Paulo,
I thought you had to say what the stamp was then
tell it where to go. Clearly I am no expert, and I
readily admit that.
Maybe Im using the wrong function?
What I am trying to do is take a text file and turn it
into a pdf (thats my baosPDF ). Which I think I have
working well, then I want to take an existing PDF
document and place that over (or under, I need to test
and see what looks best), the text that makes up my
1st PDF.
Does that make sense? Am I going about this
correctly?
Once again thanks for any pointers.
Thanks, B
--- Paulo Soares <[EMAIL PROTECTED]> wrote:
> 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
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
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/