title: Freemarker, PDF, Header/Footer and page-breaks
body: <p>A common use of Freemarker is the generation of a PDF.</p>
  
  <p>Unfortunally I have to generate a pdf with a lot of pages and "they" asking me to put an header with some information and a footer with somethings like "page 2/60" etc...</p>
  
  <p>Searching on web I found how to create a Macro template but it only share some common tags (like css) but it doesn't tell freemarker how to manage multipage PDF.</p>
  
  <p>In addition to this, sometimes I have, inside ftl, a "page-break css class" so I cant determine when and where a new page is created.</p>
  
  <p>Im using Freemakrer 2.3 on Java</p>
  
  <p>Thanks for any help.</p>