[
https://issues.apache.org/jira/browse/FOP-3108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Steiner resolved FOP-3108.
--------------------------------
Fix Version/s: main
Resolution: Fixed
https://github.com/apache/xmlgraphics-fop-pdf-images/commit/53e5469d1c1c6590f4ac22267686738d8710296a
> [PATCH] 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
> Assignee: Simon Steiner
> Priority: Major
> Fix For: main
>
> Attachments: img-with-gradient.pdf, out1.pdf,
> patch_one_instance.diff, pdf-external-graphic-scaling-with-gradients.fo,
> sub_op.patch, submitted.patch, tiling.patch
>
>
> 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)