Logo (picture) as a solution to the report watermark

Outline

On the "word as to increase the watermark function" has been describes how to add text watermark function in the Run Dry statements, including static and dynamic watermarks. After watermark function to report identification information embedded in the carrier, so that the information security, have a more efficient copyright protection methods.

In addition to the watermark text form, there is a situation in the form of pictures, such as the commonly used Logo.

The overall effect is as follows

1png

Logo as follows (in order to see more clearly, logo with a larger point of the picture)

2png

"Like word as to increase the watermark function" approach described in the article is currently only supports plain text form, want to achieve the same picture as Logo watermark function, and not explicitly stated in the product, so to reconsider solution.

Functional Analysis

Because it involves the pictures, so also consider a report on the Dry Run Support for the picture.

1, the cell Photo: A watermark is added to the entire report page, the picture is clear that the cell is not feasible, we can not give each cell are set on the picture, after addition to the picture also no way to re-engage in the data.

2, data layers: This feature can also add a picture for a report. However, although you can define the size of the layer, but it can only support a scaled picture, we are unable to achieve the desired watermark effect.

3, background: background image is set to the entire report, while in the "Style" also supports the "tiled" mode, which is obviously more in line with the effect of the watermark.

Specific implementation process

After finding ways to achieve, the next process will achieve operational again.

1, to prepare a report, and the cell background color to transparent

3png

Note: For overall effect, the entire line where the best two statements are set transparent background.

2, put the logo image to the application under

Here is a designer installation environment, the logo image (logo.png) placed in the demo / WEB-INF / reportFiles.

Note: it can also be a url address

3, add a background image for the report, and the "style" is set to "tile"

4png

4, see the web-side effects

5png

to sum up

These are the way to achieve the effect of image watermark, the operation is relatively simple, mainly to find a more reasonable way to solve. Of course, this realization has its drawbacks, such as the watermark can not let free to tilt at an angle, background report cells requires transparent and so on. But the tilt problem, a little hard point is to make art students to provide a tilt angle of the logo image can also be easily achieved.

Guess you like

Origin www.cnblogs.com/xiaohuihui-11/p/12047356.html