Socket
Socket
Sign inDemoInstall

pdf_editor_aleon35_react_plugin

Package Overview
Dependencies
3
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pdf_editor_aleon35_react_plugin

## Core


Version published
Weekly downloads
7
decreased by-83.72%
Maintainers
1
Install size
7.17 MB
Created
Weekly downloads
 

Readme

Source

hello

Core

Parameters

file String "" Required

The URL path to your file.

container Required

The HTML element to attach the PDF viewer to.

fileName String file.pdf Optional

The name of your file. Useful if you want to configure the file name of the downloaded file.

tools Object {}

Control what tools are available in the UI. Available keys are thumbnails, general, editing, ...

useCreateIframeAndLoadViewer({
  tools: {
    thumbnails: ...,
    general: ...,
    editing: ...,
  },
  ...other parameters
});
general Object []
FieldDescription
zoomEnable zoom in/out of the document in view
searchEnable search functions
downloadEnable downloading the document
thumbnailsEnable a thumbnails panel
useCreateIframeAndLoadViewer({
  tools: {
    general: [
      "zoom",
      "search",
      "download",
      "thumbnails"
    ],
  },
  ...other parameters
});
thumbnails Object []
FieldDescription
zoomEnable a slider above thumbnails to increase/decrease the size of the thumbnails
expandEnable the thumbnails bar to be expandable to the full screen
useCreateIframeAndLoadViewer({
  tools: {
    thumbnails: [
      "zoom",
      "expand"
    ],
  },
  ...other parameters
});
editing Object []
FieldDescription
removeEnable the ability to remove pages
rotationEnable the rotation of individual pages
useCreateIframeAndLoadViewer({
  tools: {
    editing: [
      "remove",
      "rotation"
    ],
  },
  ...other parameters
});
locale string en Optional

Options:

en - English

es - Spanish

ru - Russian

onFileFailed Function optional

Callback when a file fails to upload

useCreateIframeAndLoadViewer({
  onFileFailed: (errorMessage) => {
    // handle the failure as you need
  }
});

FAQs

Last updated on 03 Oct 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc