mPDF Manual – mPDF Variables

watermarkImgAlphaBlend

(mPDF >= 4.5)

watermarkImgAlphaBlend – Specify the blend mode for overlying watermark images

Description

void watermarkImgAlphaBlend

Specify the blend mode for overlying watermark images. Different blend modes work with different types of images. The blend modes are those specified in the PDF reference. The value of 'Normal' gives acceptable results for most cases. 'Multiply' may produce better results with overlying WMF or SVG images.

Values

$watermarkImgAlphaBlend

  • 'Normal'
  • 'Multiply'
  • 'Screen'
  • 'Overlay'
  • 'Darken'
  • 'Lighten'
  • 'ColorDodge'
  • 'ColorBurn'
  • 'HardLight'
  • 'SoftLight'
  • 'Difference'
  • 'Exclusion'

Default: 'Normal'

Changelog

Version Description
4.5 Variable was added.

See Also

Fork me on GitHub