Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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

This function checks for a license.

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


Window.AddToTaskbar - Window.ClearCloseTrigger

💬 Ask a question or report a problem