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

Dave Roxburgh commented on FOP-3108:
------------------------------------

The attached submitted.patch addresses this issue where the external document 
page is embedded any number of times on any number of target document pages. It 
is a patch to fop-pdf-images 60ea09b8b596ffdc2252bf4adc42331ec913638a

There are some cases where pattern transformation is still not 100% perfect - 
the margin on the simple-page-master source/target affects the transformation 
required but doesn't seem to be available at the point the affine transform is 
calculated.

[^submitted.patch]

> [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, 
> submitted.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)

Reply via email to