[Bug 190497] okular: print menu items are disabled in windows

Ralf Habacker ralf.habacker at freenet.de
Mon Aug 22 20:39:20 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=190497





--- Comment #32 from Ralf Habacker <ralf habacker freenet de>  2011-08-22 20:39:20 ---
(In reply to comment #28)
> > Do okular not use poppler for rendering into an image ?
> Yes it does, but not using the Arthur backend as it sucks

fixed 

> > Where are the problems in qpainter, so that it cannot be used for printing too ?
> Problems in QPainter? We do not use QPainter at all in poppler when rendering
> with PDF files, 
sorry for beeing a little unspecific I meant Page::renderToPainter method,
which is only implemented for Arthur backend, which is not usable. 


>If you mean why we can not use the QImages we draw on screen to dump them on >the QPrinter it is because your screen as a 75dpi resolution and
> your printer a 600dpi one, so you end up either printing something that makes
> your eyes cry or something that is *huge*
agreed. 
Additional there are major differences between print and print preview. The
preview should not be rendered with the same resolution as the real print
because of the preview should not need more than a few seconds. 

Because Printing in okular is different from sceen drawing the solution on
windows is to tell QPrinter contructor which type of resolution it should use.
QPrinter constructor by default uses QPrinter::ScreenResolution (=96 dpi) 
which is used for generating previews. 

Calling QPrinter printer(QPrinter::PrintResolution) let it choose the
resolution from the printer driver first, overrideable by the print config
dialog, which is exactly what is required.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Kde-windows mailing list