Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: page-breaks in html or pdf?

From: juff:fax at: 5-Dec-2003 11:31

> The problem is, that if there is more than one doc for customer at one > batch, it is generated as multi-doc document (html or pdf) - but - some > of our customers complained that it is really difficult to print that > way. I chcecked out and did not find any way of how to issue something > like page-break in html. It is probably not even possible. What about > pdf? Is there any chance to insert page-break into pdf doc? > > So far the fastest fix seems to be parsing html doc, dividing it into > separate files - I could create some encapsulated tool for that, but I > would rather fix problem in our primary ERP system than go for > workarounds ...
In html you can force a page-break relative to a specific tag choose a tag - I think most will do - and add the page break property to it in an in-line style sheet for example using the h4 / 5 tags: <style> h4 {page-break-before:always} h5 {page-break-after:always} </style> Now just put in an <h4> when you want the page break to occur before the next information or <h5> when you want the page break to occur after... then IE will do a form feed in the appropriate places wow! I answered a question! - still know nothing about rebol :-) Regards John Uff [juff--fax--co--uk] tel: +44 1493 393411 fax: +44 1493 393811 The UK's Email / Fax Gateway