function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RepsGRepsG 

Using Pre tags in pageblock table when rendering as PDF

Hi,

 

I have a visualforce page which renders as a PDF. When i use the 'pre' tag in my pageblocktable. The table expands off the page. How do i stop this?

 

this is my pageblock table code.

<apex:outputPanelid="History">

 <apex:pageBlocktitle="Credit Case History">

   <apex:pageBlockTablestyle="text-align :center" value="{!mhistroy}"var="his"border="1"width="300px">

     <apex:columnheaderValue="Title"value="{!his.Title}"width="20%"/>

     <apex:columnheaderValue="Description"width="40%">

       <divstyle="font-family : Verdana;text-align : left">

          <pre>

             <apex:outputtextescape="false"value="{!his.Description}"/>

          </pre>

       </div>

     </apex:column>

     <apex:columnheaderValue="Status"style="text-align :center" value="{!his.status}"width="10%"/>

     <apex:columnheaderValue="Created Date"value="{!his.createdDate}"width="15%"/>

     <apex:columnheaderValue="Last Modified By"style="text-align :center" value="{!his.createdby}"width="15%"/>

   </apex:pageBlockTable>

 </apex:pageBlock>

</apex:outputPanel>

RepsGRepsG

This is a problem I am having and the above is the code that i am having a problem with.