Hello

I make a header for my pdf doc with the folowing code


------------------------------------------ code snippet  ----------------------------
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

Reply via email to