View File Macro

Last modified by Yana Oksner on 2024/12/03 16:51

The view-file macro displays attachments in a document, in place or as thumbnail and offers a preview.

Limitation: the thumbnail is actually only an icon for now.

Parameters

ParameterDescriptionRequiredDefault
displayKind of display. "button" for a button, "thumbnail" for a thumbnail, "full" to render the document in placenothumbnail (button in inline mode)
nameThe attachment reference to displayif att-filename is not given
widthThe width of the view in % or px (e.g. 100%, 100px)no100% for the full view or 100px for the thumbnail
heightThe height of the view in % or px (e.g. 100%, 100px)no1000px for the full view or 100px for the thumbnail
att-filenameAlias of nameIf name is not given

Example Usage

Thumbnails side by side:

Test.ppt   TestPDF.pdf

Or standalone:

In a paragraph: Test.ppt

Full PDF:

Error

There is no valid license for PDF Viewer Macro (Pro). Please visit the Licenses section.

Full Presentation:

Failed to execute the [office] macro. Cause: [The wiki needs to be connected to an office server in order to view office files. Ask your administrator to configure such a server.]. Click on this message for details.