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 2022/11/17 23:28:00 UTC

[jira] [Updated] (FOP-3108) fo:external-graphic - PDF with gradient component not displayed correctly after scaling

     [ https://issues.apache.org/jira/browse/FOP-3108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Gibson  updated FOP-3108:
------------------------------
    Attachment: out1.pdf

> fo:external-graphic - PDF with gradient component not displayed correctly after scaling
> ---------------------------------------------------------------------------------------
>
>                 Key: FOP-3108
>                 URL: https://issues.apache.org/jira/browse/FOP-3108
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.7, 2.8
>            Reporter: Mark Gibson 
>            Priority: Major
>         Attachments: img-with-gradient.pdf, out1.pdf, pdf-external-graphic-scaling-with-gradients.fo
>
>
> Using PDF-Images to inject a PDF as an image (fo:external-graphic). Image/PDF has a gradient fill component.  When scaling the image, the gradient does not display properly.  Resulting from shifted gradient to no gradient depending on scale.
> *width scaling* All issues are found when scaling width by %
> *height scaling* Doesn't seem to even scale the image
>  
> Files attached for testing:
>  * *{{pdf-external-graphic-scaling-with-gradients.fo}}* - the FO file, with a selection of image inclusions at different scales and scaling methods
>  * *{{img-with-gradient.pdf}}* - the PDF image being injected in to rendered pdf, containing a gradient filled component.
>  * *{{out1.pdf}}* - the result of running fop on above
> Tested on Windows using FOP 2.7 and 2.8
> Command used to execute is
> {{fop.bat -fo pdf-external-graphic-scaling-with-gradients.fo -pdf out1.pdf}}



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