[kio] [Bug 336658] Some PDF previews show a wrong page size surrounding the picture with a white border or area

Leonardo Giordani giordani.leonardo at gmail.com
Fri Jun 27 07:43:49 BST 2014


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

--- Comment #4 from Leonardo Giordani <giordani.leonardo at gmail.com> ---
It turn out that the problem is in the way the PDF boxes are managed by the
thumbnailer. The "wrong" PDFs have a MediaBox which is larger that the TrimBox,
as it may happen since MediaBox is used to specify the whole page size, to
issue cropping inaccuracies etc. Many PDFs just specify MediaBox and TrimBox
the same size (when not intended for printing, probably) and everything works
perfectly in that case.

How does oKular deal with PDF boxes? Does it show the content of the TrimBox?

The "gs" command used in the thumbnailer may be corrected with "-dUseTrimBox",
which in my case returns a perfect preview.

May someone help me in fixing the bug? I mean testing, reviewing, committing,
etc? I never did a fix on the KDE codebase ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list