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

Ralf Habacker ralf.habacker at freenet.de
Sun Aug 21 14:57:17 UTC 2011


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





--- Comment #12 from Ralf Habacker <ralf habacker freenet de>  2011-08-21 14:57:17 ---
While analysing okular printing stuff I used the following script named lpr.bat
and a little hack in okular to search for lpr.bat instead of lpr (because
KStandardDirs::findExe did not find the batch file) to print from okular 

echo %* >> c:\kde\vc100d\tmp\lpr.log
set FILE=%7
set OUTPUT=%2
set OPTIONS=-sDEVICE=mswinpr2 -dNoCancel -dBATCH -dNOPAUSE -dBitsPerPixel=4
echo gswin32 %OPTIONS% -sOutputFile="\\spool\%2" %FILE% >>
c:\kde\vc100d\tmp\lpr.log
gswin32 %OPTIONS% -sOutputFile="\\spool\%2" %FILE% >> c:\kde\vc100d\tmp\lpr.log
if ERRORLEVEL 1 then goto error
exit 0

:error
exit 1

Unfortunally I found are some issues with this script. 

1. -dBitsPerPixel=4 degrades massive the resolution 
2. Using  -dBitsPerPixel=24 results into more than 2 GB big spool file and an
unusable workstation for at least 10 minutes when printing a pdf file
containing 24 page with several images.

-- 
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