GNOME Bugzilla – Bug 667629
Print djvu document on Windows
Last modified: 2018-05-22 14:27:28 UTC
Currently, printing djvu documents on Windows is not enabled, because on windows gtk-unix-print is not available. Evince uses two different methods for printing (see libview/ev-print-operation.c:ev_print_operation_new()), EV_TYPE_PRINT_OPERATION_PRINT and EV_TYPE_PRINT_OPERATION_EXPORT, depending on the functionality available in the backend. For printing without gtk-unix-print, only the EV_TYPE_PRINT_OPERATION_PRINT works, but unfortunately, the djvu backend does not support this. To get printing djvu documents on Windows working all that is needed is to implement EV_TYPE_PRINT_OPERATION_PRINT for the djvu backend.
Created attachment 204948 [details] [review] 0001-Use-cairo-for-printing-djvu-documents.patch This patch is only a starting point for fixing this bug. What we really need to fix this properly is a cairo backend for djvulibre.
Created attachment 205021 [details] patches.txt Improvement of the previous patch.
I have a local branch to handle different document dpi that would remove the SCALE_FACTOR hack in djvu backend. I just need to find to time to finish it.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/263.