Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@directus-labs/pdf-viewer-interface

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus-labs/pdf-viewer-interface

View PDF files from within the item editor

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
30
decreased by-73.21%
Maintainers
0
Weekly downloads
 
Created
Source

PDF Viewer Interface

View PDF files from within the item editor.

An active overlay that displays a rendered PDF page

Installation

Refer to the Official Guide for details on installing the extension from the Marketplace or manually.

Make sure to update your environment variables to include CSP directives as follows:

CONTENT_SECURITY_POLICY_DIRECTIVES__SCRIPT_SRC=array:'self' data:

In a docker-compose.yml file, add the following the the environment section:

CONTENT_SECURITY_POLICY_DIRECTIVES__SCRIPT_SRC: "array:'self' data:"

Usage

Add the PDF Viewer via the interface selector, select the PDF Field you want to display the PDF from in the interface settings. On your item page, select a PDF from the above mentioned PDF Field and click the Open PDF button – you can also change the button label in the interface settings.

Keywords

FAQs

Package last updated on 03 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc