SetaPDF_FormFiller The main class of the SetaPDF-FormFiller Component

File: /SetaPDF v2/FormFiller.php

Class hierarchy

Summary

Constants

VERSION

public const string SetaPDF_FormFiller::VERSION = '2.43.0.1899'

Version


Properties

$_document

The document instance

$_fields

The object representing the form fields collection

$_removeXfaInformation

protected boolean SetaPDF_FormFiller::$_removeXfaInformation = false

Flag defining how to handle XFA information if found

$_xfa

An instance allowing access to the XFA data of a form.


Methods

__construct()

The constructor.

Parameters
$document : SetaPDF_Core_Document

The document instance

cleanUp()

public SetaPDF_FormFiller::cleanUp (
void
): void

Release objects to free memory and cycled references.

After calling this method the instance of this object is unusable.

getDocument()

Get the document instance.

getFields()

Get the fields collection object.

getRemoveXfaInformation()

Get the flag how to handling XFA information.

getXfa()

Get the XFA helper object.

isNeedAppearancesSet()

public SetaPDF_FormFiller::isNeedAppearancesSet (
void
): boolean

Checks if the NeedAppearances flag is set or not.

save()

public SetaPDF_FormFiller::save (
[ boolean $update = true ]
): void

Save the document.

A proxy method to the documents save() method.

Parameters
$update : boolean

Update the document or rewrite it completely

See

setNeedAppearances()

public SetaPDF_FormFiller::setNeedAppearances (
[ boolean $needAppearances = true ]
): void

Set the NeedAppearances flag.

This flag indicates the viewer to re-render the form field appearances.

Parameters
$needAppearances : boolean

The NeedAppearances flag status

setRemoveXfaInformation()

public SetaPDF_FormFiller::setRemoveXfaInformation (
boolean $removeXfaInformation
): void

Set the flag for handling XFA information.

Parameters
$removeXfaInformation : boolean

The RemoveXfaInformation flag status