<?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%2FChunk_Text</id>
		<title>Java/PDF RTF/Chunk Text - История изменений</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%2FChunk_Text"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/PDF_RTF/Chunk_Text&amp;action=history"/>
		<updated>2026-04-22T12:15:20Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/PDF_RTF/Chunk_Text&amp;diff=5772&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/Chunk_Text&amp;diff=5772&amp;oldid=prev"/>
				<updated>2010-06-01T05:58:31Z</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;Версия 05:58, 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/Chunk_Text&amp;diff=5771&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/Chunk_Text&amp;diff=5771&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;== Chunk style: LINE_CAP_ROUND ==&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.Color;&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.pdf.PdfContentByte;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class LINECAPROUNDPDF {&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;LINECAPROUNDPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      Chunk chunk;&lt;br /&gt;
      chunk = new Chunk(&amp;quot;Multiple lines&amp;quot;);&lt;br /&gt;
      chunk.setUnderline(new Color(0xFF, 0x00, 0x00), 0.0f, 0.3f, 0.0f, 0.4f, PdfContentByte.LINE_CAP_ROUND);&lt;br /&gt;
      document.add(chunk);&lt;br /&gt;
    } catch (Exception ioe) {&lt;br /&gt;
      System.err.println(ioe.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;
== LINE_CAP_PROJECTING_SQUARE and LINE_CAP_BUTT ==&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.Color;&lt;br /&gt;
import java.io.FileOutputStream;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import com.lowagie.text.Chunk;&lt;br /&gt;
import com.lowagie.text.Document;&lt;br /&gt;
import com.lowagie.text.DocumentException;&lt;br /&gt;
import com.lowagie.text.FontFactory;&lt;br /&gt;
import com.lowagie.text.Paragraph;&lt;br /&gt;
import com.lowagie.text.pdf.PdfContentByte;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class LINE_CAP_PROJECTING_SQUARE_and_LINE_CAP_BUTT {&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;LINE_CAP_PROJECTING_SQUARE_and_LINE_CAP_BUTT.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
&lt;br /&gt;
      Chunk c = new Chunk(&amp;quot;Multiple lines&amp;quot;, FontFactory.getFont(FontFactory.HELVETICA, 24));&lt;br /&gt;
      c.setUnderline(new Color(0x00, 0xFF, 0x00), 5.0f, 0.0f, 0.0f, -0.5f, PdfContentByte.LINE_CAP_PROJECTING_SQUARE);&lt;br /&gt;
      c.setUnderline(new Color(0x00, 0x00, 0xFF), 0.0f, 0.2f, 15.0f, 0.0f, PdfContentByte.LINE_CAP_BUTT);&lt;br /&gt;
      document.add(c);&lt;br /&gt;
    } catch (Exception ioe) {&lt;br /&gt;
      System.err.println(ioe.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;
== Multiple Lined Text ==&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.Color;&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.pdf.PdfContentByte;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class MultipleLinedTextPDF {&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;MultipleLinedTextPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      Chunk chunk;&lt;br /&gt;
      chunk = new Chunk(&amp;quot;Multiple lines&amp;quot;);&lt;br /&gt;
      chunk.setUnderline(new Color(0xFF, 0x00, 0x00), 0.0f, 0.3f, 0.0f, 0.4f, PdfContentByte.LINE_CAP_ROUND);&lt;br /&gt;
      chunk.setUnderline(new Color(0x00, 0xFF, 0x00), 3.0f, 0.0f, 0.0f, -0.5f, PdfContentByte.LINE_CAP_PROJECTING_SQUARE);&lt;br /&gt;
      chunk.setUnderline(new Color(0x00, 0x00, 0xFF), 0.0f, 0.2f, 15.0f, 0.0f, PdfContentByte.LINE_CAP_BUTT);&lt;br /&gt;
      document.add(chunk);&lt;br /&gt;
    } catch (Exception ioe) {&lt;br /&gt;
      System.err.println(ioe.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;
== Text Background ==&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.Color;&lt;br /&gt;
import java.io.FileOutputStream;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import com.lowagie.text.Chunk;&lt;br /&gt;
import com.lowagie.text.Document;&lt;br /&gt;
import com.lowagie.text.DocumentException;&lt;br /&gt;
import com.lowagie.text.FontFactory;&lt;br /&gt;
import com.lowagie.text.Paragraph;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class TextBackgroundPDF {&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;TextBackgroundPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      Chunk high = new Chunk(&amp;quot;highlighted&amp;quot;);&lt;br /&gt;
      high.setBackground(new Color(0xFF, 0x00, 0x00));&lt;br /&gt;
      Paragraph p = new Paragraph(&amp;quot;The following chunk is &amp;quot;);&lt;br /&gt;
      p.add(high);&lt;br /&gt;
      document.add(p);&lt;br /&gt;
    } catch (Exception ioe) {&lt;br /&gt;
      System.err.println(ioe.getMessage());&lt;br /&gt;
    }&lt;br /&gt;
   document.close();&lt;br /&gt;
  }&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;
== Vertical Text ==&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.Image;&lt;br /&gt;
import com.lowagie.text.PageSize;&lt;br /&gt;
import com.lowagie.text.pdf.BaseFont;&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.PdfTemplate;&lt;br /&gt;
import com.lowagie.text.pdf.PdfWriter;&lt;br /&gt;
public class VerticalTextPDF {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    Document document = new Document(PageSize.A4, 50, 50, 50, 50);&lt;br /&gt;
    try {&lt;br /&gt;
      PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(&amp;quot;VerticalTextPDF.pdf&amp;quot;));&lt;br /&gt;
      document.open();&lt;br /&gt;
      PdfTemplate template = writer.getDirectContent().createTemplate(20, 20);&lt;br /&gt;
      BaseFont bf = BaseFont.createFont(&amp;quot;Helvetica&amp;quot;, &amp;quot;winansi&amp;quot;, false);&lt;br /&gt;
      String text = &amp;quot;Vertical&amp;quot;;&lt;br /&gt;
      float size = 16;&lt;br /&gt;
      float width = bf.getWidthPoint(text, size);&lt;br /&gt;
      template.beginText();&lt;br /&gt;
      template.setFontAndSize(bf, size);&lt;br /&gt;
      template.setTextMatrix(0, 2);&lt;br /&gt;
      template.showText(text);&lt;br /&gt;
      template.endText();&lt;br /&gt;
      template.setWidth(width);&lt;br /&gt;
      Image img = Image.getInstance(template);&lt;br /&gt;
      img.setRotationDegrees(90);&lt;br /&gt;
      PdfPTable table = new PdfPTable(1);&lt;br /&gt;
      table.addCell(new PdfPCell(img));&lt;br /&gt;
      document.add(table);&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;/div&gt;</summary>
			</entry>

	</feed>