Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
Statistic
FMM
Blog
WebView.RenderPDF
Renders the web view to a PDF.
Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
WebView | 3.0 | Yes | No | No | No | No |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | ||
Filename | The filename to use for the picture. Default is "image" with the extension matching the image type. | "test.jpg" | Optional |
DontRenderPreview | Pass 1 to not create a JPEG with preview of first page as part of the container. | 0 | Optional |
Result
Returns a container with a PDF of the webpage (and a JPEG preview). You can store it in a media field.
Description
Renders the web view to a PDF.For OS X please use WebView.SetPreferences to set whether to include background images.
If you need a multi page PDF file, please use WebView.PrintToFile function.
Implemented for WebKit 2 in MBS Plugin 10.5 for macOS with Safari 14.
Examples
Render PDF:
Set Field [ Own WebView::Container ; MBS( "WebView.RenderPDF"; $$web; "webview.pdf") ]
See also
- WebView.FindByName
- WebView.Print
- WebView.PrintToFile
- WebView.RenderImage
- WebView.Screenshot
- WebView.SetPreferences
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 10.5pr9
- MBS FileMaker Plugin, version 5.1pr1
- MBS Filemaker Plugin, version 3.0pr2
Release notes
- Version 10.5
- Implemented WebView.RenderPDF for WebKit 2 for macOS with Safari 14 or newer.
Created 18th August 2014, last changed 10th November 2020
WebView.RenderImage - WebView.ResetPageZoom
Feedback: Report problem or ask question.

Links
MBS FileMaker tutorial videos