Forum Bugs

SVG image pattern in flipped element with drop shadow

Our Web application produces HTML pages containing elements defined as follows:

- The HTML element contains an SVG element with a shape (e.g. a rectangle)
- The SVG shape is filled with an image pattern

In some cases, one or both of the following formatting options are present:

1. The HTML element is flipped with a scaling of -1 (horizontal and/or vertical)
2. A drop shadow is applied to the HTML element

When options 1 and 2 are not applied, or when only one of the two is applied, the PDF produced by Prince 13.5 is good, according to my tests (see cases 1, 2 and 3 in the attached file test-A). However, when both options 1 and 2 are present, the image pattern is not positioned correctly in the resulting PDF (see case 4 in test-A). The image position can be more obviously incorrect in the PDF when additional transforms are present, as shown in case 5 (test-B).
  1. test-A.html5.6 kB
  2. test-A.pdf67.4 kB
  3. test-B.html1.7 kB
  4. test-B.pdf62.3 kB
Thanks for the report. These issues are fixed in the latest builds, along with the fix for
@wangp - You are absolutely right. I just tested it and it works. Thank you very much!