Skip to main content

Nubexx UI5 PDF Viewer

The Nubexx PDF Viewer can be used on all device types (desktop, tablet and phone).

It extends the UI5 PDF Viewer (sap.m.PDFViewer), so this control can replace the SAP control transparently.
The PDF render engine is based on Mozilla's PDF.js with enhanced customizing features for this PDF viewer.

Advantages

  • Works in mobile browsers on phone and tablet
  • Extended PDF format compatibility
  • Visual appearance is almost identical in all browsers
  • Various options to manage the control via API
  • Client-side watermark option

Integrated Document Protection Architecture

The Nubexx PDF Viewer is engineered to bridge the significant security gaps found in standard browser-based PDF displays. Especially in HR and legal departments, preventing unauthorized local copies of sensitive data is a primary requirement. Our control achieves this through a multi-layered security approach:

1. Signature-Safe Visual Watermarking

To maintain the legal integrity of digitally signed PDFs, our viewer avoids any modification of the original file, which would otherwise break the cryptographic signature. Instead, watermarks are applied as a dynamic overlay on the PDF canvas. This ensures that the document remains legally valid while every preview and print-out is clearly marked with traceable metadata (e.g., User-ID, Timestamp).

2. Advanced Toolbar & Save-Button Control

Unlike the native sap.m.PDFViewer, which acts as a wrapper for browser-dependent plugins, the Nubexx viewer utilizes a custom toolbar. This gives developers full programmatic authority to hide or disable the Save, Download, and Print functions. Access rights can be tied directly to SAP backend permissions, ensuring that only authorized personnel can generate local copies.

3. Data Leakage Prevention: Disabling the Text Layer

For maximum protection against manual data extraction, the viewer allows the deactivation of the text selection layer. When enabled, users are prevented from highlighting and copying text via the clipboard CTRL + C.

  • The technical advantage: While the visual selection is disabled, the internal search functionality remains fully operational. The viewer can still navigate to specific search hits without exposing the raw text layer to the user's cursor.

4. End-to-End Encryption with In-Memory Decryption

In tandem with the Nubexx Encryption Service, document payloads are transmitted as encrypted AES-256 streams. Decryption occurs strictly within the browser's memory during the rendering process. This architecture ensures that the "plain" PDF file never hits the browser's permanent cache and is not easily accessible via the browser's network console F12, closing a common vulnerability in standard Fiori apps.

For more information about this control see the API Reference and the Examples.

tip

If you would like to see the control in action, please register to access our demo app.

Screenshots

Full control-set with watermarkMinimal control-set
PDF Viewer (full controls)PDF Viewer (minimal controls)

Delta Chart

Comparison Nubexx vs. Standard sap.m.PDFViewer

Nubexx PDF ViewerSAP PDF Viewer
Supported platforms
Desktop
Tablet
Phone
Elements or functions that can be activated or deactivated
Hide toolbar by viewport size
Hide toolbar by configuration
Print
Download / Save
Open files from Open-Dialog or STRG+O
Presentation mode
Ask for filename on save1
Additional Functions
Enable / disable text selection / copy
Client-side watermark on Display / Print
End-to-End Encryption (AES)2
Supported PDF file formats
Standard PDF files
PDF XFA3
PDF portfolio43

Installation on SAP

  1. Import SAP transport request to target SAP Gateway/FES host
  2. Check transaction SMW0 for existing mime types .mjs and .wasm. See next section Prerequisites for SAP.

Prerequisites for SAP

The provided transport request can be installed on SAP systems 750++. Minimum sapui5 core release is 1.71

info

Some files of this library use ECMAScript modules that are delivered as .mjs files and also .wasm files. Therefore the SAP host system must support these mime-types

So the mime-types must be added in the SAP backend (should the SAP transport request not have created them automatically)

  • Run transaction SMW0

  • Select "Web-Object" HTML Patterns for WebRFC-Applications press F8.

  • In view "HTML templates for WebRFC" press F8 again.

  • In the next view (Object type) select the menu item Settings -> Maintain mime-types

  • In the Mime-Types Table create a new item F5 and enter the following data and save this values.

    • Type: application/javascript
    • Extension *.mjs
  • Repeat the creation of mime-Type for .wasm

    • Type: application/wasm
    • Extension *.wasm

Keyboard shortcuts

Modifier KeysKeyASCII-CodesFunctionNote
Ctrlf70Open Find bar
Ctrlg71Find again
Ctrl+61, 107, 187, 171Zoom in
Ctrl-173, 109, 189Zoom out
Ctrl048, 96Zoom reset
Ctrl38Go to first page
Ctrl40Go to last page
Ctrls83Save documentif allowed
Ctrlo79Open documentif allowed
Ctrl+Alt, +p89Start full screen / presentation modeif allowed
Ctrl+Alt, +g71Focus the page number input fieldif visible
38moveCaret upif caret browsing mode is supported
PgUp33Page back
8Page backif viewer is in presentation mode
37Page backif viewer is not in caret browsing mode
k75Page back
p80Page back
Esc27Close secondary toolbar, Close Find bar
40Next pageif not in caret browsing mode
PgDown34Next page
13Next page
Space32Next page
39Next page
j74Next page
n78Next page
Pos1, Home36Go to first page
End35Go to last page
s83Activate cursor tool
h72Activate hand tool
r82Rotate clockwise
F4115Toggle sidebar
Shift13Page back
ShiftSpace32Page backif in presentation mode and zoom = "page-fit"
Shift38moveCaret up
Shift40moveCaret down
Shiftr82Rotate anti-clockwise

Footnotes

  1. This function is provided by the file system access API (showSaveFilePicker()) and will not work in all browsers like Firefox, Safari, Samsung Internet, WebView on iOS, Deno etc. In unsupported browsers the default behavior is used.

  2. In combination with the Nubexx Encryption Service. Documents are encrypted on the server and decrypted strictly in-memory within the viewer, preventing unauthorized access via browser cache or network console.

  3. Usually also works in Firefox. 2

  4. Files of the portfolio will open in a new window.