Hi. I've run into a problem when changing margins in the middle of a document. What happens is that the content of the table does not respect the left and top margin. However, the borders of the table does! Below is the xml I feed into iTextXML. I'm also attaching the output pdf. The "margin tag" simply performs a document.setMargins(left, right, top, bottom); when encountered. I'm using iText 0.92 because we're at the end of a project and I don't feel I want to take the risk of upgrading right now unless I have to.
Thankful for any help. <?xml version="1.0" encoding="UTF-8" ?> <DOCTYPE ITEXT SYSTEM "http://www.lowagie.com/iText/itext.dtd"> <itext creationdate="Tue Mar 19 12:54:54 CET 2002" producer="iTextXML by lowagie.com"> <margin margins="0;0;0;0"/> <table cols="6" width="100%"> <row> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> </row> <row> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> </row> <row> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> <cell top="true" bottom="true" left="true" right="true"> weerer </cell> </row> </table> </itext>
pdf1.pdf
Description: Adobe PDF document