Method AddPushButton

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

AddPushButton(string, double, double, double, double, string)

Adds a push button with a caption. Set Action to say what it does when clicked.

public PdfPushButton AddPushButton(string name, double x, double y, double width, double height, string caption)

Parameters

name string

A unique field name, without dots.

x double

Left edge of the button, in points.

y double

Bottom edge of the button, in points.

width double

Button width, in points.

height double

Button height, in points.

caption string

The text shown on the button.

Returns

PdfPushButton

The push button.

Exceptions

ArgumentException

The name is empty, contains a dot, or is already used.

InvalidOperationException

The document was created for PDF/A, where form fields are not supported yet.