Re: Mission Impossible: 1:1 PDF printing via GUI
On Thursday, February 27, 2025 9:37:07 PM CET Matthias Urlichs wrote:
> It did not work with KDE/okular (didn't scale, but shifted the content
> to the right).
> I did file upstream bugs, but evince and okular both have >200 open
> issues, which doesn't exactly inspire confidence that this will get
> solved "on its own" so to speak ��
Printing bugs is correctly a bit annoying thing to work with, also
because it might be a bug in all over the stack and it is at least not
something I'm likely going to prioritize that high on my own
>
> I might be a DD, but unfortunately that doesn't mean that I have
> sufficient knowledge of the "how the heck does printing a PDF from
> Gnome/KDE even work" kind. So I'd appreciate if somebody with such
> knowledge could collaborate with me on fixing this ��
in okular, it starts from generator_pdf
Okular::Document::PrintError PDFGenerator::print(QPrinter &printer)
and then it on unix likely ends up in
fileprinter.cpp in FilePrinter::doPrintFiles
where it actually tries to execute lpr in many cases if you aren't forcing
rasterize.
/Sune
- also sune@d.o and sune@k.o and others, currently hacking on Poppler
and Okular quite a bit
--
I didn’t stop pretending when I became an adult, it’s just that when I was a
kid I was pretending that I fit into the rules and structures of this world.
And now that I’m an adult, I pretend that those rules and structures exist.
- zefrank
Reply to: