signware_bapi.php File Reference
Detailed Description
SignWare Dynamic Development toolkit.
- Author:
- uko
This module accesses the SignWare b-api methods
Classes | |
| class | CapPlugin |
| Build a HTML string to instantiate the Browser plugin for the requested function. More... | |
| class | PadEntryDialog |
| Signature capture dialog. More... | |
| class | PadEntryOptions |
| Pad entry options, the root element of a pad entry descriptor. More... | |
| class | PlAction |
| Action object, an action is defined by an identifyer, an optional integer value and an optional string value. More... | |
| class | PlButton |
| Button element. More... | |
| class | PlComboBox |
| Combo box element. More... | |
| class | PlComboItem |
| Combo box items. More... | |
| class | PlCoordinate |
| Location and size coordinate for a visible element. More... | |
| class | PlDocument |
| Document element. More... | |
| class | PlFont |
| Font object, a font is defined by the font family, size and optional attributes. More... | |
| class | PlIdleTimeout |
| PlIdleTimeout object. More... | |
| class | PlImage |
| Image element. More... | |
| class | PlRectangle |
| Rectangle element. More... | |
| class | PlSlider |
| Slider element. More... | |
| class | PlTablet |
| Tablet object. More... | |
| class | PlText |
| Text element. More... | |
| class | PlTextEntry |
| Text entry element. More... | |
| class | PluginParameters |
| Helper class, plugin parameter container, an array of key equals value pairs. More... | |
| class | ScannerClass |
| Messages / Translations for Scanner capture and image cleaning module. More... | |
| class | ScannerDialog |
| A Scanner Dialog includes one or more ScannerWindow objects, optional ScannerSetting elements and optionally a few GUI elements (PlText and PlRectangle). More... | |
| class | ScannerEntryOptions |
| Scanner image capture options. More... | |
| class | ScannerMessage |
| Messages / Translations for Scanner capture and image cleaning module. More... | |
| class | ScannerMessages |
| Helper class that contains all messages in the Scanner capture plugin in english and german language. More... | |
| class | ScannerSetting |
| Container for one Scanner setting / parameter. More... | |
| class | ScannerWindow |
| Scanner Image capture options. More... | |
| class | ServiceAccess |
| ServiceAccess, info to access a web service. More... | |
Enumerations | |
| enum | eCapabilityCanReacquire |
| Scanner can acquire the image multiple times. More... | |
| enum | eCapabilityCanUserGui |
| Scanner driver supports user GUI and vendor GUI. More... | |
| enum | eCapabilityHasDuplex |
| Scanner has duplex feature. More... | |
| enum | eImageBmp |
| Image Format (ScannerEntryOptions.$mResultImage): Windows Bitmap, BMP. More... | |
| enum | eImageGif |
| Image Format(ScannerEntryOptions.$mResultImage): Graphics Interchange Format, GIF. More... | |
| enum | eImageJpeg |
| Image Format(ScannerEntryOptions.$mResultImage): Joint Photographic Experts Group, JPEG. More... | |
| enum | eImagePng |
| Image Format(ScannerEntryOptions.$mResultImage): Portable Network Graphics, PNG. More... | |
| enum | eImageTiff |
| Image Format(ScannerEntryOptions.$mResultImage): Tagged image file format, TIFF. More... | |
| enum | ePapersizeA0 |
| ePropertyPapersize: A0 More... | |
| enum | ePapersizeA1 |
| ePropertyPapersize: A1 More... | |
| enum | ePapersizeA2 |
| ePropertyPapersize: A2 More... | |
| enum | ePapersizeA3 |
| ePropertyPapersize: A3 More... | |
| enum | ePapersizeA4 |
| ePropertyPapersize: A4 More... | |
| enum | ePapersizeA5 |
| ePropertyPapersize: A5 More... | |
| enum | ePapersizeA6 |
| ePropertyPapersize: A6 More... | |
| enum | ePapersizeA7 |
| ePropertyPapersize: A7 More... | |
| enum | ePapersizeA8 |
| ePropertyPapersize: A8 More... | |
| enum | ePapersizeB2 |
| ePropertyPapersize: B2 More... | |
| enum | ePapersizeB3 |
| ePropertyPapersize: B3 More... | |
| enum | ePapersizeB4 |
| ePropertyPapersize: B4 More... | |
| enum | ePapersizeB5 |
| ePropertyPapersize: B5 More... | |
| enum | ePapersizeB6 |
| ePropertyPapersize: B6 More... | |
| enum | ePapersizeC3 |
| ePropertyPapersize: C3 More... | |
| enum | ePapersizeC4 |
| ePropertyPapersize: C4 More... | |
| enum | ePapersizeC5 |
| ePropertyPapersize: C5 More... | |
| enum | ePapersizeC6 |
| ePropertyPapersize: C6 More... | |
| enum | ePapersizeCustom |
| ePropertyPapersize: custom More... | |
| enum | ePropertyBitsPerPixel |
| Bit depth of the scan, 1, 8, 32. More... | |
| enum | ePropertyBrightness |
| Brightness of the scan. More... | |
| enum | ePropertyCaptureAsynchronous |
| Asynchronous vs Synchronous capture mode. More... | |
| enum | ePropertyContrast |
| Contrast of the scan. More... | |
| enum | ePropertyDeviceDescription |
| Device description. More... | |
| enum | ePropertyDeviceId |
| Device identifyer. More... | |
| enum | ePropertyDeviceName |
| Device name. More... | |
| enum | ePropertyDeviceType |
| Device type. More... | |
| enum | ePropertyDriverClassName |
| Driver class name. More... | |
| enum | ePropertyDriverName |
| Driver name. More... | |
| enum | ePropertyFirmwareVersion |
| Firmware version of the driver. More... | |
| enum | ePropertyForceImageSize |
| Scanner DirectShow: resize the captured image if the size exceeds the spicified width or height. More... | |
| enum | ePropertyHeight |
| Height of the scan. More... | |
| enum | ePropertyImageFormat |
| Image fformat of the scan. More... | |
| enum | ePropertyLightSource |
| Lightsource of the scan. More... | |
| enum | ePropertyOffsetX |
| Left offset of the scan. More... | |
| enum | ePropertyOffsetY |
| Top offset of the scan. More... | |
| enum | ePropertyPapersize |
| Property Papersize. More... | |
| enum | ePropertyResolutionX |
| Horicontal resolution of the scan. More... | |
| enum | ePropertyResolutionY |
| Vertical resolution of the scan. More... | |
| enum | ePropertyThreshold |
| Binarization threshold of the scan, only for black-white scans. More... | |
| enum | ePropertyThumbHeight |
| Thumbnail height. More... | |
| enum | ePropertyThumbWidth |
| Thumbnail width. More... | |
| enum | ePropertyVendorName |
| Vendor name. More... | |
| enum | ePropertyWidth |
| Width of the scan. More... | |
| enum | IMAGE_WINDOW |
| Scanner window class: Scanner image display window. More... | |
| enum | PL_ACTION_CANCEL |
| Action identifyer, Action Cancel. More... | |
| enum | PL_ACTION_ERASE |
| Action identifyer, Action Erase. More... | |
| enum | PL_ACTION_FILE_OPEN |
| Action identifyer, Action popup a file open selector. More... | |
| enum | PL_ACTION_FORMFIELD |
| Action identifyer, PlTextEntry, PlSlider or PlCombobox may be formfields. More... | |
| enum | PL_ACTION_GOPAGE |
| Action identifyer, Action goto page. More... | |
| enum | PL_ACTION_IMAGE_CLEANLINES |
| Action identifyer, Action clean lines (in an image). More... | |
| enum | PL_ACTION_IMAGE_CLEANRECT |
| Action identifyer, Action clean frames (of an image). More... | |
| enum | PL_ACTION_IMAGE_CLEANWEIGHT |
| Action identifyer, Action set the cleaning weight. More... | |
| enum | PL_ACTION_IMAGE_CROP |
| Action identifyer, Action crop (image). More... | |
| enum | PL_ACTION_IMAGE_EDIT |
| Action identifyer, Action set edit state active. More... | |
| enum | PL_ACTION_IMAGE_INVERT |
| Action identifyer, Action invert (image). More... | |
| enum | PL_ACTION_IMAGE_MIRROR |
| Action identifyer, Action mirror (image). More... | |
| enum | PL_ACTION_IMAGE_PENSIZE |
| Action identifyer, Action set a pen size. More... | |
| enum | PL_ACTION_IMAGE_ROTATE |
| Action identifyer, Action rotate (image). More... | |
| enum | PL_ACTION_IMAGE_UNDO |
| Action identifyer, Action undo last operation. More... | |
| enum | PL_ACTION_IMAGE_WHITENER |
| Action identifyer, Action clean background (of an image). More... | |
| enum | PL_ACTION_IMAGE_ZOOM |
| Action identifyer, Action zoom. More... | |
| enum | PL_ACTION_NEXT |
| Action identifyer, Action Next (page). More... | |
| enum | PL_ACTION_OK |
| Action identifyer, Action OK. More... | |
| enum | PL_ACTION_PREV |
| Action identifyer, Action Previous (page). More... | |
| enum | PL_ACTION_SCAN_IMAGE |
| Action identifyer, Action scan an image. More... | |
| enum | PL_ACTION_SCAN_SETTINGS |
| Action identifyer, Action display scanner settings dialog. More... | |
| enum | PL_ACTION_SCANNER_BITDEPTH |
| Action identifyer, Action set (scanner) bit depth. More... | |
| enum | PL_ACTION_SCANNER_BRIGHTNESS |
| Action identifyer, Action set (scanner) brightness. More... | |
| enum | PL_ACTION_SCANNER_CONTRAST |
| Action identifyer, Action set (scanner) contrast. More... | |
| enum | PL_ACTION_SCANNER_HEIGHT |
| Action identifyer, Action set (scanner) height [mm]. More... | |
| enum | PL_ACTION_SCANNER_LEFT |
| Action identifyer, Action set (scanner) left position [mm]. More... | |
| enum | PL_ACTION_SCANNER_LIGHTSOURCE |
| Action identifyer, Action set (scanner) lightsource. More... | |
| enum | PL_ACTION_SCANNER_PAPERSIZE |
| Action identifyer, Action set paper size. More... | |
| enum | PL_ACTION_SCANNER_RESOLUTION |
| Action identifyer, Action set (scanner) resolution. More... | |
| enum | PL_ACTION_SCANNER_SELECT |
| Action identifyer, Action select scanner source. More... | |
| enum | PL_ACTION_SCANNER_THRESHOLD |
| Action identifyer, Action set (BW) threshold. More... | |
| enum | PL_ACTION_SCANNER_TOP |
| Action identifyer, Action set (scanner) top positions [mm]. More... | |
| enum | PL_ACTION_SCANNER_WIDTH |
| Action identifyer, Action set (scanner) width [mm]. More... | |
| enum | PL_ACTION_SENDTO |
| Action identifyer, Action SendTo. More... | |
| enum | PL_ACTION_SIGN_DOCUMENT |
| Action identifyer, Action sign a document. More... | |
| enum | PL_ACTION_TOGGLE |
| Action identifyer, Action Toggle (Button value). More... | |
| enum | PL_BUTTON_MOUSE |
| The object is clickable with the mouse. More... | |
| enum | PL_BUTTON_PEN |
| The object is clickable with the pad pen. More... | |
| enum | PL_CLIP_SCREEN |
| Tablet attribute: clip signature entry on screen (and in final signature) (PlTablet.$mFlags). More... | |
| enum | PL_CLIP_TABLET |
| Tablet attribute: clip signature entry on tablet (PlTablet.$mFlags). More... | |
| enum | PL_COORDINATE_DOCUMENT |
| PlCoordinate Origin: origin is the document. More... | |
| enum | PL_COORDINATE_ENTRY |
| PlCoordinate Origin: origin is the pad-entry or scanner window. More... | |
| enum | PL_COORDINATE_PLUGIN |
| PlCoordinate Origin: origin is the plugin window. More... | |
| enum | PL_DRAWFLAGS_DRAWWND |
| draw an object in the entry window as a virtual element More... | |
| enum | PL_DRAWFLAGS_IMAGE |
| draw an object as imagee in the entry window as a virtual element More... | |
| enum | PL_DRAWFLAGS_LCD |
| draw an object on the tablet LCD screen as a virtual element More... | |
| enum | PL_DRAWFLAGS_OPAQUE |
| Draw an image with a transparent color. More... | |
| enum | PL_DRAWFLAGS_PLUGINWND |
| draw an object in the plugin window as a native window More... | |
| enum | PL_FONT_BOLD |
| Font attribute bold (PlFont.$mFlags). More... | |
| enum | PL_FONT_ITALIC |
| Font attribute italic (PlFont.$mFlags). More... | |
| enum | PL_FONT_STRIKEOUT |
| Font attribute strikeout (PlFont.$mFlags). More... | |
| enum | PL_FONT_UNDERLINE |
| Font attribute underline (PlFont.$mFlags). More... | |
| enum | PL_FORCE_BW |
| Tablet attribute: force a b/w image (PlTablet.$mFlags). More... | |
| enum | PL_IMAGE_BASE64_BMP |
| Imagedata is a base64 encoded windows bitmaap. More... | |
| enum | PL_IMAGE_BASE64_COMPRESSED_BMP |
| Imagedata is a base64 encoded and zlib compressed windows bitmaap. More... | |
| enum | PL_IMAGE_EMPTY |
| Create an empty image. More... | |
| enum | PL_IMAGE_LOCAL_FILE |
| Read the image from the local filesystem, imagedata is the path to the image. More... | |
| enum | PL_SLIDER_HORIZONTAL |
| Orientate the slider horizontal, else the slider will be oriented vertical. More... | |
| enum | PL_TABLET_MIRROR |
| Tablet attribute: mirror the image and vectors horizontally (PlTablet.$mFlags). More... | |
| enum | PL_TABLET_NOECHO |
| Tablet attribute: don't display strokes (PlTablet.$mFlags). More... | |
| enum | PL_TEXTFLAGS_BOTTOM |
| Align the text to the bottom of the text field. More... | |
| enum | PL_TEXTFLAGS_EXPANDTABS |
| Expand tab's. More... | |
| enum | PL_TEXTFLAGS_HCENTER |
| Center the text horizontally in the text field. More... | |
| enum | PL_TEXTFLAGS_LEFT |
| Align the text to the left of the text field. More... | |
| enum | PL_TEXTFLAGS_RIGHT |
| Align the text to the right of the text field. More... | |
| enum | PL_TEXTFLAGS_SINGLELINE |
| Single line text field. More... | |
| enum | PL_TEXTFLAGS_TOP |
| Align the text to the top of the text field. More... | |
| enum | PL_TEXTFLAGS_VCENTER |
| Center the text vertically in the text field. More... | |
| enum | PL_TEXTFLAGS_WORDBREAK |
| Break words in a multiline text field. More... | |
| enum | SCANNER_CAPTURE_DIALOG |
| Scanner dialog class: Scanner capture dialog. More... | |
| enum | SCANNER_SELECTSOURCE_DIALOG |
| Scanner dialog class: Select scanner source settings dialog. More... | |
| enum | SCANNER_SETTINGS_DIALOG |
| Scanner dialog class: Scanner settings dialog. More... | |
| enum | TOOL_WINDOW |
| Scanner window class: Scanner tools window. More... | |
| enum | VIDEO_WINDOW |
| Scanner window class: Scanner (live) video window. More... | |
Functions | |
| addAttributeInt ($xml, $name, $value) | |
| local helper function to append an integer attribute to a SimpleXMLElement | |
| addAttributeIntOpt ($xml, $name, $value) | |
| local helper function to append an optional integer attribute to a SimpleXMLElement | |
| addAttributeStr ($xml, $name, $value) | |
| local helper function to append a string attribute to a SimpleXMLElement | |
| addAttributeStrOpt ($xml, $name, $value) | |
| local helper function to append an optional string attribute to a SimpleXMLElement | |
| strToBool ($str) | |
| strToInt ($str) | |
Enumeration Type Documentation
|
|
Scanner can acquire the image multiple times.
|
|
|
Scanner driver supports user GUI and vendor GUI.
|
|
|
Scanner has duplex feature.
|
|
|
Image Format (ScannerEntryOptions.$mResultImage): Windows Bitmap, BMP.
|
|
|
Image Format(ScannerEntryOptions.$mResultImage): Graphics Interchange Format, GIF.
|
|
|
Image Format(ScannerEntryOptions.$mResultImage): Joint Photographic Experts Group, JPEG.
|
|
|
Image Format(ScannerEntryOptions.$mResultImage): Portable Network Graphics, PNG.
|
|
|
Image Format(ScannerEntryOptions.$mResultImage): Tagged image file format, TIFF.
|
|
|
ePropertyPapersize: A0
|
|
|
ePropertyPapersize: A1
|
|
|
ePropertyPapersize: A2
|
|
|
ePropertyPapersize: A3
|
|
|
ePropertyPapersize: A4
|
|
|
ePropertyPapersize: A5
|
|
|
ePropertyPapersize: A6
|
|
|
ePropertyPapersize: A7
|
|
|
ePropertyPapersize: A8
|
|
|
ePropertyPapersize: B2
|
|
|
ePropertyPapersize: B3
|
|
|
ePropertyPapersize: B4
|
|
|
ePropertyPapersize: B5
|
|
|
ePropertyPapersize: B6
|
|
|
ePropertyPapersize: C3
|
|
|
ePropertyPapersize: C4
|
|
|
ePropertyPapersize: C5
|
|
|
ePropertyPapersize: C6
|
|
|
ePropertyPapersize: custom
|
|
|
Bit depth of the scan, 1, 8, 32.
|
|
|
Brightness of the scan.
|
|
|
Asynchronous vs Synchronous capture mode.
|
|
|
Contrast of the scan.
|
|
|
Device description.
|
|
|
Device identifyer.
|
|
|
Device name.
|
|
|
Device type.
|
|
|
Driver class name.
|
|
|
Driver name.
|
|
|
Firmware version of the driver.
|
|
|
Scanner DirectShow: resize the captured image if the size exceeds the spicified width or height.
|
|
|
Height of the scan.
|
|
|
Image fformat of the scan.
|
|
|
Lightsource of the scan.
|
|
|
Left offset of the scan.
|
|
|
Top offset of the scan.
|
|
|
Property Papersize. set the papersize to one of the predefined constants.
|
|
|
Horicontal resolution of the scan.
|
|
|
Vertical resolution of the scan.
|
|
|
Binarization threshold of the scan, only for black-white scans.
|
|
|
Thumbnail height.
|
|
|
Thumbnail width.
|
|
|
Vendor name.
|
|
|
Width of the scan.
|
|
|
Scanner window class: Scanner image display window.
|
|
|
Action identifyer, Action Cancel.
|
|
|
Action identifyer, Action Erase.
|
|
|
Action identifyer, Action popup a file open selector.
|
|
|
Action identifyer, PlTextEntry, PlSlider or PlCombobox may be formfields.
|
|
|
Action identifyer, Action goto page.
|
|
|
Action identifyer, Action clean lines (in an image).
|
|
|
Action identifyer, Action clean frames (of an image).
|
|
|
Action identifyer, Action set the cleaning weight.
|
|
|
Action identifyer, Action crop (image).
|
|
|
Action identifyer, Action set edit state active.
|
|
|
Action identifyer, Action invert (image).
|
|
|
Action identifyer, Action mirror (image).
|
|
|
Action identifyer, Action set a pen size.
|
|
|
Action identifyer, Action rotate (image).
|
|
|
Action identifyer, Action undo last operation.
|
|
|
Action identifyer, Action clean background (of an image).
|
|
|
Action identifyer, Action zoom.
|
|
|
Action identifyer, Action Next (page).
|
|
|
Action identifyer, Action OK.
|
|
|
Action identifyer, Action Previous (page).
|
|
|
Action identifyer, Action scan an image.
|
|
|
Action identifyer, Action display scanner settings dialog.
|
|
|
Action identifyer, Action set (scanner) bit depth.
|
|
|
Action identifyer, Action set (scanner) brightness.
|
|
|
Action identifyer, Action set (scanner) contrast.
|
|
|
Action identifyer, Action set (scanner) height [mm].
|
|
|
Action identifyer, Action set (scanner) left position [mm].
|
|
|
Action identifyer, Action set (scanner) lightsource.
|
|
|
Action identifyer, Action set paper size.
|
|
|
Action identifyer, Action set (scanner) resolution.
|
|
|
Action identifyer, Action select scanner source.
|
|
|
Action identifyer, Action set (BW) threshold.
|
|
|
Action identifyer, Action set (scanner) top positions [mm].
|
|
|
Action identifyer, Action set (scanner) width [mm].
|
|
|
Action identifyer, Action SendTo.
|
|
|
Action identifyer, Action sign a document.
|
|
|
Action identifyer, Action Toggle (Button value).
|
|
|
The object is clickable with the mouse.
|
|
|
The object is clickable with the pad pen.
|
|
|
Tablet attribute: clip signature entry on screen (and in final signature) (PlTablet.$mFlags).
|
|
|
Tablet attribute: clip signature entry on tablet (PlTablet.$mFlags).
|
|
|
PlCoordinate Origin: origin is the document.
|
|
|
PlCoordinate Origin: origin is the pad-entry or scanner window.
|
|
|
PlCoordinate Origin: origin is the plugin window.
|
|
|
draw an object in the entry window as a virtual element
|
|
|
draw an object as imagee in the entry window as a virtual element
|
|
|
draw an object on the tablet LCD screen as a virtual element
|
|
|
Draw an image with a transparent color.
|
|
|
draw an object in the plugin window as a native window
|
|
|
Font attribute bold (PlFont.$mFlags).
|
|
|
Font attribute italic (PlFont.$mFlags).
|
|
|
Font attribute strikeout (PlFont.$mFlags).
|
|
|
Font attribute underline (PlFont.$mFlags).
|
|
|
Tablet attribute: force a b/w image (PlTablet.$mFlags).
|
|
|
Imagedata is a base64 encoded windows bitmaap.
|
|
|
Imagedata is a base64 encoded and zlib compressed windows bitmaap.
|
|
|
Create an empty image.
|
|
|
Read the image from the local filesystem, imagedata is the path to the image.
|
|
|
Orientate the slider horizontal, else the slider will be oriented vertical.
|
|
|
Tablet attribute: mirror the image and vectors horizontally (PlTablet.$mFlags).
|
|
|
Tablet attribute: don't display strokes (PlTablet.$mFlags).
|
|
|
Align the text to the bottom of the text field.
|
|
|
Expand tab's.
|
|
|
Center the text horizontally in the text field.
|
|
|
Align the text to the left of the text field.
|
|
|
Align the text to the right of the text field.
|
|
|
Single line text field.
|
|
|
Align the text to the top of the text field.
|
|
|
Center the text vertically in the text field.
|
|
|
Break words in a multiline text field.
|
|
|
Scanner dialog class: Scanner capture dialog.
|
|
|
Scanner dialog class: Select scanner source settings dialog.
|
|
|
Scanner dialog class: Scanner settings dialog.
|
|
|
Scanner window class: Scanner tools window.
|
|
|
Scanner window class: Scanner (live) video window.
|
Function Documentation
|
||||||||||||||||
|
local helper function to append an integer attribute to a SimpleXMLElement
|
|
||||||||||||||||
|
local helper function to append an optional integer attribute to a SimpleXMLElement
|
|
||||||||||||||||
|
local helper function to append a string attribute to a SimpleXMLElement
|
|
||||||||||||||||
|
local helper function to append an optional string attribute to a SimpleXMLElement
|
|
|
Convert a string to an bool The string may be true | false | number |
|
|
Convert a string to an int The string may be prepended with 0x to indicate a hex string |