[Poppler-bugs] [Bug 52228] New: Dynamic Thumbnail support missing in qt4 Page::thumbnail()
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 18 10:58:35 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=52228
Bug #: 52228
Summary: Dynamic Thumbnail support missing in qt4
Page::thumbnail()
Classification: Unclassified
Product: poppler
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: qt4 frontend
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: mj10777 at googlemail.com
Created attachment 64346
--> https://bugs.freedesktop.org/attachment.cgi?id=64346
diff of poppler-page.cc with needed changes
As apposed to other pdf-viewers, there is no support for Thumbnails if (I
assume) they have not built in [I have no pdf's that have them].
In the present code m_page->page->loadThumb returns false, because it cannot
find the data-stream (this being,I assume, the built in Thumbnails).
Adding the following would resolve this:
else
{
ret=renderToImage();
w=50;
h=75;
if (ret.width() > ret.height())
{
h=50;
w=75;
}
ret = ret.scaled(w,h,Qt::IgnoreAspectRatio);
}
whereby I have taken a small value for the size.
Adding this code would make the basic qt4 version of viewers more like other
pdf-viewers.
Mark Johnson
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list