![]() |
PageEdit new feature...
Would it be possible to add the command "Print..." to the "File" menu?
Sigil has that command but prints the source code of the xhtml file. In some cases, I'd like to print the output of one xhtml file (and not its source code) and with PageEdit so far I can't do it. Thanks in advance. Rubén |
I don't think it would be too difficult (famous last words!). I can take a stab at this.
|
Quote:
|
Quote:
Sometimes proofreading needs every page to be visible, e.g. spread out on a table. What I've been doing is using calibre to convert the Book to DOCX, and then print the Chapter from Word. BR |
Well it's not at all as simple as WebKit's view()->print(), but it's not impossible either.
One thing to keep in mind is that QWebEnginePage::print() first renders the page into a temporary PDF and then prints that. Which means that everything will be printed exactly as it's seen on your screen. That includes light text on a dark background if someone happens to have the "Make PageEdit simulate a dark appearance in Dark Mode" option checked in PageEdit's preferences. So while I have a working proof of concept, I'm probably going to put a few guardrails on this thing so people can choose whether or not they really, really, really want to empty their black ink cartridge when printing under certain conditions! |
1 Attachment(s)
Quote:
Horrible, and I'll never make that mistake again! LibreOffice 7 has a few checkboxes: Attachment 184952 The two key settings being "Page Background" and "Print text in black". |
Would it be easier to have the print function do a print to PDF and then have the user do the physical print from a PDF viewer? I often find doing that an easier way to print a range of pages instead of the whole document.
|
Quote:
|
I'm not seeing much ability to change the pdf that's being generated/printed by QPrinter (other than margins, orientation and such), I'm afraid. What is is seen is what will be printed.
Quote:
|
This has been incorporated into the new PageEdit 1.5.0 release. Please give it a try and see what you think. None of Sigil's own dark mode features will print, but it's still going to print whatever is specified in the ebook's css. So there's a dismissable warning to be certain to note that the subsequent print preview will show you exactly what IS going to print. From there you can change margins, and print to any configured printer (including a PDF printer).
|
| All times are GMT -4. The time now is 09:25 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.