Luan O'Carroll wrote:
> 
> Is it possible to show page break for a styled document? And is it
> possible to show a print preview?
> 

Sorry my first answer was not *structured* enough.

There are two ways to print an XML document:

[1] Using "File|Print", which prints the CSS styled view you see on screen.

[2] In the case of DocBook, XHTML, DITA, etc, by converting the document
being edited to PostScript and then, by sending the generated PostScript
file to a PostScript Printer.



--> If you talk about [1]:

* We currently do not support the CSS way to force a page break when
printing the styled view. See http://www.w3.org/TR/REC-CSS2/page.html#forced

* There is currently no "File|Print Preview" menu item (except on the
Mac, where this is supported natively.)



--> If you talk about [2]:

* In the case of DocBook, you need to insert in the document being
edited a special processing instruction (e.g. <?hard-pagebreak?>). See
http://www.sagehill.net/docbookxsl/PageBreaking.html for a complete
description.

* Technically, it is possible (and even not too complicated using an
ad-hoc macro command --
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/ch02.html), to
convert an XML document to PostScript, to start Ghostscript to preview
it and if the user confirms it, to send the generated PostScript file to
a (user-chosen) PostScript printer.

(It is also possible to use PDF and Acrobat Reader instead of PostScript
and Ghostscript.)



Reply via email to