You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/05/18 16:56:27 UTC

DO NOT REPLY [Bug 45027] New: Color 'blue' does not render correctly when ' fo:external-graphic' is present

https://issues.apache.org/bugzilla/show_bug.cgi?id=45027

           Summary: Color 'blue' does not render correctly when
                    'fo:external-graphic' is present
           Product: Fop
           Version: 0.93
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: an_tonio@mail.com
                CC: an_tonio@mail.com


I have tried to produce pdf documents either with blue text or embedding a svg
graphic with blue color in it (#0000FF, or rgb(0,0,255)), but this color does
not render correctly. However, when the embedding option is removed, blue text
does fine within the 'color' option in the fo/xsl document.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo:external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027

--- Comment #13 from Glenn Adams <gl...@skynav.com> 2012-04-07 01:42:03 UTC ---
resetting P2 open bugs to P3 pending further review

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo:external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo:external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027

--- Comment #14 from Luis Bernardo <lm...@gmail.com> 2012-04-21 23:26:28 UTC ---
issue happens with Adobe X 10.1.3 on the Mac, does not happen with Mac's own
Preview. seems an Adobe issue to me, just like the dull colors issue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo:external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027

--- Comment #11 from Glenn Adams <gl...@skynav.com> 2012-04-01 15:17:49 UTC ---
(In reply to comment #7)
> Thanks for the test files. I can now reproduce the effect. This is really
> strange. What I can tell you is that the text painting code in PDF doesn't
> change if I remove the opacity from the rectangle being painted AFTER the text.
> But what's important to note is that I've seen the effect only on Acrobat 8 but
> not on Acrobat 5 or GhostScript/GhostView. At the moment I have absolutely no
> clue why this happens. I'm attaching the two PDF files (with compression turned
> off) to demonstrate the difference. Maybe someone could check if the effect
> occurs on other Acrobat versions like 6 or 7 and report back here.
> 
> As a side-note: It's a bit strange that Batik paints the transparent rectangle
> as a bitmap as this is such a simple element. That could probably be improved
> somehow. That accounts for the increase in size when opacity is turned used,
> but it doesn't explain why the text color changes to a darker blue. There's
> also an inconsistency about how the coordinate system for the rectangle is set
> up between the two variants. But again, this doesn't account for the color
> change.

jeremias, does this bug need to stay in the needinfo state, or should it be
moved to resolved?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo:external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027

--- Comment #12 from Jeremias Maerki <je...@apache.org> 2012-04-02 05:42:07 UTC ---
Well, the bug is on NEEDINFO because what happens here is not understood, yet.
If anything, this marks a known problem but IMO it shouldn't be closed.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027





--- Comment #5 from Antonio Rivero <an...@mail.com>  2008-05-31 08:04:58 PST ---
Created an attachment (id=22044)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22044)
FO file to embed the SVG document (named email.svg)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027


Antonio Rivero <an...@mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




--- Comment #10 from Antonio Rivero <an...@mail.com>  2008-06-02 09:25:30 PST ---
(In reply to comment #7)
> Thanks for the test files. I can now reproduce the effect. This is really
> strange. What I can tell you is that the text painting code in PDF doesn't
> change if I remove the opacity from the rectangle being painted AFTER the text.
> But what's important to note is that I've seen the effect only on Acrobat 8 but
> not on Acrobat 5 or GhostScript/GhostView. At the moment I have absolutely no
> clue why this happens. I'm attaching the two PDF files (with compression turned
> off) to demonstrate the difference. Maybe someone could check if the effect
> occurs on other Acrobat versions like 6 or 7 and report back here.
> 
> As a side-note: It's a bit strange that Batik paints the transparent rectangle
> as a bitmap as this is such a simple element. That could probably be improved
> somehow. That accounts for the increase in size when opacity is turned used,
> but it doesn't explain why the text color changes to a darker blue. There's
> also an inconsistency about how the coordinate system for the rectangle is set
> up between the two variants. But again, this doesn't account for the color
> change.
> 

Actually I realized this problem when I printed a document using Acrobat 5,
(the blue was not printed correct). As you said, in the screen of Acrobat 5 the
blue renders accurate but it doesn't in the printer. Acrobat 8 is in this sense
‘more WYSIWYG’.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027


Antonio Rivero <an...@mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.93                        |0.94




--- Comment #2 from Antonio Rivero <an...@mail.com>  2008-05-19 07:23:10 PST ---
(In reply to comment #1)
> Can you try with 0.95beta and see if the problem persists? (possible duplicate
> of Bug #43274)
> 

I hve tried with 0.95beta and nothing changes.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027


Jeremias Maerki <je...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #7 from Jeremias Maerki <je...@apache.org>  2008-06-02 09:04:22 PST ---
Thanks for the test files. I can now reproduce the effect. This is really
strange. What I can tell you is that the text painting code in PDF doesn't
change if I remove the opacity from the rectangle being painted AFTER the text.
But what's important to note is that I've seen the effect only on Acrobat 8 but
not on Acrobat 5 or GhostScript/GhostView. At the moment I have absolutely no
clue why this happens. I'm attaching the two PDF files (with compression turned
off) to demonstrate the difference. Maybe someone could check if the effect
occurs on other Acrobat versions like 6 or 7 and report back here.

As a side-note: It's a bit strange that Batik paints the transparent rectangle
as a bitmap as this is such a simple element. That could probably be improved
somehow. That accounts for the increase in size when opacity is turned used,
but it doesn't explain why the text color changes to a darker blue. There's
also an inconsistency about how the coordinate system for the rectangle is set
up between the two variants. But again, this doesn't account for the color
change.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027





--- Comment #1 from Andreas L. Delmelle <ad...@apache.org>  2008-05-18 10:06:36 PST ---

Can you try with 0.95beta and see if the problem persists? (possible duplicate
of Bug #43274)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027


Jeremias Maerki <je...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #3 from Jeremias Maerki <je...@apache.org>  2008-05-29 23:59:11 PST ---
Please attach an FO file that demonstrates the problem. I can't reproduce the
problem with your description alone. Furthermore, can you elaborate on what you
mean by "does not render correctly"?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027





--- Comment #9 from Jeremias Maerki <je...@apache.org>  2008-06-02 09:06:10 PST ---
Created an attachment (id=22057)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22057)
Uncompressed PDF with opacity


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027





--- Comment #8 from Jeremias Maerki <je...@apache.org>  2008-06-02 09:05:33 PST ---
Created an attachment (id=22056)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22056)
Uncompressed PDF without opacity


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027





--- Comment #4 from Antonio Rivero <an...@mail.com>  2008-05-31 08:03:57 PST ---
Created an attachment (id=22043)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22043)
SVG file with blue text and an opaque box


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45027] Color 'blue' does not render correctly when 'fo: external-graphic' is present

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45027





--- Comment #6 from Antonio Rivero <an...@mail.com>  2008-05-31 08:06:44 PST ---
Hello FOP community

I have checked the problem again (Bug #45027) and actually this problem resides
in the SVG document. 

When the ‘opacity’ attribute (with a value less than 1) is included in a
determinate shape element, this affects the color of the text, even if such
text lies outside the shape range. That is what I mean ‘does not render
correctly’.

As an example, I attached a SVG file with blue text and a rect element with an
opacity attribute less than one. If you embed this with a FO/XSL file, the text
won’t be blue anymore.

Perhaps this issue belongs to the ‘SVG Component’, but it is up to you to
decide this...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.