Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0    Statistic  

DocumentCameraScan.PageImage

Queries a page as image.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DocumentCameraScan 10.0 No No No No Yes
MBS( "DocumentCameraScan.PageImage"; Index { ; ImageType; Filename } )   More

Parameters

Parameter Description Example value
Index The index of the page.
Range is 0 to DocumentCameraScan.PageCount-1.
0
ImageType Optional
The type of image to return. Either JPEG or PNG. Default is JPEG.
"JPEG"
Filename Optional
The filename to use for the picture. Default is "image" with the extension matching the image type.
"test.jpg"

Result

Returns container value or error.

Description

Queries a page as image.
See DocumentCameraScan.PageCount for the count of pages.

Examples

Import scan result:

Set Variable [ $count ; Value: MBS( "DocumentCameraScan.PageCount" ) ]
If [ $count > 0 ]
    Set Variable [ $index ; Value: 0 ]
    Loop
        # store image
        New Record/Request
        Set Field [ Contacts::Video ; MBS( "DocumentCameraScan.PageImage"; $Index; "PNG"; "test.png") ]
        Commit Records/Requests [ With dialog: On ]
        # next
        Set Variable [ $index ; Value: $index + 1 ]
        Exit Loop If [ $index ≥ $count ]
    End Loop
End If

See also

Example Databases

Blog Entries

Created 6th January 2020, last changed 6th January 2020


DocumentCameraScan.PageCount   -   DocumentCameraScan.Scan

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins