0.0.0 • Published 6 months ago

@max_alieksieiev/react-pdf-viewer-root v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

React PDF viewer

A React component to view a PDF document. It's written in TypeScript, and powered by React hooks completely. It's forked package, and added touchEvent for highlight

// Core viewer
import { Viewer } from '@react-pdf-viewer/core';

// Plugins
import { defaultLayoutPlugin } from '@react-pdf-viewer/default-layout';

// Import styles
import '@react-pdf-viewer/core/lib/styles/index.css';
import '@react-pdf-viewer/default-layout/lib/styles/index.css';

// Create new plugin instance
const defaultLayoutPluginInstance = defaultLayoutPlugin();

<Viewer
    fileUrl='/assets/pdf-open-parameters.pdf'
    plugins={[
        // Register plugins
        defaultLayoutPluginInstance,
        ...
    ]}
/>

Features

Basic features

  • Support password protected document
  • Zooming: Support custom levels such as actual size, page fit, and page width
  • Navigation between pages
  • Can go to the first and last pages quickly
  • Search for text
  • Preview page thumbnails
  • View and navigate the table of contents
  • List and download attachments
  • Rotating
  • Text selection and hand tool modes
  • Different scrolling modes
  • Full screen mode
  • Can open a file from local. Users can drag and drop a local file to view it
  • Download file
  • View the document properties
  • Support SSR
  • Print
  • Theming
  • Dark mode
  • Accessibility

Customization

  • The toolbar can be customized easily
  • All text items can be localized in another language

About

This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge. But forked by Maks Alieksieiev.

