Oops... forgot it, sorry. Done now. On Tue, Sep 13, 2011 at 6:55 PM, Vincent Torri <vto...@univ-evry.fr> wrote: > > > On Tue, 13 Sep 2011, Enlightenment SVN wrote: > >> Log: >> epdf/poppler: Return correct page size. > > changelog + author > > Vincent > >> >> Return the page size used by the render function (inside page->display() >> code). >> This was resulting on a wrong page size when the MediaBox size was different >> from the CropBox size. >> >> >> >> Author: antognolli >> Date: 2011-09-13 14:49:30 -0700 (Tue, 13 Sep 2011) >> New Revision: 63362 >> Trac: http://trac.enlightenment.org/e/changeset/63362 >> >> Modified: >> trunk/PROTO/epdf/src/lib/poppler/epdf_poppler_page.cpp >> >> Modified: trunk/PROTO/epdf/src/lib/poppler/epdf_poppler_page.cpp >> =================================================================== >> --- trunk/PROTO/epdf/src/lib/poppler/epdf_poppler_page.cpp 2011-09-13 >> 16:59:25 UTC (rev 63361) >> +++ trunk/PROTO/epdf/src/lib/poppler/epdf_poppler_page.cpp 2011-09-13 >> 21:49:30 UTC (rev 63362) >> @@ -372,14 +372,20 @@ >> int h = 0; >> >> if (page) { >> + PDFRectangle box; >> + GBool crop; >> + >> rotate = page->page->getRotate (); >> + page->page->makeBox(72, 72, 0, false, false, >> + -1, -1, -1, -1, &box, &crop); >> + >> if (rotate == 90 || rotate == 270) { >> - w = (int)page->page->getMediaHeight (); >> - h = (int)page->page->getMediaWidth (); >> + h = box.x2 - box.x1; >> + w = box.y2 - box.y1; >> } >> else { >> - w = (int)page->page->getMediaWidth (); >> - h = (int)page->page->getMediaHeight (); >> + w = box.x2 - box.x1; >> + h = box.y2 - box.y1; >> } >> } >> >> >> >> ------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> Learn about the latest advances in developing for the >> BlackBerry® mobile platform with sessions, labs & more. >> See new tools and technologies. Register for BlackBerry® DevCon today! >> http://p.sf.net/sfu/rim-devcon-copy1 >> _______________________________________________ >> enlightenment-svn mailing list >> enlightenment-...@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn >> >> > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >
-- Rafael Antognolli ProFUSION embedded systems http://profusion.mobi ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel