title: How can I create fixed-width paragraphs with PDFbox?
body: <p>I can insert simple text like this:</p>
  
  <pre><code>document = new PDDocument();
  page = new PDPage(PDPage.PAGE_SIZE_A4);
  document.addPage(page);
  PDPageContentStream content = new PDPageContentStream(document, page);
  content.beginText();
  content.moveTextPositionByAmount (10 , 10);
  content.drawString ("test text");
  content.endText();
  content.close();
  </code></pre>
  
  <p>but how can I create a paragraph similar to HTML using the width attribute?</p>
  
  <pre><code>&lt;p style="width:200px;"&gt;test text&lt;/p&gt;
  </code></pre>