Open a document in editor and click on 'File >> print' menu. Select printing options to print either in printing device or file.
Following problems are observed:
a. There is no margin, header and footer. Header can contain the file name with path. Footer may contain the page number. There must be some default margin all sides.
b. Content at the bottom of page is appearing incomplete. The same is observed at the top of next page.
c. Extra blank pages printed. Looks like the calculation of number of pages required is incorrect.
Look into following classes:
org.apex.base.menu.PrintFileMenu
org.apex.base.util.PrintUtil
Also, move alll printing related activities from PrintFileMenu to PrintUtil and make PrintUtil a service which can be used not only to print text files but also to print graphic images.
Problem c is resolved now.