abbrevababacornacorn-walkacorn-jsxagent-baseajvacorn-globalsansi-stylesansi-regexanymatchaprobaansi-escapesargare-we-there-yetargparsearia-queryarray-buffer-byte-lengtharray-includesarray-unionarray.prototype.flatarray.prototype.flatmaparraybuffer.prototype.slicearray.prototype.tosortedasynckitavailable-typed-arraysaxiosast-typesb4aasynciterator.prototypebabel-plugin-istanbulbabel-jestbabel-preset-current-node-syntaxbabel-preset-jestbalanced-matchbabel-plugin-jest-hoistbasic-ftpbrace-expansionbracesbinary-extensionsbrowserslistbufferbase64-jsbs-loggerbserbuffer-crc32call-bindbuffer-fromcallsitescamelcasechalkchar-regexcaniuse-litechokidarci-infochownrchromium-bidicjs-module-lexercocliuicollect-v8-coveragecolor-supportcolor-convertcombined-streamconcat-mapcolor-nameconsole-control-stringscommanderconvert-source-mapcosmiconfigcreate-requirecross-fetchcss.escapecsstypecreate-jestcross-spawncssomcwddata-uri-to-buffercssstyledata-urlsdebugdecimal.jsdedentdeepmergedefine-data-propertydeep-isdefine-propertiesdeep-equaldelegatesdelayed-streamdevtools-protocoldequaldetect-newlinedetect-libcdir-globdiff-sequencesdegeneratordoctrinedomexceptiondecompress-responseemitterydiffdom-accessibility-apierror-exend-of-streamentitiesemoji-regexes-set-tostringtagelectron-to-chromiumes-abstractes-shim-unscopableses-get-iteratores-iterator-helpersescodegenes-to-primitiveescape-string-regexpescaladeesprimaeslint-scopeesqueryespreeesrecurseeslint-visitor-keysestraverseexpectesutilsexecaexpect-puppeteerexitexpand-tildefast-deep-equalextract-zipestree-walkerfast-fifofast-levenshteinfb-watchmanfast-globfastqfd-slicerfill-rangefile-entry-cachefind-pkgfast-json-stable-stringifyfind-processflat-cachefor-eachfind-upfs-exists-syncfollow-redirectsflattedform-datafs-minipassfs.realpathfs-extrafind-file-upfunction-bindgaugefunctions-have-namesfunction.prototype.namefseventsgensyncget-caller-fileget-intrinsicget-package-typeget-streamget-symbol-descriptionget-uriglobal-prefixglobglob-parentglobal-modulesglobalsgopdglobalthisglobbygraceful-fshas-bigintsgraphemerhas-property-descriptorshas-protohas-flaghas-symbolshomedir-polyfillhas-tostringtaghas-unicodehtml-encoding-snifferhttp-proxy-agenthtml-escaperhasownhttps-proxy-agenthuman-signalsimport-freshignoreimmutableiconv-liteimport-localindent-stringinflightinheritsimurmurhashinternal-slotiniis-array-bufferis-arrayishipis-argumentsis-async-functionieee754is-bigintis-binary-pathis-boolean-objectis-extglobis-date-objectis-finalizationregistryis-fullwidth-code-pointis-generator-fnis-core-moduleis-globis-mapis-numberis-negative-zerois-generator-functionis-number-objectis-mobileis-path-insideis-regexis-setis-potential-custom-element-nameis-callableis-stringis-shared-array-bufferis-typed-arrayis-symbolis-weakrefisarrayistanbul-lib-coverageis-weakmapistanbul-lib-reportis-windowsistanbul-lib-instrumentis-weaksetis-streamiterator.prototypeisexeistanbul-reportsistanbul-lib-source-mapsjest-circusjest-changed-filesjest-diffjest-dev-serverjest-configjest-environment-nodejest-docblockjest-clijest-eachjest-matcher-utilsjest-leak-detectorjest-haste-mapjest-environment-puppeteerjest-mockjest-pnp-resolverjest-get-typejest-regex-utiljest-resolve-dependenciesjest-message-utiljest-runnerjest-runtimejest-snapshotjest-validatejest-utiljsdomjest-resolvejs-tokensjoijs-yamljsescjest-watcherjson-bufferjson-parse-even-better-errorsjest-workerjson-schema-traversejson5kleurjsonfilejsx-ast-utilskeyvlines-and-columnsjson-stable-stringify-without-jsonifylevenlodash.mergelodash.memoizeloose-envifylevnlocate-pathlru-cachelz-stringmake-dirmakeerrormake-errorlodashmerge-streammerge2micromatchmimic-fnmimic-responsemin-indentmime-dbminimatchmime-typesmittminimistminizlibmkdirpmsmkdirp-classicminipassnatural-comparenannetmasknode-releasesnoptnode-fetchnormalize-pathobject-assignnpmlognode-int64object-inspectnpm-run-pathobject-keysobject-isobject.hasownnwsapiobject.entriesobject.fromentriesobject.assignobject.valuesonceoptionatoros-homedirp-locatep-limitp-tryparse-jsonpac-proxy-agentpath-existsparse-passwdpath-is-absolutepath-parseparse5parent-modulepac-resolverpath-typepiratespendpath-keypkg-dirpicocolorsprelude-lspicomatchpretty-formatprop-typesprogresspromptsproxy-agentproxy-from-envpumppslquerystringifypunycodequeue-microtaskqueue-tickpuppeteer-corerandombytesonetimepure-randreaddirpredentreadable-streamregexp.prototype.flagsrequire-directoryreflect.getprototypeofregenerator-runtimeresolve-cwdresolve-dirresolveresolve.exportsresolve-fromreusifysafe-array-concatreact-issafe-bufferrequires-portrxjsrimrafschedulersafe-regex-testsaxesset-function-nameset-blockingserialize-javascriptrun-parallelsemversafer-bufferset-function-lengthshebang-regexslashside-channelshebang-commandsimple-getsimple-concatsignal-exitsource-mapsocks-proxy-agentsource-map-supportsource-map-jssmart-buffersisteransisockssprintf-jsstack-utilsspawndstring-lengthsmobstop-iteration-iteratorstring.prototype.matchallstreamxstring-widthstring.prototype.trimstring.prototype.trimendstrip-final-newlinestring.prototype.trimstartsupports-preserve-symlinks-flagstrip-ansistrip-bomstring_decoderstrip-indentstrip-json-commentssupports-colortar-streamsymbol-treetartest-excludeto-fast-propertiestough-cookietar-fstext-tableterserthroughtmpltree-killto-regex-rangetslibts-api-utilstype-checktr46type-detecttyped-array-byte-lengthtype-festturbo-darwin-64typed-array-lengthundici-typestyped-array-byte-offsetunbzip2-streamunbox-primitiveuniversalifytyped-array-bufferurl-parseuri-jsutil-deprecatew3c-xmlserializerupdate-browserslist-dbv8-compile-cache-liburlpattern-polyfillwait-onwhatwg-mimetypewhich-builtin-typewebidl-conversionswhatwg-encodingv8-to-istanbulwalkerwhich-typed-arraywrappywhatwg-urlwhich-boxed-primitivewhich-collectionwrite-file-atomicwhichwsxmlcharsy18nyallistwrap-ansiyauzlyargs-parserxml-name-validatoryargsynwide-alignyocto-queue
0.0.0

6 months ago