TS PDF Document Viewer

Category: Modules
Subcategory: All

Overview

Use this widget if you want to display PDF files inline in your Mendix application. The ExampleImplementation folder includes a page with the widget and a microflow to translate the fileID to a Long. The reason for this is to make it work in offline mode (PWA) as well.

Documentation

Demo url

Description

Use this widget if you want to display PDF files inline in your Mendix application. The ExampleImplementation folder includes a page with the widget and a microflow to translate the fileID to a Long. The reason for this is to make it work in offline mode (PWA) as well.

Typical usage scenario

You have a requirement to display PDF files online and/or offline in a responsive web app

Features and limitations

Only supports PDF for now

Dependencies

  • Mendix Studio Pro 8.0.0 and up

Installation

Download the widget and inspect the ExampleImplementation module. Copy the widget to your own page and attach the fileID or the Base64 encoded string value.

Configuration

Add the DocumentViewer widget to a dataview. If you have a FileDocument entity or specialisation, add a second fileID attribute of type long. Make sure that when the widget is used, this contains the fileID of the document. Select the new fileID attribute as fileID attribute in the widget and add the changedDate in the third widget attribute.

If you like to use a base64 implementation the changedDate is not needed so both changedDate and fileID can be left empty.

The buttons for navigating through the pages have very basic styling. You can add your own button class in the widget and add some own styling in your Mendix stylesheets.

Releases

Version: 1.1.0
Framework Version: 8.0.0
Release Notes: - Dynamic & translatable button and page count labels! - Manage the size of the pdf better with either fixed or dynamic width options
Version: 1.0.0
Framework Version: 8.0.0
Release Notes: First release!!