• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: PDF plugin pagination

PDF plugin pagination 12 years 6 days ago #22931

  • werner4
  • werner4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Ahoi,

is it possible to add pagination on every page of the created pdf? Just like "page 1 of 5".
I've searched for "dompdf pagination" and found this (code.google.com/p/dompdf/wiki/FAQ):
<script type="text/php">
 
        if ( isset($pdf) ) {
 
          $font = Font_Metrics::get_font("helvetica", "bold");
          $pdf->page_text(72, 18, "Header: {PAGE_NUM} of {PAGE_COUNT}", $font, 6, array(0,0,0));
 
        }
</script>

But it doesn't work. Even when I add the code to „PHP PDF Pre-Processing Scripts“.

Additionally I tried to use CSS but it didn't work, too:
@page {
    @bottom {
	content: "Page " counter(page) " of " counter(pages)
    }
}

Hopefully someone can help.
Best wishes.
The administrator has disabled public write access.

PDF plugin pagination 12 years 4 days ago #22973

  • werner4
  • werner4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Does nobody know how to solve this problem?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!