Bug 11102 - pdftohtml: 'Error : Bad color' is written through html output in -stdout mode
Summary: pdftohtml: 'Error : Bad color' is written through html output in -stdout mode
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: high major
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 02:03 UTC by Nanning Buitenhuis
Modified: 2007-05-30 10:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.