Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

WebView.RenderPDF

Renders the webview to a PDF.

Component: WebView
Version: 3.0
Mac OS X: Yes
Windows: No
Server: No
FileMaker Cloud: No

MBS( "WebView.RenderPDF"; WebViewerRef { ; Filename; DontRenderPreview } )

Parameters

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.
"test.jpg"
DontRenderPreview Optional
Pass 1 to not create a JPEG with preview of first page as part of the container.
0

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 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).

See also


WebView.RenderImage   -   WebView.RunJavaScript

Feedback: Report problem or ask question.




Links
MBS REALbasic Plugins - Nachhilfe in Nickenich