FormSuite v6.0 - Updated
Processor Constructor(String,LicenseKeychain,Boolean)




Accusoft.FormsAPI.Net Assembly > Accusoft.Forms Namespace > Processor Class > Processor Constructor : Processor Constructor(String,LicenseKeychain,Boolean)
The path to a form set file that this processor object will load and use for determining how to identify forms and process fields.
A LicenseKeychain object that holds the unlock codes that will be used to unlock Accusoft's form processing components, which are created by the Processor.
Indicates whether the Processor should attempt to save cached analysis data the form set file.
Initializes a new instance of the Processor class.
Syntax
'Declaration
 
Public Function New( _
   ByVal formSetFileName As String, _
   ByVal licenseKeychain As LicenseKeychain, _
   ByVal allowSavingFormSet As Boolean _
)
'Usage
 
Dim formSetFileName As String
Dim licenseKeychain As LicenseKeychain
Dim allowSavingFormSet As Boolean
 
Dim instance As New Processor(formSetFileName, licenseKeychain, allowSavingFormSet)

Parameters

formSetFileName
The path to a form set file that this processor object will load and use for determining how to identify forms and process fields.
licenseKeychain
A LicenseKeychain object that holds the unlock codes that will be used to unlock Accusoft's form processing components, which are created by the Processor.
allowSavingFormSet
Indicates whether the Processor should attempt to save cached analysis data the form set file.
Exceptions
ExceptionDescription
Thrown if the formSetFileName or licenseKeychain parmeter is null.
Thrown if the Identification property of the FormSet, loaded from the file formSetFileName, contains Content that is not valid for the Type. For example, the Type is FormFix/Identification and the Content cannot be read by a FormFix IdentificationProcessor's ReadFromStream method.
Thrown if the formSetFileName does not point to a valid file.
Thrown if the formSetFileName points to a file that is corrupt or cannot be loaded as a form set file.
Remarks

This constructor is intended to be used when a form set file or corresponding form definition files are read-only on disk or should not be modified. The allowSavingFormSet parameter allows the caller to specify that saving the form set and form definitions is not allowed, and thus no attempt will be made to save any changes. The constructor overload Processor Constructor(String,LicenseKeychain) has the same behavior as if the allowSavingFormSet argument of this constructor is true.

This constructor loads a form set from the file specified by formSetFileName. If identification has not been performed against this form set since the last time the forms or template images were modified, then processing a form against this form set will result in analysis data of the form set being generated. This data is cached in memory as long as the Processor object is around.

This cached analysis data may be saved back to the form set file if the allowSavingFormSet is true, otherwise this data will not be saved to the file and it will have to be generated next time

See Also

Reference

Processor Class
Processor Members
Overload List

Is this page helpful?
Yes No
Thanks for your feedback.