AddWatermarkAnnotationFromImageID

Annotations

Description

Adds a watermark annotation with a fixed-print storage matrix from an embedded image

Syntax

Delphi

Function AddWatermarkAnnotationFromImageID(Left, Top, Width, Height: Double; ImageID: Integer; ScaleX, ScaleY, OffsetX, OffsetY: Double; Const Title: WideString): Integer;

Parameters

Left, Top, Width, HeightAnnotation rectangle
ImageIDEmbedded image returned by AddImageFrom*
ScaleX, ScaleYHorizontal and vertical fixed-print scale factors
OffsetX, OffsetYFixed-print translation offsets
TitleOptional annotation title

Return value

1 when the annotation was added, 0 for an invalid image id

Remarks

The annotation carries a /FixedPrint /Matrix (ISO 32000-1 12.5.6.17) so printers scale the appearance with the page; the appearance is a form XObject painting the image

See also

AddStampAnnotationFromImageID, AddPrinterMarkAnnotationFromImageID