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.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

Window.AsPDF

Renders the window as PDF so you can save it in a container value. Includes a JPEG preview.

Component Version macOS Windows Linux Server iOS SDK
Window 2.3 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "Window.AsPDF"; WindowRef { ; Filename; DontRenderPreview } )   More

Parameters

Parameter Description Example Flags
WindowRef Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. 0
Filename The filename for the PDF file. Default is "window.pdf". "mywindow.pdf" Optional
DontRenderPreview Pass 1 to not create a JPEG with preview of first page as part of the container. 0 Optional

Description

Renders the window as PDF so you can save it in a container value. Includes a JPEG preview.

Examples

Queries PDF of current window:

MBS( "Window.AsPDF")

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 9th March 2015


Window.AddBottomOverlay - Window.ClearFocus

Feedback: Report problem or ask question.