I have a similar odd thing happening with my tables.  It doesn't involve a
header.  I have a big table followed by several smaller ones.  On the first
page, everything looks great.  On subsequent pages, there is extra space
between the big table and the smaller ones.  I have wracked my brains
looking over my code to try and find something different between the pages,
but I can't (the pages are generated in a loop, so it has to be identical).
Anyone have any ideas?
    John

----- Original Message -----
From: "Cooremans, Rony" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 6:16 AM
Subject: [iText-questions] Headers


> Hello
>
> I make a header for my pdf doc with the folowing code
>
>
> ------------------------------------------ code
nippet  ----------------------------
> Table hoofd = new Table(4,1);
>
>           hoofd.setBorder(Rectangle.NO_BORDER);
>           Image logoImg = Image.getInstance(m_logofile);
>           Cell logo = new Cell(new Chunk(logoImg,-35,-30));
>           logo.setHorizontalAlignment(Rectangle.ALIGN_LEFT);
>           logo.setVerticalAlignment(Rectangle.ALIGN_CENTER);
>           logo.setBorder(Rectangle.NO_BORDER);
>
>           hoofd.addCell(logo);
>           Cell logotekst = null;
>           logotekst = new Cell(new Phrase(" " + m_defRapportTitel,new
font(Font.TIMES_NEW_ROMAN,14,Font.BOLD)));
>           logotekst.setHorizontalAlignment(Rectangle.ALIGN_LEFT);
>           logotekst.setVerticalAlignment(Rectangle.ALIGN_TOP);
>           logotekst.setBorder(Rectangle.NO_BORDER);
>           logotekst.setColspan(3);
>           hoofd.addCell(logotekst);
>           Phrase fraas = new Phrase();
>           fraas.add(hoofd);
>
>           m_header = new HeaderFooter(fraas,false);
>           m_header.setBorder(Rectangle.NO_BORDER);
>           m_doc.resetHeader();
>           m_doc.setHeader(m_header);
>
> ------------------------ end of code   --------------------
>
> The problem with this is that the image displays fine on the first page of
my document
> But on all the folowing pages it is moved about 0.5 cm to the right
> Anny 1 got a clue ?
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to