Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7593843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:16:16+00:00 2026-05-30T21:16:16+00:00

I have created a pdf file containing a table in many pages and I’m

  • 0

I have created a pdf file containing a table in many pages and I’m trying to add a repeated footer (in each page) to my document.

How can I do that with Zend_Pdf_Table Component ?

Thanks a lot for help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:16:18+00:00Added an answer on May 30, 2026 at 9:16 pm
    I hope this will help you 
    
    /*** TABLE_HEADER **/
                $page_header = new My_Pdf_Table(0);
                //header row
                $row_h = new My_Pdf_Table_Row();    
                //header left column
                $head_left = new My_Pdf_Table_Column();             
                $head_left->setText("Students Header");                      
                $cols_header[] = $head_left;    
                //header right column
                $head_right = new My_Pdf_Table_Column();
                $head_right->setText("");                   
                $cols_header[] = $head_right;
    
                $row_h->setColumns($cols_header);
                $page_header->addRow($row_h);               
    
                /*** TABLE_HEADER ends **/
    
                /*** TABLE FOOTER ***/
                $page_footer = new My_Pdf_Table(0);
                //footer row
                $row_f = new My_Pdf_Table_Row();    
    
                //footer left column
                $col_left = new My_Pdf_Table_Column();
                $col_left->setText("Students footer");   
                $cols_footer[] = $col_left; 
    
                //footer right column
                $col_right = new My_Pdf_Table_Column();
                $col_right->setText("@@CURRENT_PAGE");   
                $cols_footer[] = $col_right;
    
                $row_f->setColumns($cols_footer);
                $page_footer->addRow($row_f);   
                /*** TABLE FOOTER ends***/
    

    after your logic add following lines

                      // in code after ur logic             
    
                $pdf->setHeader($page_header);
                $pdf->setFooter($page_footer);
    
                // add table to page                 
                $page->addTable($table, 10, 10);
    

    and you will get your header and footer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A have created a pdf file from an .aspx page using the wkhtmltopdf converter.
Hi I have created a PDF file with an image in it, I want
I am trying to add an existing PDF (created otherwise) to a PDF created
I have a PDF file (not created by me - I have no control
I have a row of buttons, which all create a pdf file which I
I have used following code to create a simple PDF file. It executes fine
I have created this report using BIRT and phpjavabridge <?php header(Content-type: application/pdf); header(Content-Disposition: inline;
I'm using html2fpdf for creating PDF documents. Now once I have created that, I
see my post . Here I am getting latest created file in each sub
I have created a pdf version of our rails application using the Prawn plugin,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.