Note that there are some explanatory texts on larger screens.

plurals
  1. POPaginating in Pisa (xhtml2pdf) just repeats last page
    primarykey
    data
    text
    <p>I am using <a href="http://xhtml2pdf.appspot.com/static/pisa-en.html" rel="nofollow">Pisa</a> to produce a PDF file with pages that follow a common format. I am clearly doing something wrong as when I generate the PDF (either from from the command line or from the python API) I only ever see the last page repeated. </p> <p>Running the Pisa on the code below, I get three pages that each say "C Wednesday", when I'd expect to see three different pages with "A Monday", "B Tuesday", "C Wednesday".</p> <p>My current version of Pisa is <code>XHTML2PDF/pisa 3.0.33 (Build 2010-06-16)</code></p> <pre><code>&lt;html&gt; &lt;style&gt; /* 297 x 210 */ @page { size: a4 landscape; margin: 1cm; margin-bottom: 2.5cm; @frame header { -pdf-frame-content: headerContent; background-color:black; color:white; top : 0cm; margin-left: 0cm; margin-right: 14.5cm; height: 2.5cm; width: 14.9cm; } @frame lhs { -pdf-frame-content: lhs; background-color:white; color:black; top : 4.5cm; margin-left: 0cm; margin-right: 14.5cm; height: 13.5cm; width: 14.9cm; } @frame footer { -pdf-frame-content: footerContent; color:black; bottom: 1cm; margin-left: 1cm; margin-right: 24.5cm; height: 1cm; } } body { } #headerContent { text-align: center; background-color: black; color: white; } h1 { font-size: 200%; } #lhs-table { color:black; text-align: center; font-size:600%; } .big { font-size:200%; font-style:italic; } .day { text-align: center; background-color: black; color: white; width: 1.6cm; height: 1.3cm; } #footerContent { font-size: 200%; } &lt;/style&gt; &lt;body&gt; &lt;div&gt; &lt;div id="headerContent"&gt; &lt;h1&gt;&lt;br/&gt;HEADER&lt;br/&gt;&lt;/h1&gt; &lt;/div&gt; &lt;div id="lhs"&gt; &lt;table id="lhs-table" &gt; &lt;tr&gt; &lt;td&gt;&lt;span class="big"&gt;&lt;em&gt;A&lt;/em&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div id="footerContent"&gt; &lt;span class="day" &gt;Monday&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;pdf:nextpage /&gt; &lt;div&gt; &lt;div id="headerContent"&gt; &lt;h1&gt;&lt;br/&gt;HEADER&lt;br/&gt;&lt;/h1&gt; &lt;/div&gt; &lt;div id="lhs"&gt; &lt;table id="lhs-table" &gt; &lt;tr&gt; &lt;td&gt;&lt;span class="big"&gt;&lt;em&gt;B&lt;/em&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div id="footerContent"&gt; &lt;span class="day" &gt;Tuesday&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;pdf:nextpage /&gt; &lt;div&gt; &lt;div id="headerContent"&gt; &lt;h1&gt;&lt;br/&gt;HEADER&lt;br/&gt;&lt;/h1&gt; &lt;/div&gt; &lt;div id="lhs"&gt; &lt;table id="lhs-table" &gt; &lt;tr&gt; &lt;td&gt;&lt;span class="big"&gt;&lt;em&gt;C&lt;/em&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div id="footerContent"&gt; &lt;span class="day" &gt;Wednesday&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;pdf:nextpage /&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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.
    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