title: Creating Tagged PDF Document in Seam iText
body: <p>I am trying to create an <a href="http://webaim.org/techniques/acrobat/#tags" rel="nofollow">accessible PDF</a> using Seam and their <a href="http://docs.jboss.org/seam/snapshot/en-US/html/itext.html" rel="nofollow">iText implementation</a>. I cannot find any references to whether or not this is possible. It seems that iText itself can handle it; the PDF on <a href="http://itextpdf.com/examples/iia.php?id=271" rel="nofollow">this example</a> is tagged. But all of the PDFs that we create aren't and I can't seem to figure out how to add it.</p>
  
  <p>Here's some sample code from one of our documents:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;p:document xmlns:p="http://jboss.com/products/seam/pdf" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:h="http://java.sun.com/jsf/html" type="PDF" pageSize="letter" title="Letter" margins="15.0 40.0 20.0 10.0"&gt;
  
  
      &lt;f:facet name="header"&gt;
          &lt;p:font size="10" name="TIMES-ROMAN" style="bold"&gt;
              &lt;p:header borderWidth="0"/&gt;
              &lt;p:footer borderWidthTop="0" borderWidthBottom="0" alignment="center"&gt;
  FY #{handler.form.year}&lt;p:text value=" #{handler.form.name}"/&gt;&lt;p:text value="     "/&gt;CAN #{handler.form.number}&lt;p:text value="     "/&gt;Object Class #{handler.form.class}&lt;p:text value="     "/&gt;#{handler.form.time} 
              &lt;/p:footer&gt;
          &lt;/p:font&gt;
      &lt;/f:facet&gt;
  
      &lt;p:font size="10" name="TIMES-ROMAN"&gt;
          &lt;p:table columns="3" widthPercentage="100" widths="1 2 1"&gt;
          &lt;p:cell borderWidth="0"&gt;
                  &lt;p:image alignment="left" value="/assets/img/logo.PNG" scalePercent="5"/&gt;
          &lt;/p:cell&gt;
          &lt;p:cell borderWidth="0" horizontalAlignment="center" paddingTop="30"&gt;
              &lt;p:paragraph&gt;
  
                  WORKSHEET
              &lt;/p:paragraph&gt;
          &lt;/p:cell&gt;
  ... snip ...
  </code></pre>
  
  <p>I realize that's not the best code (I'm just pulling from a document I'll need to clean up). Still, any ideas on if Seam can actually put in PDF tags?</p>