|
August 11, 2001 Detecting A Page Overflow Tips: August 2001
Yehuda Shiran, Ph.D.
|
|
The event LayoutComplete fires when the DeviceRect element is done rendering. There are two possible reasons for the page to stop rendering. Either the source document is exhausted or the source overflows the page size. You can distinguish between them by the event property contentOverflow. Test event.contentOverflow. If it is true, then the source overflows the page. Otherwise, the source is exhausted.
The function
For more information on print templates, go to Column 89, Print Templates, Part I.
People who read this tip also read these tips: Look for similar tips by subject: |