0 Replies Latest reply on Dec 31, 2013 12:59 AM by kushtcs

    Issue creating a PDF using jBoss/SEAM(iText)

    kushtcs

      I am creating a PDF using jBoss/SEAM and I want to align the table text to the right. The principle is described here. However, when I try the following code, the text isn't aligned correctly:

      <p:paragraph alignment="right"><p:text value="BILL4512" /></p:paragraph>
      This is the snippet in its full context:

      <p:document xmlns:p="http://jboss.org/schema/seam/pdf"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core" pageSize="A4" type="PDF"
      orientation="portrait" margins="32 32 32 18" subject="Invoice"
      title="Invoice" author="Tdealer" creator="Tdealer" keywords="Invoice"
      xmlns:rich="http://richfaces.org/rich">

      p:table border="0" columns="1" spacingBefore="10"
        widthPercentage="100">
        <p:table borderWidthBottom="0" borderWidthTop="0" borderWidthLeft="0"
        borderWidthRight="0" columns="1" splitRows="true" keepTogether="true" widthPercentage="100">
        <p:cell borderWidthBottom="0" borderWidthTop="0" borderWidthLeft="0"
        borderWidthRight="0" align="right">
        <p:font name="Times New Roman" embedded="true" size="8">
        <p:paragraph alignment="right"><p:text value="BILL4512" /></p:paragraph>
        </p:font>
        </p:cell>
        </p:table>
      Thank you in advance for your help!