retext icon indicating copy to clipboard operation
retext copied to clipboard

Use reasonable borders when printing

Open red-kite opened this issue 6 years ago • 2 comments

When printing a document, page-borders are 4.23mm for all page-sizes on my system and therefore far to small.

For comfort i currently use following shortened patch for printing on A4 mostly:

Subject: [PATCH] Add simple border to pagelayout

 ReText/window.py | 1 +
 1 file changed, 1 insertion(+)

                printer.setCreator('ReText %s' % app_version)
+               printer.setPageMargins(20.0, 25.0, 13.0, 25.0, QPrinter.Millimeter)
                if globalSettings.paperSize:

red-kite avatar Jan 09 '19 22:01 red-kite

Just to make sure, you are using Qt WebKit renderer, right?

With QTextBrowser the borders should be fine, and with Qt WebEngine with my linked commit it should be fine too, just Qt WebKit still has this problem.

mitya57 avatar Feb 26 '19 13:02 mitya57

Yes, using WebKit – mainly because Retext's preview does not use my css stylesheet otherwise.

Can confirm – borders in printPreview with WebEngine are looking nice, even stylesheet seems to be recognized there but looking horrible either.

red-kite avatar Mar 27 '19 18:03 red-kite