Note that there are some explanatory texts on larger screens.

plurals
  1. POShow different footers on first and consecutive pages with pisa/xhtml2pdf
    primarykey
    data
    text
    <p>I'm having some trouble getting a footer to appear as one frame on the first page of a Pisa document, and as another frame on every other page. I have attempted to adapt the lastPage idea from <a href="https://stackoverflow.com/questions/4932073/pisa-and-lastpage">here</a>, but with no luck.</p> <p>Is it possible to do this? <code>&lt;pdf:nextpage /&gt;</code> doesn't seem to be the right thing here since the document has a long table that may (or may not) flow over multiple pages. <code>&lt;pdf:nextframe /&gt;</code> plus a first-page-only frame looks promising, though I'm not sure how to use this exactly.</p> <p>Currently I have (snipped for brevity):</p> <pre class="lang-css prettyprint-override"><code>&lt;style type="text/css"&gt; @page { margin: 1cm; margin-bottom: 2.5cm; @frame footer { -pdf-frame-content: footerFirst; -pdf-frame-border: 1; bottom: 2cm; margin-left: 1cm; margin-right: 1cm; height: 1cm; } @frame footer { -pdf-frame-content: footerOther; bottom: 2cm; margin-left: 1cm; margin-right: 1cm; height: 1cm; } &lt;/style&gt; </code></pre> <pre class="lang-html prettyprint-override"><code>&lt;body&gt; &lt;table repeat="1"&gt; &lt;!-- extra long table here --&gt; &lt;/table&gt; &lt;div id="footerContent"&gt;This is a footer&lt;/div&gt; &lt;!-- what goes here to switch frames after the first page? --&gt; &lt;div id="footerOther"&gt;&lt;/div&gt; &lt;/body&gt; </code></pre> <p>This places the same footer on each page. I need the same space left on each consecutive pages, but with no content in the frame.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload