Any clue on what page events are? I've already googled it, and again, and then some more... I don't like forums, they are slow, and i'm always susceptible of getting answers like yours. So i came here looking for the answer as a last resort. You don't have to help me. Just don't waste your time and mine with those kind of answers, please.
All i want is to place a footer in its right place... Paulo Soares-3 wrote: > > Any clue on how to use Google? Try a search with "itext page event". > Really hard. > > Paulo > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of NomadeWolf >> Sent: Monday, August 04, 2008 5:01 PM >> To: [email protected] >> Subject: Re: [iText-questions] Footer placed on page header >> >> >> Any clue on how to do that? >> >> >> Paulo Soares-3 wrote: >> > >> > HeaderFooter is not supported anymore. Use page events. >> > >> > Paulo >> > >> >> -----Original Message----- >> >> From: [EMAIL PROTECTED] >> >> [mailto:[EMAIL PROTECTED] On >> >> Behalf Of NomadeWolf >> >> Sent: Saturday, August 02, 2008 12:12 PM >> >> To: [email protected] >> >> Subject: [iText-questions] Footer placed on page header >> >> >> >> >> >> Hi, i use the following code to place a table with images as >> >> a page footer, >> >> the header gets placed in the right place, but the footer >> >> goes to the same >> >> place as the header (top of the page)... >> >> Does anyone knows why this behaviour occurrs?:... >> >> >> >> PdfPTable header = new PdfPTable(2); >> >> >> >> PdfPCell cell = new PdfPCell(img); >> >> cell.setBorderColor(new Color(255, 255, 255)); >> >> header.addCell(cell); >> >> >> >> String titsub= ""; >> >> if(titulo != null) { >> >> titsub = titulo; >> >> if(stitulo != null) >> >> titsub += "\n" + stitulo; >> >> cell = new PdfPCell(new Paragraph(titsub)); >> >> cell.setBorderColor(new Color(255, 255, 255)); >> >> header.addCell(cell); >> >> //doc.add(header); >> >> } >> >> Phrase p = new Phrase(); >> >> p.add(header); >> >> HeaderFooter f = new HeaderFooter(p, false); >> >> f.setBorder(0); >> >> f.setAlignment(Paragraph.ALIGN_CENTER); >> >> doc.setHeader(f); >> >> >> >> PdfPTable footer = new PdfPTable(4); >> >> //footer.setBorder(0); >> >> //footer.setWidth(100); >> >> >> >> com.lowagie.text.Image feder = >> >> com.lowagie.text.Image.getInstance("http://localhost:8888/mapv >> >> iewer/valimar-digital/imgs/icone_feder.gif"); >> >> feder.scalePercent(50); >> >> cell = new PdfPCell(feder); >> >> cell.setBorderColor(new Color(255, 255, 255)); >> >> footer.addCell(cell); >> >> >> >> com.lowagie.text.Image posc = >> >> com.lowagie.text.Image.getInstance("http://localhost:8888/mapv >> >> iewer/valimar-digital/imgs/icone_pos_conhecimento.gif"); >> >> posc.scalePercent(50); >> >> cell = new PdfPCell(posc); >> >> cell.setBorderColor(new Color(255, 255, 255)); >> >> footer.addCell(cell); >> >> >> >> com.lowagie.text.Image valimar = >> >> com.lowagie.text.Image.getInstance("http://localhost:8888/mapv >> >> iewer/valimar-digital/imgs/valimar_mini_logo.gif"); >> >> valimar.scalePercent(50); >> >> cell = new PdfPCell(valimar); >> >> cell.setBorderColor(new Color(255, 255, 255)); >> >> footer.addCell(cell); >> >> >> >> com.lowagie.text.Image itext = >> >> com.lowagie.text.Image.getInstance("http://localhost:8888/mapv >> >> iewer/valimar-digital/imgs/iText_logo.gif"); >> >> itext.scalePercent(50); >> >> cell = new PdfPCell(itext); >> >> cell.setBorderColor(new Color(255, 255, 255)); >> >> footer.addCell(cell); >> >> >> >> p = new Phrase(); >> >> p.add(footer); >> >> f = new HeaderFooter(p, false); >> >> f.setBorder(0); >> >> f.setAlignment(Paragraph.ALIGN_CENTER); >> >> doc.setFooter(f); >> >> >> >> Thanks in advance > > > 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 the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- View this message in context: http://www.nabble.com/Footer-placed-on-page-header-tp18788260p18830242.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
