title: Dynamically create textbox rotated by 180 degrees
body: <p>I would like to create a Word document with multiple text boxes that serve as name badges. Each name appears twice, once set normally and once rotated by 180 degrees. Later, they are printed on paper, cut and folded, so they can stand on a table.</p>
  
  <p>I am using docx4j to generate the DOCX file. My idea is to have a <strong>fragment</strong> in one Word file that serves as a template <strong>for a single name badge</strong>. I'd like to load that template and fill the placeholders with real names. Multiple fragments are then concatenated and written to a second Word template, so ultimately I have a list with multiple name badges. The paper I use allows two name badges on each page (i.e. four text boxes).</p>
  
  <p>However, I fail implementing this with docxj4. This is what I tried:</p>
  
  <p>(1) First, I tried filling a single name badge. The placeholders got filled correctly, but the rotated text box of my Word template (input) became an ordinary (not rotated) text box in the output file.</p>
  
  <p>(2) I also tried <code>MainDocumentPart#addParagraph(String)</code> and created the entire paragraph myself, using XML code generated in Word (where the text box was rotated). The output generated by docx4j, however, again did not respect the rotation. It created two text boxes, but when I view them in Word now, I even cannot rotate them there anymore. It seems like the generated text boxes are different from those created by Word in the first place.</p>
  
  <p><strong>Long story short, how can I create a rotated text box with docx4j?</strong></p>
  
  <p>It would be very convenient, if I could have a Word template to layout the name badges, but if I would have to create the entire thing programatically, it would be fine, too. Also, other ways of rotating text would be okay for me. But it seems like text boxes are the only objects in Word that can actually be rotated by 180 degrees.</p>