pdfStampAnnot
Create a Rubber Stamp annotation using one of the standard
C
int32_t __stdcall pdfStampAnnotA(PPDF IPDF, TRubberStamp SubType, double PosX, double PosY, double Width, double Height, const char* Author, const char* Subject, const char* Comment);
int32_t __stdcall pdfStampAnnotW(PPDF IPDF, TRubberStamp SubType, double PosX, double PosY, double Width, double Height, const wchar_t* Author, const wchar_t* Subject, const wchar_t* Comment);
Delphi
function pdfStampAnnotA(const IPDF: PPDF; SubType: TRubberStamp; PosX, PosY, Width, Height: Double; const Author, Subject, Comment: PAnsiChar): Integer; stdcall;
function pdfStampAnnotW(const IPDF: PPDF; SubType: TRubberStamp; PosX, PosY, Width, Height: Double; const Author, Subject, Comment: PWideChar): Integer; stdcall;
Purpose. Create a Rubber Stamp annotation using one of the standard named stamp appearances (Approved, Confidential, Draft, etc, mapped via StampNameOf).
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
SubType | Standard stamp name. |
PosX, PosY, Width, Height | Bounding box. |
Author, Subject, Comment | /T, /Subj, /Contents. |
Return value. The new annotation's handle; 0 on failure.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfStampAnnotA(IntPtr IPDF, TRubberStamp SubType, double PosX, double PosY, double Width, double Height, [MarshalAs(UnmanagedType.LPStr)] string Author, [MarshalAs(UnmanagedType.LPStr)] string Subject, [MarshalAs(UnmanagedType.LPStr)] string Comment);
public static extern int pdfStampAnnotW(IntPtr IPDF, TRubberStamp SubType, double PosX, double PosY, double Width, double Height, [MarshalAs(UnmanagedType.LPWStr)] string Author, [MarshalAs(UnmanagedType.LPWStr)] string Subject, [MarshalAs(UnmanagedType.LPWStr)] string Comment);
Area
Annotations
Category
Core
Exported names
pdfStampAnnotA
pdfStampAnnotW
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.