ICEpdf
  1. ICEpdf
  2. PDF-870

Section of PDF rendered black

    Details

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

      Description

      With the provided PDF file there is a section of the PDF that is rendered as black. Initial testing with the 5.1.2 release I could see an exception in the logs but I wasn't able to reproduce this in recent tests. The issue looks to have started with the 5.0.6 release as the section renders fine with 5.0.5.

        Activity

        Arran Mccullough created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44290 Tue Mar 24 11:42:49 MDT 2015 patrick.corless PDF-870 added rounding code for a bbox that's just under 1x1 so we make sure we paint it.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/TilingPattern.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44291 Tue Mar 24 11:43:24 MDT 2015 patrick.corless PDF-870 tweaked how indexed colours are selected, closer to what specification defines. experimental.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/Indexed.java
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.2 [ 10970 ]
        Hide
        Patrick Corless added a comment -

        There where a couple problems here. The first was an issue in how we interpreted the Indexed colour value in the colour space. The second was the image tile used to fill the background in question was < 1x1 in size, actually just less then 0.97x0.97. So to help get the tile to render instead of the current fill colour (black) a little rounding was added as java2d needs integers.

        PDF renders correctly now.

        Show
        Patrick Corless added a comment - There where a couple problems here. The first was an issue in how we interpreted the Indexed colour value in the colour space. The second was the image tile used to fill the background in question was < 1x1 in size, actually just less then 0.97x0.97. So to help get the tile to render instead of the current fill colour (black) a little rounding was added as java2d needs integers. PDF renders correctly now.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: