Bug 468414 - I can't print any djvu file on my computer, and I don't know why.
Summary: I can't print any djvu file on my computer, and I don't know why.
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: DjVu backend (show other bugs)
Version: 22.12.1
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-12 04:54 UTC by qidawei98
Modified: 2023-05-13 14:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
djvu file for testing (2.31 MB, image/vnd.djvu+multipage)
2023-05-13 14:30 UTC, qidawei98
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qidawei98 2023-04-12 04:54:24 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. open any djvu file
2. click file
3. you will see that the print option is gray.

OBSERVED RESULT
print option is gray and you cannot print

EXPECTED RESULT
According to your official webpage, print djvu files should be available.

SOFTWARE/OS VERSIONS
Windows:  windows11 22h2
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

I'm not an experienced programmer at the moment. However, I'm happy to provide other useful information and help you to test.
Comment 1 Albert Astals Cid 2023-05-05 22:49:38 UTC
The code for printing djvu files doesn't work Windows at the moment.

I guess we could do a workaround like we do for PDF and just print it as it was an image...

Do you have a sample djvu file that I could use to see how potentially terrible/slow that printing would end up looking?
Comment 2 qidawei98 2023-05-13 14:30:27 UTC
Created attachment 158908 [details]
djvu file for testing

This is a djvu file that could be used for testing
Comment 3 qidawei98 2023-05-13 14:32:12 UTC
(In reply to Albert Astals Cid from comment #1)
> The code for printing djvu files doesn't work Windows at the moment.
> 
> I guess we could do a workaround like we do for PDF and just print it as it
> was an image...
> 
> Do you have a sample djvu file that I could use to see how potentially
> terrible/slow that printing would end up looking?

I've uploaded a file as an attachment.