ICEpdf
  1. ICEpdf
  2. PDF-850

IllegalArgumentException: Color parameter outside of expected range: Red Green Blue

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: 5.1.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      When rendering the provided PDF file the following exception is thrown and the PDF does not render:

      WARNING: Error parsing content stream.
      java.lang.IllegalArgumentException: Color parameter outside of expected range: Red Green Blue
      at java.awt.Color.testColorValueRange(Color.java:344)
      at java.awt.Color.<init>(Color.java:462)
      at org.icepdf.core.util.content.AbstractContentParser.consume_g(AbstractContentParser.java:185)
      at org.icepdf.core.util.content.NContentParser.parse(Unknown Source)
      at org.icepdf.core.pobjects.Page.init(Page.java:390)
      at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1152)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

        Activity

        Hide
        Patrick Corless added a comment -

        The PDF in question has gray colour value that is outside the expected range of 0->1.0. The value is actually -0.04 which is likely an issue with the PDF encoder.

        Touched up the to protected against negative values.

        Show
        Patrick Corless added a comment - The PDF in question has gray colour value that is outside the expected range of 0->1.0. The value is actually -0.04 which is likely an issue with the PDF encoder. Touched up the to protected against negative values.
        Hide
        Patrick Corless added a comment -

        Added code protection, PDF renders correct. Marking as resolved.

        Show
        Patrick Corless added a comment - Added code protection, PDF renders correct. Marking as resolved.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: