Bug 11102

Summary: pdftohtml: 'Error : Bad color' is written through html output in -stdout mode
Product: poppler Reporter: Nanning Buitenhuis <nanning>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Nanning Buitenhuis 2007-05-30 02:03:04 UTC
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
Comment 1 Albert Astals Cid 2007-05-30 10:51:27 UTC
will be fixed in 0.6 rc1 that we are releasing in hours, thanks for the patch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.