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
Iswarya SekarIswarya Sekar 

how to give alignments? can anyone help me!

<apex:page standardController="CPL_Protocols__c" renderAs="pdf" applyBodyTag="false" docType="html-5.0" standardStylesheets="false" applyHtmlTag="false" extensions="PrintPageController" showHeader="false">
    
    <apex:form >
        <apex:pageBlock title="CPL Request Information Detail">  
            <br></br>
        <table width="60%" cellspacing="0" cellpadding="0" border="0" align="left" >
            <apex:pageBlockSection title="Status" columns="1">
                
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.OwnerId}"/></table>
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Study_Protocol_Number__c}"/> </table>
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Approval_Step_Status__c}"/> </table>
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Status_Date_Time_Stamp__c}"/> </table>
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Protocol_Status__c}"/> </table>
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Labels_Due_Date__c}"/> </table>
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Number_of_Labels_to_Printed__c}"/> </table> 
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Contact__c}"/> </table>
                <table> <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.user_email__c}"/>  </table>
            </apex:pageBlockSection>
        </table>
    </apex:pageBlock>
    
    <apex:pageblock >
        <table width="60%" cellspacing="0" cellpadding="0" border="0" align="left" >
            <apex:pageBlockSection title="Study Information" columns="2" >
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Name}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Number_of_Study_Sites__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Study_Type__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Treatment_Period__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Country__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Study_Phase__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Study_Protocol_Description__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.No_of_Treatment_Grp__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Enrollment_Period__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Study_Duration__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Dosing_Regimen__c}"/>  
            </apex:pageBlockSection>
        </table>
    </apex:pageblock>
    
    
    <apex:pageblock >
        <table width="60%" cellspacing="0" cellpadding="0" border="0" align="left" >
            <apex:pageBlockSection title="Product Information" columns="2">
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Primary_Packaging__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Secondary_Packaging__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Label_Information__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Labeling_Lot_Number__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Storage_Requirements__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Max_Exposure_Time__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Label_Expiration_Date__c}"/>   
            </apex:pageBlockSection>
        </table>
    </apex:pageblock>
    
    <apex:pageblock >
        <table width="60%" cellspacing="0" cellpadding="0" border="0" align="left">
            <apex:pageBlockSection title="Packaging/Labeling Operation" columns="2" >
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Packaging_Site__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Labeling_Site__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Quantity_Required__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Sampling_Requirements__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.CreatedById}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Labeling_Package_Instructions__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Calculated_Qty_to_be_Prepared__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Randomization__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.Randomization_File_Acknowledgement__c}"/> 
                <apex:outputfield style="width:150px;height:25px; background:#B4C3D1;" value="{!CPL_Protocols__c.LastModifiedById}"/>   
            </apex:pageBlockSection>
        </table>
    </apex:pageblock>
    
</apex:form>

<apex:relatedList list="Parts__r" /> <br></br>
<apex:relatedList subject="{!CPL_Protocols__c}" list="Histories" /> 
<apex:relatedList subject="{!CPL_Protocols__c}" list="ProcessSteps" /> 

<apex:relatedList subject="{!CPL_Protocols__c}" list="ActivityHistories" /> 
<apex:relatedList subject="{!CPL_Protocols__c}" list="OpenActivities" /> 
<apex:relatedList subject="{!CPL_Protocols__c}" list="AttachedContentDocuments" />

</apex:page>

 
Iswarya SekarIswarya Sekar
can anyone please help me? its urgent!!
Prashant Pandey07Prashant Pandey07
You can add the code in notepad++ and select all the code and click tab key from the keyboard.
or you can download the plugin from notepad++

--
Thanks,
Prashant
Waqar Hussain SFWaqar Hussain SF
If you want to format VF/HTML, you can use any online formatting tool such as
http://htmlformatter.com/
Iswarya SekarIswarya Sekar
How to align that is generated as pdf From VF page
Waqar Hussain SFWaqar Hussain SF
What is the outcome? Can you attach the screen shot of the pdf?
Iswarya SekarIswarya Sekar
User-added image