Novell Cool Solutions

Print to DjVu through KPrinter



By:

December 18, 2006 11:20 am

Reads:4,317

Comments:0

Score:Unrated

Print/PDF

License:
GPL

Download ps2djv

This is kprinter’s pseudo-printer for creation of djvu files (files with very
high compression ratio) by printing from any application.

When choosing an existing file for saving, it is possible to append to
the file.

Script ps2djvu4kdeprint.sh should be put somewhere in the path (e.g. ~/bin).
Parameters of the script ps2djvu4kdeprint.sh:
  -r<resolution> -c<1 or 0> <ps file name>
  1 means ‘print in color’, 0 means ‘black&white printing’
It can be used as a stand-alone tool for conversion of ps files to djvu.

Used packages: kdialog, netpbm and djvulibre

For Kdeprint setting one can add to
~/.kde/share/apps/kdeprint/specials.desktop
a new printer section with parameters:
  Command=ps2djvu
  Comment=Local file
  Description=Print to Djvu file
  File=0
  Icon=fileprint
  Name=Print to file (Djvu)

and put the files ps2djvu.desktop and ps2djvu.xml to the directory
~/.kde/share/apps/kdeprint/filters

Then it should be possible to choose the pseudo-printer ‘Print to Djvu file’
and change its options (resolution, color) in kdeprint dialog.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS