I am trying to call the PostLayoutFunc when a problem is found, currently to much space left at the bottom of a column due to the footnotes and the widows and orphans rules we have in css.
Used the Prince.trackBoxes to determine if there was to much space and that is working. Can call Prince and tell it to run twice, --max-passes=2 and the problem gets fixed the second pass. If I tell it to run once it does not get fixed of course. In the second passed I reduce the number for widows and orphans.
But what I really want to do is when I run Prince it finds any problems that we have told it to look for then call the PostLayoutFunc with the problem it found and then run the correct code to resolve the problem.
I cannot get this to work. Can something like this work?
New to Prince and to JavaScript so I do not know exactly where the problem is and a working example might help.
Thank You
Used the Prince.trackBoxes to determine if there was to much space and that is working. Can call Prince and tell it to run twice, --max-passes=2 and the problem gets fixed the second pass. If I tell it to run once it does not get fixed of course. In the second passed I reduce the number for widows and orphans.
But what I really want to do is when I run Prince it finds any problems that we have told it to look for then call the PostLayoutFunc with the problem it found and then run the correct code to resolve the problem.
I cannot get this to work. Can something like this work?
New to Prince and to JavaScript so I do not know exactly where the problem is and a working example might help.
Thank You