[Poppler-bugs] [Bug 11102] New: pdftohtml: 'Error : Bad color' is written through html output in -stdout mode

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 30 02:03:17 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=11102

           Summary: pdftohtml: 'Error : Bad color' is written through html
                    output in -stdout mode
           Product: poppler
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: high
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: nanning at elvenkind.com


utils/HtmlFonts.cc line 31:
  if (!(Ok(r)&&Ok(b)&&Ok(g))) {printf("Error : Bad color \n");r=0;g=0;b=0;}

Should be something like:
  if (!(Ok(r)&&Ok(b)&&Ok(g))) {
    if (!globalParams->getErrQuiet()) fprintf(stderr,"Warning : Bad color
(%d,%d,%d), reset to (0,0,0)\n",r,g,b);
    r=0;g=0;b=0;
  }

As an error it should be written to stderr,
it should obey the -q switch,
if you continue it's a warning,
and it should give all the info available


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list