Discussion:
[jira] [Updated] (FOP-2818) PDF color spaces are lost when embedding PDF image
Matthias Reischenbacher (JIRA)
2018-10-04 19:06:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Reischenbacher updated FOP-2818:
-----------------------------------------
Attachment: output_broken.pdf
image.pdf
test_case.xml
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Assignee: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, output_broken.pdf, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-10-04 19:12:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Reischenbacher resolved FOP-2818.
------------------------------------------
Resolution: Fixed
Assignee: simon steiner (was: Matthias Reischenbacher)

Fixed as part of http://svn.apache.org/viewvc?view=revision&revision=1842844
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Assignee: simon steiner
Priority: Critical
Attachments: image.pdf, output_broken.pdf, output_fixed.pdf, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-10-04 19:04:00 UTC
Permalink
Matthias Reischenbacher created FOP-2818:
--------------------------------------------

Summary: PDF color spaces are lost when embedding PDF image
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Assignee: Matthias Reischenbacher


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-10-04 19:09:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Reischenbacher updated FOP-2818:
-----------------------------------------
Attachment: output_fixed.pdf
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Assignee: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, output_broken.pdf, output_fixed.pdf, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
simon steiner (JIRA)
2018-10-09 15:02:01 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

simon steiner reopened FOP-2818:
--------------------------------
Assignee: (was: simon steiner)
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, output_broken.pdf, output_fixed.pdf, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
simon steiner (JIRA)
2018-10-09 15:03:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

simon steiner updated FOP-2818:
-------------------------------
Attachment: test.fo
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
simon steiner (JIRA)
2018-10-09 15:03:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16643580#comment-16643580 ]

simon steiner commented on FOP-2818:
------------------------------------

This commit breaks some pdf to pdf examples
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
simon steiner (JIRA)
2018-10-09 15:03:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16643580#comment-16643580 ]

simon steiner edited comment on FOP-2818 at 10/9/18 3:02 PM:
-------------------------------------------------------------

This commit breaks some pdf to pdf examples, see test.fo above


was (Author: ssteiner1):
This commit breaks some pdf to pdf examples
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
simon steiner (JIRA)
2018-10-09 15:03:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

simon steiner updated FOP-2818:
-------------------------------
Attachment: kun_muutat_suomeenEN.pdf.pdf
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-10-09 15:55:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16643665#comment-16643665 ]

Matthias Reischenbacher commented on FOP-2818:
----------------------------------------------

Fixed as part of http://svn.apache.org/viewvc?view=revision&revision=1843302
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-10-09 15:55:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Reischenbacher resolved FOP-2818.
------------------------------------------
Resolution: Fixed
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
simon steiner (JIRA)
2018-10-10 08:31:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16644621#comment-16644621 ]

simon steiner commented on FOP-2818:
------------------------------------

Would be good to see a unit test
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-10-10 13:43:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Reischenbacher reopened FOP-2818:
------------------------------------------

Ok, I will. I have detected today additional issues with shadings and patterns and I will fix that too.
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Matthias Reischenbacher (JIRA)
2018-10-10 19:24:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/FOP-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Reischenbacher resolved FOP-2818.
------------------------------------------
Resolution: Fixed

Added a junit test and fixed an additional bug with missing patterns and shadings as part of:

http://svn.apache.org/viewvc?view=revision&revision=1843494
PDF color spaces are lost when embedding PDF image
--------------------------------------------------
Key: FOP-2818
URL: https://issues.apache.org/jira/browse/FOP-2818
Project: FOP
Issue Type: Bug
Components: renderer/pdf
Reporter: Matthias Reischenbacher
Priority: Critical
Attachments: image.pdf, kun_muutat_suomeenEN.pdf.pdf, output_broken.pdf, output_fixed.pdf, test.fo, test_case.xml
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Loading...