Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebView.RenderImage
Renders the WebViewer to a picture.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 2.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.RenderImage"; WebViewerRef { ; ImageType; FileName } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | ||
ImageType | The type of image to return. Either JPEG, PNG, GIF or BMP. 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 |
Result
Returns a container with a JPEG picture of the webpage. You can store it in a media field.
Description
Renders the WebViewer to a picture.Added Windows support in version 3.0. Due the way we capture image on Windows (we ask WebViewer to print to image), some things do not show up in the image. In that case, please use WebView.Screenshot function.
On Mac you can use WebView.RenderPDF to get a PDF of the website.
For macOS the image size is the size of the full website. On Windows we only capture the area of the WebViewer, so you may see scrollbars.
For macOS please use WebView.SetPreferences to set whether to include background images.
Added support for macOS 10.13 in FileMaker 16 or newer to render webpage in v7.4.
Works in FileMaker 15 and older in all MacOS versions.
Works in all FileMaker Mac versions, when using a Web Viewer with WebKit 1.x created using WebView.Create.
Fixed for iOS for 8.2 release.
On Windows seems not to work well in latest IE versions. so you may better use WebView.Screenshot.
Examples
Render Image:
Set Field [ Own WebView::Container ; MBS( "WebView.RenderImage"; $$web; "PNG"; "webview.png") ]
See also
Release notes
- Version 8.2
- Fixed WebView.RenderImage for iOS.
- Version 7.4
- Implemented WebView.RenderImage for FileMaker 16 on macOS 10.13.
- Version 7.1
- Improved memory management for WebView.RenderImage function.
Example Databases
- WebViewer/Custom WebView
- WebViewer/WebViewer Render Image (Mac)
- WebViewer/WebViewer Render PDF (Mac)
Blog Entries
- Printing a WebViewer in FileMaker
- MBS FileMaker Plugin, version 8.2pr5
- MBS FileMaker Plugin, version 7.4pr7
- Custom WebView in FileMaker 16
- MBS FileMaker Plugin, version 7.1pr4
- MBS Filemaker Plugin, version 3.0pr2
- MBS Filemaker Plugin 2.4 release notes
- MBS Filemaker Plugin, version 2.4pr11
- MBS Filemaker Plugin, version 2.4pr2
- MBS Filemaker Plugin, version 2.4pr1
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 31st October 2021