THotPDF.StampLoadedPageShape

THotPDF

 

Top  Previous  Next

Stamps a shape outline or fill on a loaded page

 

Delphi syntax:

procedure StampLoadedPageShape( PageIndex: Integer; const Tmpl: THPDFWatermarkTemplate );

 

Description

Resource category keys and graphics-state resource names are case-sensitive; the stamp reuses an existing resource only when it has the generated four-key shape /Type /ExtGState, /ca, /CA, and /BM /Normal, with matching requested opacity

Existing resources with a soft mask, a different blend mode, additional graphics-state definitions, or incompatible types remain unchanged, and the stamp receives a separate compatible resource; repeated compatible stamps can reuse that resource

Stamping one page preserves the content and resources of other pages, including pages sharing original resource dictionaries; existing content that temporarily changes graphics state should restore its q/Q scope before the appended stamp

When a stamp extends an existing content stream, graph transaction rollback restores the original stream data and resource bindings

Fill and stroke opacity are matched independently through /ca and /CA, using Tmpl.Base.OpacityFill and Tmpl.Base.OpacityStroke respectively

Stamps a shape outline or fill on a loaded page

Draws watermark paths and shapes on the page

 

See also: THotPDF