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
torotoro 

renderas PDF strange text showing buttom of the page...

I'm trying to create PDF page and getting a strange text showing at the bottom of the page.

I'm very new to coding...

 

Can anyone tell me why I'm getting these text and how to fix?

 

the strange text is;

"JanuaryFeburaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember

2010201120122013201420152016

MonTueWedThuFriSatSun

 

Today"

 

and my code is:

<apex:page renderas="PDF" standardController="Opportunity">
<html>
<head>
  <style> 
     interger counter =0;
     body {font-family: Arial Unicode MS; FONT-SIZE:13px} 
     @page{
     size: portrait;
     @top-right {
        fnt-family:sans-serif;
        font-size:80%;
        content: "Page " counter(page)  " of " counter(pages);
    }
    }   
    .header{
    font-reight:bold;
    font-size:20px;} 

  </style>
 </head>

 <body>
<center>
<apex:outputtext value="TMU SALES ORDER REPORT" styleclass="header" />
<hr/>
</center>
<apex:form >

<apex:pageBlock >
    <apex:pageblocksection title="Customer Information" columns="2" >
    <apex:outputtext value="Customer Install Address" styleclass="header" />
    <apex:outputtext value="Invoice Address" styleClass="header" />
    <apex:outputField value="{!Opportunity.AccountID}" />
    <apex:outputtext value=""/>
    <apex:outputfield value="{!opportunity.Account.shippingStreet}" />
    <apex:outputfield value="{!opportunity.Account.billingStreet}" />
    <apex:outputfield value="{!opportunity.Account.shippingCity}" />
    <apex:outputfield value="{!opportunity.Account.billingCity}" />
    <apex:outputfield value="{!opportunity.Account.shippingState}" />
    <apex:outputfield value="{!opportunity.Account.billingState}" />
    <apex:outputfield value="{!opportunity.Account.shippingPostalCode}" />
    <apex:outputfield value="{!opportunity.Account.billingPostalCode}" />
    <br/>
    <b>    If Ship to Address is not Install Address: </b>
    <br/>
    <apex:outputtext value=""/>
    <apex:outputfield value="{!opportunity.Machine_Ship_To__c}" style="width:300px" />
    </apex:pageblocksection>
    <hr/>
         <apex:pageblocksection title="Contact Information" columns="2">
         <apex:outputfield value="{!Opportunity.Customer_Contact__c}"/>
         <apex:outputfield value="{!Opportunity.Customer_Contact__r.Phone}"/>
         <apex:outputfield value="{!Opportunity.Customer_Contact__r.Direct_Phone__c}"/>
         <apex:outputfield value="{!Opportunity.Customer_Contact__r.FAX}"/>
         <apex:outputfield value="{!Opportunity.Customer_Contact__r.Email}"/>
     </apex:pageblocksection>
  <hr/>
</apex:pageblock>
</apex:form>

<apex:pageblock >
    <apex:pageBlockSection >
    <apex:relatedList list="OpportunityLineItems"/>
    </apex:pageBlockSection>
</apex:pageblock>

</body>
</html>
</apex:page>

 Thanks.

 

Best Answer chosen by Admin (Salesforce Developers) 
jwetzlerjwetzler

I think the form component might be sucking it in. Since you're creating a PDF and can't use any inputs, remove the form component. Let me know if that fixes it for you.

All Answers

jwetzlerjwetzler

I think the form component might be sucking it in. Since you're creating a PDF and can't use any inputs, remove the form component. Let me know if that fixes it for you.

This was selected as the best answer
torotoro

That was it!

 

Thanks!!