[Poppler-bugs] [Bug 32410] New: Zoom not working in pdftohtml

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 15 05:59:17 PST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=32410

           Summary: Zoom not working in pdftohtml
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: sebastien.prudhomme at gmail.com


Hi,

Just to let you know that zoom parameter is not working at all in pdftohtml.

After comparing the Poppler version of pdftohtml to the original one on
http://sourceforge.net/projects/pdftohtml/, i think that this patch is needed:

--- poppler-0.15.3/utils/pdftohtml.cc.rmap      2010-12-15 13:18:31.000000000
+0100
+++ poppler-0.15.3/utils/pdftohtml.cc   2010-12-15 13:26:46.000000000 +0100
@@ -401,7 +401,7 @@

   if (htmlOut->isOk())
   {
-    doc->displayPages(htmlOut, firstPage, lastPage, 72, 72, 0,
+    doc->displayPages(htmlOut, firstPage, lastPage,
static_cast<int>(resolution*scale), static_cast<int>(resolution*scale), 0,
                      gTrue, gFalse, gFalse);
        if (!xml)
        {
@@ -460,7 +460,7 @@
       psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(),
           doc->getCatalog(), NULL, firstPage, lastPage, psModePS, w, h);
       psOut->setDisplayText(gFalse);
-      doc->displayPages(psOut, firstPage, lastPage, 72, 72, 0,
+      doc->displayPages(psOut, firstPage, lastPage,
static_cast<int>(resolution*scale), static_cast<int>(resolution*scale), 0,
           gTrue, gFalse, gFalse);
       delete psOut;

I've tested it successfully in my environment.

Regards

-- 
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