Skip to content

Kirby 5.0.4

PdfFilePreview::factory()

Returns a file preview instance by going through all available handler classes and finding the first that accepts the file

PdfFilePreview::factory() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

PdfFilePreview::factory(Kirby\Cms\File $file): Kirby\Panel\Ui\FilePreviews\PdfFilePreview

Parameters

Name Type Default
$filerequired Kirby\Cms\File no default value

Return type

Kirby\Panel\Ui\FilePreviews\PdfFilePreview

Parent class

Kirby\Panel\Ui\FilePreviews\PdfFilePreview inherited from Kirby\Panel\Ui\FilePreview