<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FPDF_RTF%2FTable_Nested</id>
		<title>Java/PDF RTF/Table Nested - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FPDF_RTF%2FTable_Nested"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/PDF_RTF/Table_Nested&amp;action=history"/>
		<updated>2026-04-22T15:48:16Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/PDF_RTF/Table_Nested&amp;diff=5977&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/PDF_RTF/Table_Nested&amp;diff=5977&amp;oldid=prev"/>
				<updated>2010-06-01T06:00:13Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 06:00, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/PDF_RTF/Table_Nested&amp;diff=5976&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/PDF_RTF/Table_Nested&amp;diff=5976&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Nested Table Cell ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.io.FileOutputStream;&lt;br /&gt;
import com.lowagie.text.Chunk;&lt;br /&gt;
import com.lowagie.text.Document;&lt;br /&gt;
import com.lowagie.text.Element;&lt;br /&gt;
import com.lowagie.text.Phrase;&lt;br /&gt;
import com.lowagie.text.Rectangle;&lt;br /&gt;
import com.lowagie.text.pdf.PdfContentByte;&lt;br /&gt;
import com.lowagie.text.pdf.PdfPCell;&lt;br /&gt;
import com.lowagie.text.pdf.PdfPTable;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class NestedTableCellPDF {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    Document document = new Document();&lt;br /&gt;
    try {&lt;br /&gt;
      PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(&amp;quot;NestedTableCellPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      PdfContentByte cb = writer.getDirectContent();&lt;br /&gt;
      PdfPTable pageTot = new PdfPTable(1);&lt;br /&gt;
      pageTot.getDefaultCell().setPadding(0f);&lt;br /&gt;
      pageTot.getDefaultCell().setBorder(Rectangle.NO_BORDER);&lt;br /&gt;
      pageTot.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);&lt;br /&gt;
      pageTot.setWidthPercentage(100f);&lt;br /&gt;
      PdfPTable cell = new PdfPTable(1);&lt;br /&gt;
      cell.getDefaultCell().setBorder(Rectangle.NO_BORDER);&lt;br /&gt;
      cell.getDefaultCell().setPadding(0f);&lt;br /&gt;
      PdfPCell info = new PdfPCell(new Phrase(&amp;quot;Outside&amp;quot;));&lt;br /&gt;
      info.setBorder(Rectangle.NO_BORDER);&lt;br /&gt;
      pageTot.addCell(info);&lt;br /&gt;
      PdfPCell shipment = new PdfPCell(new Phrase(new Chunk(&amp;quot;Cell&amp;quot;)));&lt;br /&gt;
      shipment.setFixedHeight(100);&lt;br /&gt;
      shipment.setPaddingTop(5f);&lt;br /&gt;
      shipment.setPaddingBottom(10f);&lt;br /&gt;
      shipment.setBorder(Rectangle.BOX);&lt;br /&gt;
      shipment.setVerticalAlignment(Element.ALIGN_TOP);&lt;br /&gt;
      shipment.setHorizontalAlignment(Element.ALIGN_CENTER);&lt;br /&gt;
      cell.addCell(shipment);&lt;br /&gt;
      pageTot.addCell(cell);&lt;br /&gt;
      document.add(pageTot);&lt;br /&gt;
    } catch (Exception e) {&lt;br /&gt;
      e.printStackTrace();&lt;br /&gt;
    }&lt;br /&gt;
    document.close();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Nested Tables Demo ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.io.FileOutputStream;&lt;br /&gt;
import com.lowagie.text.Document;&lt;br /&gt;
import com.lowagie.text.PageSize;&lt;br /&gt;
import com.lowagie.text.pdf.PdfPTable;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class NestedTablesPDF {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    Document document = new Document(PageSize.A4.rotate(), 10, 10, 10, 10);&lt;br /&gt;
    try {&lt;br /&gt;
      PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(&amp;quot;NestedTablesPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      PdfPTable table = new PdfPTable(4);&lt;br /&gt;
      PdfPTable nested1 = new PdfPTable(2);&lt;br /&gt;
      nested1.addCell(&amp;quot;1.1&amp;quot;);&lt;br /&gt;
      nested1.addCell(&amp;quot;1.2&amp;quot;);&lt;br /&gt;
      PdfPTable nested2 = new PdfPTable(1);&lt;br /&gt;
      nested2.addCell(&amp;quot;2.1&amp;quot;);&lt;br /&gt;
      nested2.addCell(&amp;quot;2.2&amp;quot;);&lt;br /&gt;
      table.addCell(nested1);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      &lt;br /&gt;
      table.addCell(nested2);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      table.addCell(&amp;quot;cell &amp;quot;);&lt;br /&gt;
      document.add(table);&lt;br /&gt;
      document.close();&lt;br /&gt;
    } catch (Exception de) {&lt;br /&gt;
      de.printStackTrace();&lt;br /&gt;
    }&lt;br /&gt;
    document.close();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Nested Tables without Point Position ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.io.FileOutputStream;&lt;br /&gt;
import com.lowagie.text.Document;&lt;br /&gt;
import com.lowagie.text.Table;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class NestedTablesWithoutPointPositionPDF {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    Document document = new Document();&lt;br /&gt;
    try {&lt;br /&gt;
      PdfWriter.getInstance(document, new FileOutputStream(&amp;quot;NestedTablesWithoutPointPositionPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      Table aTable = new Table(2, 2); // 4 rows, 4 columns&lt;br /&gt;
      aTable.setAutoFillEmptyCells(true);&lt;br /&gt;
      aTable.addCell(&amp;quot;2.2&amp;quot;);&lt;br /&gt;
      aTable.addCell(&amp;quot;2.1&amp;quot;);&lt;br /&gt;
      Table secondTable = new Table(2);&lt;br /&gt;
      secondTable.addCell(&amp;quot;0.0&amp;quot;);&lt;br /&gt;
      secondTable.addCell(&amp;quot;0.1&amp;quot;);&lt;br /&gt;
      aTable.insertTable(secondTable);&lt;br /&gt;
      aTable.addCell(&amp;quot;2.2&amp;quot;);&lt;br /&gt;
      &lt;br /&gt;
      document.add(aTable);&lt;br /&gt;
    } catch (Exception e) {&lt;br /&gt;
      System.err.println(e.getMessage());&lt;br /&gt;
    }&lt;br /&gt;
    document.close();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Two Nested Tables ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.awt.Point;&lt;br /&gt;
import java.io.FileOutputStream;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import com.lowagie.text.Document;&lt;br /&gt;
import com.lowagie.text.DocumentException;&lt;br /&gt;
import com.lowagie.text.Paragraph;&lt;br /&gt;
import com.lowagie.text.Table;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class TwoNestedTablesPDF {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    Document document = new Document();&lt;br /&gt;
    try {&lt;br /&gt;
      PdfWriter.getInstance(document, new FileOutputStream(&amp;quot;TwoNestedTablesPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      Table secondTable = new Table(2);&lt;br /&gt;
      secondTable.addCell(&amp;quot;0.0&amp;quot;);&lt;br /&gt;
      secondTable.addCell(&amp;quot;0.1&amp;quot;);&lt;br /&gt;
      secondTable.addCell(&amp;quot;1.0&amp;quot;);&lt;br /&gt;
      secondTable.addCell(&amp;quot;1.1&amp;quot;);&lt;br /&gt;
      Table aTable = new Table(4, 4); // 4 rows, 4 columns&lt;br /&gt;
      aTable.setAutoFillEmptyCells(true);&lt;br /&gt;
      aTable.addCell(&amp;quot;2.2&amp;quot;, new Point(2, 2));&lt;br /&gt;
      aTable.insertTable(secondTable, new Point(3, 3));&lt;br /&gt;
      aTable.addCell(&amp;quot;2.1&amp;quot;, new Point(2, 1));&lt;br /&gt;
      aTable.insertTable(secondTable, new Point(1, 3));&lt;br /&gt;
      document.add(aTable);&lt;br /&gt;
    } catch (Exception e) {&lt;br /&gt;
      System.err.println(e.getMessage());&lt;br /&gt;
    }&lt;br /&gt;
    document.close();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>