Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Plugin.SetPreviewSize
Sets which size plugin uses for preview images.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Plugin | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Plugin.SetPreviewSize"; Size ) More
Parameters
Parameter | Description | Example |
---|---|---|
Size | The size for width and height to use for generating previews. Default is 600. | 600 |
Result
Returns OK or error.
Description
Sets which size plugin uses for preview images.When plugin returns PDF or Image, we add JPEG preview.
e.g. in DynaPDF, PDFKit and GraphicsMagick functions.
With version 11.5 or later, you can set this to -1 to disable preview generation.
Examples
Set size for previews:
MBS( "Plugin.SetPreviewSize"; 1234 )
See also
- DynaPDF.SaveAndSignFile
- DynaPDF.SaveAndSignFileExt
- DynaPDF.SaveAndSignFileWinCrypt
- DynaPDF.SaveAndSignFileWinCryptDialog
- GMImage.WriteToContainer
- GMImage.WriteToPDFContainer
- PDFKit.GeneratePreview
- PDFKit.GetPDFPageImage
- PDFKit.GetPDFPagePDF
- PDFKit.GetPDFPagesPDF
Release notes
- Version 11.5
- Changed Plugin.SetPreviewSize to allow -1 for preview picture size to disable them.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 11.5pr2
- FileMaker and PDF Containers
- MBS FileMaker Plugin, version 5.1pr1
This function is free to use.
Created 9th March 2015, last changed 4th October 2021