Table of Contents

Class PdfFormAutoFieldStyle

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

This class offers the necessary properties and methods to control the style of the automatically generated PDF form fields

[ClassInterface(ClassInterfaceType.AutoDual)]
public class PdfFormAutoFieldStyle
Inheritance
PdfFormAutoFieldStyle
Inherited Members

Constructors

PdfFormAutoFieldStyle()

public PdfFormAutoFieldStyle()

Properties

BackColor

Gets or sets the form field background color in an automatically generated PDF form

public PdfColor BackColor { get; set; }

Property Value

PdfColor

BorderColor

Gets or sets the PDF form field border color in an automatically generated PDF form

public PdfColor BorderColor { get; set; }

Property Value

PdfColor

BorderStyle

Gets or sets the form field border style in an automatically generated PDF form

public PdfBorderStyle BorderStyle { get; set; }

Property Value

PdfBorderStyle

Export

Gets or sets a flag indicating if the field is exported by a submit form action. The default value of the property is true

public bool Export { get; set; }

Property Value

bool

Flatten

Gets or sets a flag indicating if the form field is flattened. The default value of the property is false

public bool Flatten { get; set; }

Property Value

bool

ForeColor

Gets or sets the form field fore color in an automatically generated PDF form

public PdfColor ForeColor { get; set; }

Property Value

PdfColor

ReadOnly

Gets or sets a flag indicating if the field is read only. The default value of the property is false

public bool ReadOnly { get; set; }

Property Value

bool

Required

Gets or sets a flag indicating if the field should have a value at the time it is exported by a submit form action. The default value of the property is false

public bool Required { get; set; }

Property Value

bool

Methods

SetFont(PdfFont)

Use the given previously created PDF font when the automatically generated PDF form field needs a font

public void SetFont(PdfFont pdfFont)

Parameters

pdfFont PdfFont

The PDF font

SetFont(StdFontBaseFamily)

Use the given standard PDF font when the automatically generated PDF form field needs a font

public void SetFont(StdFontBaseFamily standardFont)

Parameters

standardFont StdFontBaseFamily

The standard font

SetFont(byte[], FontStyle)

Use a font given by its binary data and style

public void SetFont(byte[] fontData, FontStyle fontStyle)

Parameters

fontData byte[]

The font data

fontStyle FontStyle

The font style

SetFont(Font, bool)

Use the given system font when the automatically generated PDF form field needs a font

public void SetFont(Font systemFont, bool embedSystemFont)

Parameters

systemFont Font

The system font

embedSystemFont bool

A flag indicating if the system font will be embedded in PDF. Only the PDF form submit buttons support embedded system fonts.

SetFont(string, FontStyle, bool)

Use a font given by its family name and style

public void SetFont(string familyName, FontStyle fontStyle, bool embedSystemFont)

Parameters

familyName string

The font family name

fontStyle FontStyle

The font style

embedSystemFont bool

A flag indicating if the system font will be embedded in PDF. Only the PDF form submit buttons support embedded system fonts.