0 Replies Latest reply on Sep 7, 2010 5:58 AM by Baskar Dhanapal

    Pdf content alingment

    Baskar Dhanapal Newbie
      hi,

      I am trying to generating pdf in landscape mode. I have one image and two tables. I want to display image and two tables in a same line in an orderly manner in landscape mode. As of now i displayed image. But i am unable to dispaly the table next to image. The image is displaying in center of document under the image. I tried by using wrap and all but no use. I tried by usine <p:html> tag but again i didnt see the exepected output.

      Below is the content

      <p:document xmlns:p="http://jboss.com/products/seam/pdf"
                  xmlns:c="http://java.sun.com/jstl/core"
                  xmlns:f="http://java.sun.com/jsf/core"
                  xmlns:h="http://java.sun.com/jsf/html"
                  title="demo"
                  pageSize="A4"
                  orientation="landscape">

      <f:facet name="header">
        <p:font size="12">
          <p:header borderWidthTop="0" borderWidthBottom="0.4" alignment="center">
            <p:paragraph indentationLeft="50">Web App Demo</p:paragraph>
          </p:header>
        </p:font>
      </f:facet>
      <p:image value="#{exhibitImage}" wrap="false" width="200" height="200" scalePercentage="15"/>
        <p:table columns="2" headerRows="1" widthPercentage="25">
        <p:font family="Sylfaen,arial" size="6">
            <p:cell>Key</p:cell>
            <p:cell>Value</p:cell>
         <c:forEach var="x" items="${XXXXXX}" >
             <p:cell>${x.key}</p:cell>
             <p:cell>${x.value}</p:cell>
        </c:forEach>
         </p:font>
      </p:table>

      <p:table columns="2" headerRows="1"  widthPercentage="25">
        <p:font family="Sylfaen,arial" size="6">
            <p:cell>Key</p:cell>
            <p:cell>Value</p:cell>
        <c:forEach var="x" items="${YYYYYYYY}" >
             <p:cell>${x.key}</p:cell>
             <p:cell>${x.value}</p:cell>
        </c:forEach>
         </p:font>
      </p:table>
      </p:document>

      I need suggestion from anybody how to align the pdf content.

      Regards,
      Baskar