Manuals

 

SetaPDF_Signer::setRemoveNeedAppearancesFlag()

Description

class SetaPDF_Signer extends SetaPDF {
void setRemoveNeedAppearancesFlag ( [boolean $status=true] ) }

PDF documents (with form fields) can include a flag which tells the viewer application to rebuild the appearance streams of a form field at any time. This issue will destroy any digital signature, so Acrobat or the Adobe Reader will simply ignore the digital signature. If the SetaPDF-Signer API should sign a document where this flag is set and it's value is true it'll return an SetaPDF_Error object, because it makes no sense to sign this document. If you want to force the API to sign the document you can define this behaviour with this method.

If you pass true (or nothing) to this method, the API will remove the flag.

You should check the resulting document if all needed
content is viewable after the signing process.

Parameters

$status

True: remove the flag. False: don't remove the flag.