Forum How do I...?

Missing page-break

graphic-studio
Hello

I use PrinceXML with PHP and I've got the problem, that I dind't get any automatically page-breaks. It works when i put them in the css, but this isn't what I want. I read that there are problems with positined and floated Elements, but I removed all such elements.

My PHP PrinceXML Call:

include($_SERVER['DOCUMENT_ROOT'].'/global/wGlobal/scripts/prince.php');
$prince = new Prince('/var/local/bin/prince');
$prince->setLog($_SERVER['DOCUMENT_ROOT'].'/global/wGlobal/scripts/prince_log.txt');
$prince->setHttpUser('test'); //Changed to Post in Forum
$prince->setHttpPassword('test'); //Changed to Post in Forum
$prince->setHTML(true);
$prince->convert_string_to_passthru($preResult);


The $preResult is my HTML Document:

http://www.banklinth.ch/de/Ueber-uns/Bank-Linth/geschichte.php?viewmode=pdf&debug=true

This creates this PDF:

http://www.banklinth.ch/de/Ueber-uns/Bank-Linth/geschichte.php?viewmode=pdf

As you see, it has only one Page. Some content is missing.

Do you know, why does this happens?
mikeday
When run with --no-author-style it works, so there is definitely something in the CSS. Perhaps an element with a fixed height and "overflow: hidden"? I can try and track this down for you if you like.
graphic-studio
mikeday wrote:
When run with --no-author-style it works, so there is definitely something in the CSS. Perhaps an element with a fixed height and "overflow: hidden"? I can try and track this down for you if you like.


This would be great.
I cleaned some elements and force overflow:visible and height:auto now. But it doesn't help.
mikeday
In design.css there is this rule: "html {height:101%;}" which prevents the page from breaking.
graphic-studio
mikeday wrote:
In design.css there is this rule: "html {height:101%;}" which prevents the page from breaking.


Okay now it works.
Thank you.