Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2818

PDF color spaces are lost when embedding PDF image

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • renderer/pdf
    • None

    Description

      When embedding a PDF image (via the fop pdf image plugin) into a page, that also contains a color definition with a custom color space (e.g. a Pantone full tone color), the color space definition is lost and the PDF can't be displayed correctly.

      After analyzing the generated PDF file I detected, that the "ColorSpace" entry for the Pantone color space was missing in the "Resources" dictionary. This bug was caused by FOP-2337, that introduced a "parent" resource directory. I adapted the populateDictionary method of the PDFResources class, so that the color space entries of the "parent" dictionary are not lost. @ssteiner: please check, if this is correct.

      Attachments

        1. kun_muutat_suomeenEN.pdf.pdf
          107 kB
          Simon Steiner
        2. test.fo
          0.5 kB
          Simon Steiner
        3. output_fixed.pdf
          7 kB
          Matthias Reischenbacher
        4. image.pdf
          26 kB
          Matthias Reischenbacher
        5. output_broken.pdf
          7 kB
          Matthias Reischenbacher
        6. test_case.xml
          0.7 kB
          Matthias Reischenbacher

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matthias8283 Matthias Reischenbacher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: