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 "Mark Gibson (Jira)" <ji...@apache.org> on 2024/08/21 12:38:00 UTC

[jira] [Comment Edited] (FOP-3201) FOP PDF Images - Colors wrong when displaying area chart exported from Excel

    [ https://issues.apache.org/jira/browse/FOP-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17875471#comment-17875471 ] 

Mark Gibson  edited comment on FOP-3201 at 8/21/24 12:37 PM:
-------------------------------------------------------------

I added this xconf

{{<fop version="1.0">}}
{{  <renderers>}}
{{    <renderer mime="application/pdf">}}
{{      <form-xobject>true</form-xobject>}}
{{    </renderer>}}
{{  </renderers>}}
{{</fop>}}

When trying to open the resultant PDF in Adobe Acrobat Pro, I get
{quote}An error exists on this page. Acrobat may not display the page correctly.  ...
{quote}
When opening the resultant PDF in Chrome, if displays a fraction of the image.


was (Author: JIRAUSER294477):
I added this xconf

{{<fop verions="1.0">}}
{{  <renderers>}}
{{    <renderer mime="application/pdf">}}
{{      <form-xobject>true</form-xobject>}}
{{    </renderer>}}
{{  </renderers>}}
{{</fop>}}

When trying to open the resultant PDF in Adobe Acrobat Pro, I get
{quote}An error exists on this page. Acrobat may not display the page correctly.  ...
{quote}
When opening the resultant PDF in Chrome, if displays a fraction of the image.

> FOP PDF Images - Colors wrong when displaying area chart exported from Excel
> ----------------------------------------------------------------------------
>
>                 Key: FOP-3201
>                 URL: https://issues.apache.org/jira/browse/FOP-3201
>             Project: FOP
>          Issue Type: Bug
>            Reporter: Mark Gibson 
>            Priority: Major
>         Attachments: area-chart-image.pdf, area-chart.fo, out.pdf
>
>
> Hi.
> When exporting an Area chart from excel as a PDF - where there are two different colors depending upon whether the line is under or over the x-axis - the image when displayed in the final rendered PDF has incorrect color placement/change boundary.
> Attached three files:
> *area-chart.fo* - simple test FO file using external-graphic to import the image
> *area-chart-image.pdf* - the pdf image of the area chart
> *out.pdf* - Example rendered PDF using FOP 2.9
>  
> Command used to test
> {{    fop area-chart.fo -pdf out.pdf}}
> Tested against both FOP 2.8 and 2.9.  Both are broken, but the image in the rendered PDF can be different between 2.8 and 2.9.
>  
> _Please note, when opening the PDFs by clicking the attachment links, they show large gradients that are not displayed when opening the same files on Windows in either Chrome or Acrobat Pro DC_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)