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.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  


Renders the webview to a PDF.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 3.0 Yes No No No No
MBS( "WebView.RenderPDF"; WebViewerRef { ; Filename; DontRenderPreview } )   More


Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.
Filename Optional
The filename to use for the picture. Default is "image" with the extension matching the image type.
DontRenderPreview Optional
Pass 1 to not create a JPEG with preview of first page as part of the container.


Returns a container with a PDF of the webpage (and a JPEG preview). You can store it in a media field.


Renders the webview 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.

Not supported for WebKit 2.x (FileMaker 16 Mac), but works in FileMaker 16, when using a Web Viewer created using WebView.Create.


Render PDF:

Set Field [ Own WebView::Container ; MBS( "WebView.RenderPDF"; $$web; "webview.pdf") ]

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 8th October 2017

WebView.RenderImage   -   WebView.RunJavaScript

Feedback: Report problem or ask question.

MBS Xojo Plugins