Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries a page as image.

Component Version macOS Windows Linux Server iOS SDK
DocumentCameraScan 10.0 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "DocumentCameraScan.PageImage"; Index { ; ImageType; FileName } )   More


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


Returns container value or error.


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

You may use PDFKit functions to create a PDF document if needed.


Import scan result:

Set Variable [ $count ; Value: MBS( "DocumentCameraScan.PageCount" ) ]
If [ $count > 0 ]
    Set Variable [ $index ; Value: 0 ]
        # 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

This function is free to use.

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

DocumentCameraScan.PageCount - DocumentCameraScan.Scan