Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
QLPreviewPanel.AddPDF
Adds a PDF to the preview items.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
QuickLook | 4.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "QLPreviewPanel.AddPDF"; PDF { ; Title } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF. | |||
Title | The title to use. | "Hello World" | Optional |
Result
Returns OK or error.
Description
Adds a PDF to the preview items.You can pass a container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from PDFKit.Open.
Either we use file path from FileMaker's external container storage directly or we write a temporary file, which is cleared later when app quits or panel is cleared.
See also
- PDFKit.Open
- QLPreviewPanel.AddFile
- QLPreviewPanel.AddImage
- QLPreviewPanel.Clear
- QLPreviewPanel.GetTop
- QLPreviewPanel.Hide
- QLPreviewPanel.Resize
- QLPreviewPanel.Show
Release notes
- Version 12.4
- Changed QLPreviewPanel.AddPDF to pass right filename of PDF from container to the preview window.
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 15th August 2018