pdf_editor_aleon35_react_plugin
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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 []

Field Description
zoom Enable zoom in/out of the document in view
search Enable search functions
download Enable downloading the document
thumbnails Enable a thumbnails panel
useCreateIframeAndLoadViewer({
  tools: {
    general: [
      "zoom",
      "search",
      "download",
      "thumbnails"
    ],
  },
  ...other parameters
});

thumbnails Object []

Field Description
zoom Enable a slider above thumbnails to increase/decrease the size of the thumbnails
expand Enable the thumbnails bar to be expandable to the full screen
useCreateIframeAndLoadViewer({
  tools: {
    thumbnails: [
      "zoom",
      "expand"
    ],
  },
  ...other parameters
});

editing Object []

Field Description
remove Enable the ability to remove pages
rotation Enable 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
  }
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.40latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.40
1.1.20
1.1.00
1.0.740
1.0.720
1.0.700
1.0.680
1.0.660
1.0.640
1.0.620
1.0.600
1.0.580
1.0.560
1.0.540
1.0.520
1.0.500
1.0.480
1.0.460
1.0.440
1.0.420
1.0.400
1.0.380
1.0.360
1.0.340
1.0.320
1.0.300
1.0.280
1.0.260
1.0.240
1.0.220
1.0.200
1.0.180
1.0.160
1.0.140
1.0.130
1.0.110
1.0.90
1.0.70
1.0.60
1.0.40
1.0.20
1.0.00

Package Sidebar

Install

npm i pdf_editor_aleon35_react_plugin

Weekly Downloads

0

Version

1.1.4

License

ISC

Unpacked Size

7.52 MB

Total Files

90

Last publish

Collaborators

  • al35