[ https://issues.apache.org/jira/browse/FOP-3108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718995#comment-17718995 ]
Simon Steiner edited comment on FOP-3108 at 5/3/23 5:00 PM: ------------------------------------------------------------ what if you use in fop.xconf <renderer mime="application/pdf"> <form-xobject>true</form-xobject> </renderer> was (Author: ssteiner1): what if you use <renderer mime="application/pdf"> <form-xobject>true</form-xobject> </renderer> > [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 > Priority: Major > Attachments: img-with-gradient.pdf, out1.pdf, > patch_one_instance.diff, 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)