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
Admin 2467Admin 2467 

PDF paginate second page missing border

Hi everyone, any idea for missing border when using  -fs-table-paginate: paginate?

First page border is existing .User-added image
Second page is missing borderUser-added image

Here is my code
<apex:page standardController="Program__c" renderAs="pdf" applyBodyTag="false">

          <apex:variable var="rowIndex" value="{!1}"/>
          
        <head>
            <style> 
               @page {@bottom-center {content: "Page " counter(page) " of " counter(pages);}}
                body { font-family: 'Arial Unicode MS';} 
                 table{
                -fs-table-paginate: paginate;
                border-collapse: collapse;
                border-spacing: 0;
                border:0px
          }
            </style>            
        </head>

<apex:datatable style="width:720px;border-collapse:collapse" value="{!Program__c.Registration__r}" var="Registration">    
<apex:facet name="header">

  <table style="width:720px;border-collapse:collapse" >
            <tr>
            <td style="width:20px;text-align:center;border:1px solid #000;font-size: 10px" rowspan="2">No</td>
            <td style="width:50px;text-align:center;border:1px solid #000;font-size: 10px" rowspan="2">姓名</td>
            <td style="width:55px;text-align:center;border:1px solid #000;font-size: 10px" rowspan="2">會員編號</td>
            <td style="width:55px;text-align:center;border:1px solid #000;font-size: 10px" rowspan="2">收據編號</td>   
            <td style="text-align:center;border:1px solid #000;font-size: 10px" colspan="12">出席日期</td>
            <td style="width:70px;text-align:center;border:1px solid #000;font-size: 10px" rowspan="2" >備註</td> 
        </tr>
        <tr>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td style="text-align:right;border:1px solid #000">&nbsp;</td>
        </tr>
    </table>
</apex:facet>

 
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

Please refer to the below link which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/180493/header-border-not-getting-from-2nd-page-in-pdf

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Admin 2467Admin 2467
Thanks Khan Anas.But i already check these article and doesn't work.